Skip to content

CP-46060/Py3: (Local Pytests) rebased on merge of master into feature/py3 #5626

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
1bf250b
Quicktest_vm_lifecycle: use requested SR not default SR
ydirson Mar 5, 2024
316dc97
CP-45888: Add `JsonRpcClient` classes
danilo-delbusso Oct 18, 2023
2ec9542
CP-45888: Update `Connection.java` to use new `JsonRpcClient`
danilo-delbusso Oct 18, 2023
3106235
CP-45888: Update Java SDK generation to use `JsonRpcClient`
danilo-delbusso Oct 18, 2023
93b9839
CP-45888: Remove unsed functions from Java's `main.ml`
danilo-delbusso Nov 1, 2023
9bed681
CP-45888: Update dependencies list Java SDK README
danilo-delbusso Nov 6, 2023
166fa82
CP-45888: Fix formatting in Java's `main.ml`
danilo-delbusso Nov 16, 2023
c33b981
Add missing `mli` files under `sdk-gen/`
danilo-delbusso Nov 16, 2023
909aeaa
Remove all unused SDK generation functions
danilo-delbusso Nov 16, 2023
6452540
Update number of `mli` files in quality gate script
danilo-delbusso Nov 16, 2023
16e8454
Use `Mustache.Json.t` as type for `json_releases`
danilo-delbusso Nov 20, 2023
3c9b98b
Remove use of custom `finally` in `sdk-gen`
danilo-delbusso Nov 20, 2023
3d9dc50
Replace usage of escaped strings with `{||}` in Java's `main.ml`
danilo-delbusso Nov 20, 2023
1224222
Replace mentions of `java.net.http.HttpClient` in `JsonRpcClient.java`
danilo-delbusso Nov 20, 2023
3f9ed39
CP-45888: Do not expose `JsonProcessingException` to SDK users
danilo-delbusso Nov 27, 2023
13c1a29
CP-45888: Fix misc typos and comments
danilo-delbusso Jan 8, 2024
dbe7e11
Add missing function signature in `CommonFunctions.mli`
danilo-delbusso Jan 9, 2024
e8e589f
CP-45888: Bump Java SDK dependencies to latest stable versions
danilo-delbusso Jan 9, 2024
b876a3e
Apply misc formatting and style changes
danilo-delbusso Jan 10, 2024
83994a9
CP-45888: Use public setters for client settings in `JsonRpcClient`
danilo-delbusso Jan 10, 2024
1cf6b2d
CP-45888: Use `Pool.getAllRecords` and `Host.getRecord` to set API ve…
danilo-delbusso Jan 10, 2024
517ef1a
CP-45888: Fix incorrect URL presence check in `JsonRpcClient`
danilo-delbusso Jan 15, 2024
9677795
CP-45888: Restore `toX` methods in `Types.java`
danilo-delbusso Jan 15, 2024
102c825
CP-45888: Improve deprecation info
danilo-delbusso Jan 16, 2024
fc3ac0e
CP-45888: Add a custom date deserializer to handle outliers
danilo-delbusso Jan 16, 2024
3aedc1c
Merge pull request #5246 from danilo-delbusso/dev/jsonrpc-java_CP-45888
kc284 Mar 8, 2024
dc3b6d4
shellscripts: fix the worse complaints from shellcheck
psafont Mar 8, 2024
90e4c3c
The C# project files do not need to be rendered from mustache templat…
kc284 Dec 15, 2023
04efef1
Replaced the generation code of a few more files with mustache templa…
kc284 Dec 16, 2023
64a78b4
GitHub Actions: Update actions/checkout to v4 to fix Node 16 warnings
bernhardkaindl Mar 7, 2024
8db28fd
Github Actions: Update up/download-artifact to v4 to fix Node 16 warn…
bernhardkaindl Mar 7, 2024
38d1924
GitHub Actions: Node 16 warning fixes: update setup-dotnet to v4
bernhardkaindl Mar 8, 2024
8ec322a
Split the API reference markdown into smaller files and use templates…
kc284 Dec 20, 2023
ae7480c
Generate the C enums with templates.
kc284 Dec 17, 2023
37821d8
Corrections as per code review.
kc284 Mar 8, 2024
311b79b
Github Actions: Update to falti/dotenv-action@v1 to fix Node 16 warnings
bernhardkaindl Mar 11, 2024
9142e56
Merge pull request #5496 from xenserver-next/CI-fix-node16-warnings-u…
psafont Mar 11, 2024
ddfd64a
Merge pull request #5499 from xenserver-next/CI-fix-node16-warnings-u…
psafont Mar 11, 2024
32a96dc
Merge pull request #5498 from xenserver-next/CI-fix-node16-warnings-u…
psafont Mar 11, 2024
b95a075
Merge pull request #5338 from kc284/api-ref
psafont Mar 11, 2024
4ca7a93
Merge pull request #5497 from xenserver-next/CI-fix-node16-warnings-u…
bernhardkaindl Mar 11, 2024
4e0d37c
Merge pull request #5494 from psafont/sweep
robhoes Mar 11, 2024
51521bf
CA-389496: Avoid configuration conflicts for rotating xapi logs
psafont Mar 11, 2024
ef9f18b
Bump maven plugin versions
danilo-delbusso Mar 13, 2024
667a9d2
Merge pull request #5507 from psafont/woodchuck
psafont Mar 13, 2024
ccb54e2
Merge pull request #5513 from danilo-delbusso/dev/misc
psafont Mar 13, 2024
969b7e7
CA-389840: Bug in parsing output of 'xen-livepatch list'
minglumlu Mar 12, 2024
c56b039
Merge pull request #5512 from minglumlu/private/mingl/CA-389840
minglumlu Mar 14, 2024
d50b592
CP-48430 Update the running_domains metrics to count the not paused s…
LunfanZhang Mar 12, 2024
ae31853
fix typos: priviledges -> privileges
duobei Mar 14, 2024
9b94769
Merge pull request #5516 from duobei/fix-typos
psafont Mar 14, 2024
0f6163e
Merge pull request #5510 from LunfanZhang/private/luzhan/CP-48430
robhoes Mar 14, 2024
2b35c8b
Merge pull request #5303 from kc284/private/konstantin1/sdk
kc284 Mar 18, 2024
683a7b9
Remove Log_reopen forkexec RPC
freddy77 Mar 17, 2024
4f9513e
Remove Cancel forkexec RPC
freddy77 Mar 17, 2024
fbdf733
CA-390109: Use `$PROFILE` path to store and read known cert list
danilo-delbusso Mar 14, 2024
8af3aa5
Fix typo in `XenServerPowerShell.csproj`
danilo-delbusso Mar 14, 2024
714d995
Merge pull request #5517 from danilo-delbusso/dev/ps-connect-linux
psafont Mar 18, 2024
9fcfbfc
Merge pull request #5519 from freddy77/cleanups
psafont Mar 18, 2024
cfa6efa
Merge pull request #5489 from xcp-ng/fix-quicktest
psafont Mar 22, 2024
79ad453
message-switch: Print more complete time info in diagnostics
psafont Mar 19, 2024
06762b8
Merge pull request #5520 from psafont/mswitch-diag
psafont Mar 22, 2024
e15763d
CA-390570: Py3 socket.sendto needs bytes instead of a string
minglumlu Mar 25, 2024
d5d6da8
Merge pull request #5528 from minglumlu/private/mingl/CA-390570
robhoes Mar 25, 2024
bbc5a1f
CP-46179 create backup VDI with determinstic UUID
Feb 1, 2024
65f152d
CP-46179 update metadata backup/restore to use deterministic UUID
Feb 9, 2024
c2f7456
CP-46179 improve quoting in shell code
Mar 21, 2024
7f1d315
CP-46179 use -y (yes) flag to facilitate scripting
Mar 21, 2024
d37b866
CA-388860: set xapi-guard cache capacity to 512
psafont Mar 6, 2024
ec68831
xapi-guard-test: Direct loglines to stdout
psafont Mar 7, 2024
64fdc74
CP-46576: Add standard http attributes
GabrielBuica Mar 26, 2024
364073a
CA-388860: xapi-guard cache now starts in the most efficient mode
psafont Mar 6, 2024
b06b27c
CA-388860: xapi-guard cache: protect against invalid keys
psafont Mar 8, 2024
7f0afec
CP-48385: xapi-guard cache: do not spam logs on errors
psafont Mar 11, 2024
7268e36
CP-48385: xapi-guard: Remove the notion of temporary writes
psafont Mar 11, 2024
add5d2c
Merge pull request #5506 from psafont/private/paus/twins
psafont Mar 27, 2024
66f33ac
CA-384483: Can't export VDI to VHD file with base VDI
minglumlu Mar 28, 2024
8017465
CA-378317 fix EBADF in waitpid_nohang (v3)
Jun 23, 2023
a7087df
Merge pull request #5535 from minglumlu/private/mingl/CA-384483
minglumlu Mar 28, 2024
599a9c6
CP-47660 define anti-affinity feature
LunfanZhang Mar 29, 2024
ec36f8b
Use Magic MIME to determine fileserver's response content type
benjamreis Mar 29, 2024
dcbdbb9
Add minor test to forkexec test_exitcode test
freddy77 Mar 17, 2024
28135b5
Make it easier to run forkexecd tests manually
freddy77 Apr 4, 2024
bf93ab3
Add test for output strings
freddy77 Apr 5, 2024
1ce582a
Add test for input strings
freddy77 Apr 5, 2024
53d5ae8
build: add sdk-build-c Makefile rule to test building C SDK locally
edwintorok Feb 7, 2024
484b098
CA_388624: fix(C SDK): fix build failure with recent GCC
edwintorok Feb 7, 2024
f106b8f
Merge pull request #5547 from danilo-delbusso/dev/port-fedora-fix
kc284 Apr 8, 2024
14052b2
CA-390988: Prevent varstored-guard from shutting down while domains run
psafont Apr 8, 2024
f8f3d61
CP-46851: Allow metadata-exports of snapshots
robhoes Dec 4, 2023
1141b8a
CP-46851: return snapshot refs when importing exclusively snapshots
robhoes Jan 9, 2024
e9431c6
CP-46851: Add metadata_export to VM.allowed_operations
robhoes Jan 16, 2024
f48b878
CP-46851: add parameter to skip device types on get_export_metadata
psafont Mar 19, 2024
e67585c
CP-46851: Add device types excluded to exports in xe-cli
psafont Mar 21, 2024
d772c39
xapi-cli-server: simplify vm-export and helpers
psafont Mar 20, 2024
f237795
datamodel_vm: fix typo
psafont Mar 19, 2024
5013382
.git-blame-ignore-revs: ignore another reformatting commit
psafont Mar 19, 2024
85d5c86
xapi/export: do not miss parameters for export_metadata on logs
psafont Mar 21, 2024
0c6805f
xapi/export: set a date when generating tarballs
psafont Mar 25, 2024
e6f5c5c
Merge pull request #5545 from freddy77/forkexec_minor
psafont Apr 8, 2024
6089fe2
Merge pull request #5550 from psafont/private/paus/later
psafont Apr 9, 2024
6dea56a
Merge pull request #5544 from psafont/private/paus/chelydra
psafont Apr 9, 2024
e2eb7b2
Detect automatically whether we are on cygwin.
kc284 Apr 7, 2024
ade81da
Use templates to generate all the C files. CA-387885 (do not call int…
kc284 Apr 4, 2024
e6afe15
Removed erroneously ported recipe.
kc284 Apr 10, 2024
92276c5
CP-47033: Protocol_{lwt,async}: process requests concurrently (optional)
edwintorok Dec 15, 2023
8b81958
CP-47033: Make message switch concurrent processing optional
Vincent-lau Dec 20, 2023
966b636
CP-47033: Add test for concurrent message switch server
Vincent-lau Jan 29, 2024
790e6fe
Remove mention of `dotnet-packages` in `sdk-gen`'s README
danilo-delbusso Apr 11, 2024
e3d2299
CP-48768: Update Folder Structure section in PS SDK's READMEs
danilo-delbusso Apr 11, 2024
01487ea
Merge pull request #5404 from Vincent-lau/private/shul2/switch-optional
Vincent-lau Apr 11, 2024
cee08ad
CA-391485: Avoid InterpolationSyntaxError by turning off interpolation
snwoods Apr 11, 2024
27f5adc
Merge pull request #5557 from snwoods/private/stevenwo/CA-391485
snwoods Apr 12, 2024
f4aadeb
opam: add xapi-log to message-switch-core dependencies
psafont Apr 12, 2024
e505d89
Remove _t suffix for syslog_stdout_t type
freddy77 Apr 12, 2024
9638038
Merge pull request #5560 from freddy77/underscore_t
psafont Apr 12, 2024
97e8c14
CA-389929: xenopsd: fix Xen version comparison. 4.17 is > 4.2, not lo…
edwintorok Mar 12, 2024
7eab5fe
Merge pull request #5509 from edwintorok/private/edvint/xenver
edwintorok Apr 15, 2024
0d1d992
Add test for lock implementation in message_switch
Vincent-lau Jan 16, 2024
b69f75a
Merge pull request #5539 from LunfanZhang/private/luzhan/CP-47660
robhoes Apr 15, 2024
d26f0b8
Check elapsed time for timeout test
freddy77 Apr 7, 2024
4cdebd7
Merge pull request #5558 from psafont/opamfix
psafont Apr 15, 2024
5b59bc6
Merge pull request #5559 from freddy77/elapsed_test
psafont Apr 15, 2024
eb5d0fe
CP-47991: add CBT fields to the volume struct
MarkSymsCtx Mar 27, 2024
d384dbc
CP-46576: Add standard network attributes
GabrielBuica Mar 26, 2024
9bc4c1f
Merge pull request #5562 from MarkSymsCtx/CP-47991
psafont Apr 16, 2024
7d135a9
Merge pull request #5536 from GabrielBuica/private/dbuica/CP-46576
psafont Apr 17, 2024
74f7437
ocaml/idl: generate enum{_to_string,__all} functions
psafont Apr 17, 2024
c20b11e
test: add tests for allowed VM operations
psafont Apr 16, 2024
723a498
ocaml/xapi: use generated enum list instead of hand-maintained ones
psafont Apr 17, 2024
2d5f9a7
Merge pull request #5362 from Vincent-lau/private/shul2/async-race
psafont Apr 18, 2024
6681b7d
Added github workflow to build and release the C SDK.
kc284 Apr 11, 2024
f753ee2
xenopsd: add mli to cli/xn and remove unused code
psafont Apr 18, 2024
21721ad
Merge pull request #5570 from psafont/xn
psafont Apr 19, 2024
aeee6ce
Merge pull request #5563 from psafont/test_allowed
robhoes Apr 19, 2024
e2b0a40
Merge pull request #5555 from kc284/private/konstantin1/sdk-c
robhoes Apr 19, 2024
577d424
CP-48195: Split tracing library
GabrielBuica Apr 9, 2024
af2f199
CP-48195: Improvements to `tracing_export`
GabrielBuica Apr 15, 2024
d049d43
CP-48195: Add `with_tracing` helper function
GabrielBuica Apr 9, 2024
51205fa
PCI passthrough API
benjamreis Mar 11, 2024
dbfa07b
Merge pull request #5542 from xcp-ng/pci-hide-api
psafont Apr 19, 2024
6a0142f
IH-553: Optimize Sexpr.escape
edwintorok Apr 19, 2024
d989d24
IH-553: Sexpr.escape should be a noop when nothing to escape
edwintorok Apr 19, 2024
6f15c30
IH-553: Optimise SExpr.unescape
edwintorok Apr 19, 2024
f1903aa
Merge pull request #5576 from edwintorok/private/edvint/sexpr
robhoes Apr 22, 2024
f208e2f
Merge pull request #5551 from GabrielBuica/private/dbuica/CP-48195-v2
robhoes Apr 22, 2024
afe395f
ci: remove warnings about outdated node versions
psafont Apr 19, 2024
c4ec768
pyproject.toml update settings for pytest etc for running CI locally
bernhardkaindl Mar 11, 2024
06a3d67
pyproject.toml: Migrate pytype_reporter from scripts to python3
bernhardkaindl Mar 11, 2024
45ca375
ci: do not comment on PRs after merging
psafont Apr 19, 2024
4661655
ci: ignore pylint and pyflakes checks
psafont Apr 19, 2024
8244e33
test_observer.py: Add setUp() and tearDown() of mock modules
bernhardkaindl Mar 6, 2024
4cdcf74
observer.py: Update error handling
bernhardkaindl Mar 6, 2024
e677c05
ci: install observer.py dependencies
psafont Apr 22, 2024
026818b
opam: delete xapi-stdext package
psafont Apr 22, 2024
c59e4ff
opam: fix xapi-squeezed metadata
psafont Apr 22, 2024
13eb35a
opam: create package xapi-tracing-export
psafont Apr 22, 2024
95e8307
datamodel_lifecycle: bump
psafont Apr 22, 2024
ce0d57d
Merge pull request #5584 from psafont/opam-metadata
psafont Apr 22, 2024
e699b39
CA-391859: Failed to stop varstord-guard
liulinC Apr 22, 2024
bbefd9a
Merge pull request #5578 from liulinC/private/linl/xs9
liulinC Apr 23, 2024
09b4bdb
Merge pull request #5575 from psafont/streamliner
robhoes Apr 23, 2024
4c8fcdc
Exposed methods to fetch the methods available in the API.
kc284 Apr 23, 2024
e78773e
The github workflow artifacts for C contained unnecessary files.
kc284 Apr 23, 2024
cc55dd2
CI: update to Ubuntu 22.04
edwintorok Apr 25, 2024
c5e0781
ci(nopin): pinning is very slow and not necessary
edwintorok Apr 25, 2024
ce2f588
ci(opam-dune-cache): cache dune builds from opam
edwintorok Apr 25, 2024
342e125
ci(norm): we have enough space now
edwintorok Apr 25, 2024
3907e21
ci: separate workflows
edwintorok Apr 25, 2024
99137b6
Update README with different build instructions
Apr 25, 2024
15391c9
ci: trim dune cache
edwintorok Apr 26, 2024
63e0377
Merge pull request #5592 from edwintorok/private/edvint/speedci
edwintorok Apr 26, 2024
4db52ad
Merge pull request #5593 from contificate/update-readme
robhoes Apr 26, 2024
5dad78b
Removed header because it does not look good on github.
kc284 Apr 26, 2024
2fba81d
Merge pull request #5587 from kc284/master
danilo-delbusso Apr 29, 2024
e87b459
Install xapi-tracing-export library
Vincent-lau Apr 29, 2024
532d8ff
Merge pull request #5600 from Vincent-lau/private/shul2/tracing-export
robhoes Apr 29, 2024
281347b
CA-392163 clear scheduled assignments on startup
Apr 29, 2024
7cbe1c5
Merge pull request #5602 from lindig/private/christianlin/CA-392163
robhoes Apr 30, 2024
f05ac72
tests: Allow the alcotest_suite to run
psafont Apr 30, 2024
0e95436
CP-48195: Instrument client side of `forkexecd`
GabrielBuica Apr 17, 2024
70f8149
CP-48195: Comment out `warn`.
GabrielBuica Apr 30, 2024
22d532c
Merge pull request #5604 from psafont/run_suite
robhoes Apr 30, 2024
7d315d0
CA-371529 XSI-1329 remove license check for has-vendor-device
Sep 12, 2023
53dcbc0
CA-371529 remote VCustom IDL data type
Apr 23, 2024
ebb58a8
CA-371529 expunge create_from_record_without_checking_licence ...
Apr 23, 2024
c467bda
CA-371529 Update quality-gate.sh
Apr 23, 2024
6182cc2
CA-371529 document changes in datamodel
Apr 29, 2024
8de2308
Merge pull request #5583 from GabrielBuica/private/dbuica/CP-48195-in…
mg12 May 2, 2024
741775d
CA-392453: Misc fixes to Java SDK
danilo-delbusso May 2, 2024
3a935e7
IH-568, fix(dune): avoid "module unavailable" errors when running dun…
edwintorok Jan 29, 2024
feeccfa
IH-568, fix (dune utop): conflicting module names with compiler libra…
psafont Mar 6, 2024
1521fa3
IH-568, fix (dune): allow all packages to be pinned
psafont May 3, 2024
4752acc
Merge pull request #5614 from psafont/topping
psafont May 3, 2024
a516e4e
CP-48969: Reduce amount of logspam created by iostat
psafont May 7, 2024
31a5aec
opam: update dependencies from the code
psafont May 7, 2024
b307724
idl: bump datamodel_lifecycle
psafont May 7, 2024
bca1d14
Merge pull request #5619 from psafont/sdxlogs
psafont May 7, 2024
7d5d08b
CA-389319: Wait and retry for GET_UPDATES_IN_PROGRESS
minglumlu May 8, 2024
bdbf705
Merge pull request #5617 from minglumlu/private/mingl/CA-389319
robhoes May 8, 2024
d0879c7
CA-392163 on start failure, clear a VM's resource allocations
May 1, 2024
812097d
Merge pull request #5610 from danilo-delbusso/bug/jsonvalue
danilo-delbusso May 9, 2024
cb5a400
Merge branch 'master' into feature/py3
bernhardkaindl May 9, 2024
dcab8cb
Fixup the merge: fix duplicated pylint config and fix pytype with pyudev
bernhardkaindl May 9, 2024
c17427e
CA-390883: python3/tests: Fix remaining pylint and pyright comments i…
bernhardkaindl May 9, 2024
4f41a93
CA-390883: pyproject.toml: Add config for pytest & other local checks
bernhardkaindl May 9, 2024
23a86bd
CA-390883: .pre-commit-config.yaml: Add venvs for running local tests
bernhardkaindl May 8, 2024
4b1ad95
CA-390883: Simplify GitHub Workflow to re-use venvs from pre-commit
bernhardkaindl May 7, 2024
aa127ae
tests/observer: Cover the changed lines of the merge from master
bernhardkaindl Mar 6, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ b020cf35a1f2c274f95a4118d4596043cba6113f
ff39018fd6d91985f9c893a56928771dfe9fa48d
cbb9edb17dfd122c591beb14d1275acc39492335
d6ab15362548b8fe270bd14d5153b8d94e1b15c0
b12cf444edea15da6274975e1b2ca6a7fce2a090

# ocp-indent
d018d26d6acd4707a23288b327b49e44f732725e
Expand Down
47 changes: 18 additions & 29 deletions .github/workflows/1.249-lcm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
test: ["", "-3"]
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: '1.249-lcm'

Expand All @@ -25,54 +25,43 @@ jobs:
ocaml-test:
name: Ocaml tests
runs-on: ubuntu-20.04
env:
package: "xapi-cli-protocol xapi-client xapi-consts xapi-database xapi-datamodel xapi-types xapi xe"

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: '1.249-lcm'

- name: Free space
shell: bash
run: sudo rm -rf /usr/local/lib/android

- name: Pull configuration from xs-opam
run: |
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/release/yangtze/lcm/tools/xs-opam-ci.env | cut -f2 -d " " > .env

- name: Load environment file
id: dotenv
uses: falti/dotenv-action@v1.0.2

- name: Retrieve date for cache key (year-week)
id: cache-key
run: echo "date=$(/bin/date -u "+%Y%W")" >> $GITHUB_OUTPUT
shell: bash

- name: Restore opam cache
id: opam-cache
uses: actions/cache@v3
with:
path: "~/.opam"
# invalidate cache every week, gets built using a scheduled job
key: ${{ steps.cache-key.outputs.date }}-1.249
uses: falti/dotenv-action@v1

- name: Update Ubuntu repositories
shell: bash
run: sudo apt-get update

- name: Use ocaml
uses: avsm/setup-ocaml@v1
uses: ocaml/setup-ocaml@v2
with:
ocaml-version: ${{ steps.dotenv.outputs.ocaml_version_full }}
opam-repository: ${{ steps.dotenv.outputs.repository }}
ocaml-compiler: ${{ steps.dotenv.outputs.ocaml_version_full }}
opam-repositories: |
xs-opam: ${{ steps.dotenv.outputs.repository }}
dune-cache: true

- name: Install dependencies
run: |
opam update
opam pin add . --no-action
opam depext -u ${{ env.package }}
opam upgrade
opam install ${{ env.package }} --deps-only --with-test -v
shell: bash
run: opam install . --deps-only --with-test -v

- name: Build
- name: Configure and build
shell: bash
run: |
opam exec -- ./configure
opam exec -- make
Expand All @@ -85,4 +74,4 @@ jobs:
- name: Avoid built packages to appear in the cache
# only packages in this repository follow a branch, the rest point
# to a tag
run: opam uninstall ${{ env.package }}
run: opam pin list --short | xargs opam unpin
13 changes: 0 additions & 13 deletions .github/workflows/cleanup-xapi-environment/action.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Pull configuration from xs-opam
run: |
Expand Down Expand Up @@ -43,7 +43,7 @@ jobs:
opam exec -- dune exec ocaml/xapi-storage/generator/src/main.exe -- gen_markdown --path=$STORAGE_DOCDIR

- name: Deploy xapi-storage docs
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_STORAGE_DEPLOY_KEY }}
publish_dir: ${{ env.STORAGE_DOCDIR }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Pull configuration from xs-opam
run: |
curl --fail --silent https://raw.githubusercontent.com/xapi-project/xs-opam/master/tools/xs-opam-ci.env | cut -f2 -d " " > .env

- name: Load environment file
id: dotenv
uses: falti/dotenv-action@v1.0.4
uses: falti/dotenv-action@v1

- name: Update Ubuntu repositories
run: sudo apt-get update
Expand Down
64 changes: 49 additions & 15 deletions .github/workflows/generate-and-build-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup XenAPI environment
uses: ./.github/workflows/setup-xapi-environment
Expand All @@ -24,20 +24,54 @@ jobs:
shell: bash
run: opam exec -- make sdk

- name: Store C SDK source
uses: actions/upload-artifact@v4
with:
name: SDK_Source_C
path: |
_build/install/default/xapi/sdk/c/*
!_build/install/default/xapi/sdk/c/dune

- name: Store C# SDK source
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: SDK_Source_CSharp
path: _build/install/default/xapi/sdk/csharp/*

- name: Store PowerShell SDK source
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: SDK_Source_PowerShell
path: _build/install/default/xapi/sdk/powershell/*

- name: Cleanup XenAPI environment
uses: ./.github/workflows/cleanup-xapi-environment
- name: Trim dune cache
run: opam exec -- dune cache trim --size=2GiB

build-c-sdk:
name: Build C SDK
runs-on: ubuntu-latest
needs: generate-sdk-sources
steps:
- name: Install dependencies
run: sudo apt-get install libxml2-dev

- name: Retrieve C SDK source
uses: actions/download-artifact@v4
with:
name: SDK_Source_C
path: source/

- name: Build C SDK
shell: bash
run: make -C source

- name: Store C SDK
uses: actions/upload-artifact@v4
with:
name: SDK_Artifacts_C
path: |
source/*
!source/src/*.o

build-csharp-sdk:
name: Build C# SDK
Expand All @@ -49,7 +83,7 @@ jobs:
run: echo "XAPI_VERSION_NUMBER=$("${{ inputs.xapi_version }}".TrimStart('v'))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Retrieve C# SDK source
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: SDK_Source_CSharp
path: source/
Expand All @@ -64,7 +98,7 @@ jobs:
--verbosity=normal

- name: Store C# SDK
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: SDK_Binaries_CSharp
path: source/src/bin/Release/XenServer.NET.${{ env.XAPI_VERSION_NUMBER }}-prerelease-unsigned.nupkg
Expand All @@ -81,21 +115,21 @@ jobs:
run: echo "XAPI_VERSION_NUMBER=$("${{ inputs.xapi_version }}".TrimStart('v'))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Retrieve PowerShell SDK source
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: SDK_Source_PowerShell
path: source/

- name: Retrieve C# SDK binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: SDK_Binaries_CSharp
path: csharp/

# Following needed for restoring packages
# when calling dotnet add package
- name: Set up dotnet CLI (.NET 6.0 and 8.0)
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
6
Expand Down Expand Up @@ -135,7 +169,7 @@ jobs:
ForEach-Object -Process { Copy-Item -Verbose $_.FullName -Destination "output" }

- name: Store PowerShell SDK (.NET Framework 4.5)
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: SDK_Binaries_XenServerPowerShell_NET45
path: output/**/*
Expand All @@ -155,19 +189,19 @@ jobs:
run: echo "XAPI_VERSION_NUMBER=$("${{ inputs.xapi_version }}".TrimStart('v'))" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

- name: Retrieve PowerShell SDK source
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: SDK_Source_PowerShell
path: source/

- name: Retrieve C# SDK binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: SDK_Binaries_CSharp
path: csharp/

- name: Set up dotnet CLI (.NET ${{ matrix.dotnet }})
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet }}

Expand Down Expand Up @@ -205,7 +239,7 @@ jobs:
ForEach-Object -Process { Copy-Item -Verbose $_.FullName -Destination "output" }

- name: Store PowerShell SDK (.NET ${{ matrix.dotnet }})
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: SDK_Binaries_XenServerPowerShell_NET${{ matrix.dotnet }}
path: output/**/*
6 changes: 3 additions & 3 deletions .github/workflows/hugo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.119.0'

Expand All @@ -24,7 +24,7 @@ jobs:
hugo --minify

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
deploy_key: ${{ secrets.ACTIONS_DOCS_DEPLOY_KEY }}
publish_dir: ./doc/public
Expand Down
Loading
Loading