Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
386 commits
Select commit Hold shift + click to select a range
c84f433
Revert "CP-45572,CP-45573: Split 'do_http_get' function out"
minglumlu Feb 27, 2024
7741b97
Revert "CP-45572,CP-45573: Split 'check_task_status' function out"
minglumlu Feb 27, 2024
cfc5b63
Revert "Decrease the usage count of List.hd from 317 to 315"
minglumlu Feb 27, 2024
b5a76a3
ci: add differential ShellCheck
edwintorok Feb 26, 2024
28e711f
Merge pull request #5476 from minglumlu/private/mingl/CA-389206
robhoes Feb 28, 2024
ab24f6d
CA-383867: Share code for handling Tpm requests
psafont Feb 20, 2024
a714f76
CA-383867: Add local disk cache library for xapi guard
psafont Dec 6, 2023
cfb7748
CA-383867: Delay conversion of VM's UUIDs to string
psafont Feb 16, 2024
8582a70
CA-383867: Segregate vtpm persistance out of the callback
psafont Feb 16, 2024
b16a018
CA-383867: Integrate the cache into xapi-guard's main loop
psafont Feb 9, 2024
77d2b1d
xapi-guard: reduce the number of calls to fetch the vTPM ref
psafont Feb 20, 2024
bf0e9c0
CA-383867: Add startup procedure to xapi-guard
psafont Feb 23, 2024
4a67a20
CA-383867: Prepare xapi-guard cache to change fallback on write error
psafont Feb 27, 2024
b80357e
CA-383867: Allow xapi-guard to disable the disk cache
psafont Feb 27, 2024
b27ecda
Merge pull request #5473 from kc284/master
Feb 28, 2024
196c88c
CA-383867: Make xapi-guard's cache aware of read requests
psafont Feb 28, 2024
0a0d55d
Create a new python3 directory for python3-only scripts
snwoods Feb 23, 2024
7e4c476
CA-383867: xapi-guard's cache contents are used in read requests
psafont Feb 28, 2024
dcb8042
CA-383867: xapi-guard cache sort files by timestamp
psafont Feb 29, 2024
130d7b9
fix(ci): Move differential shellcheck to its own workflow
edwintorok Feb 29, 2024
1ae1dd8
Merge pull request #5460 from psafont/private/paus/double-gardon
robhoes Feb 29, 2024
8501830
Update .github/workflows/shellcheck.yaml
edwintorok Feb 29, 2024
34e92c9
Merge pull request #5464 from xcp-ng/hyperthreading-host-info
robhoes Mar 4, 2024
59dd2f3
Merge pull request #5451 from freddy77/no_pci
psafont Mar 4, 2024
aa01f2c
Merge pull request #5471 from xcp-ng/gtn-fix-tmpfiles-setup
psafont Mar 4, 2024
acf72f2
Merge pull request #5447 from xcp-ng/xenops-libexec-conf-fix
psafont Mar 4, 2024
4a2c1bf
Merge pull request #5463 from xcp-ng/filter-out-local-ipv6
psafont Mar 4, 2024
faf2c76
fix: typo in doc
duobei Mar 6, 2024
7a544a0
Merge pull request #5487 from duobei/fix-typo-in-doc
psafont Mar 6, 2024
78d387d
Update xapi-idl unittest data for cluster interface
Vincent-lau Jan 26, 2024
21729fb
Merge pull request #5481 from edwintorok/private/edvint/ds
psafont Mar 6, 2024
3037343
CP-45496: Xapi writes host name/uuid to corosync.conf
Vincent-lau Jan 18, 2024
a5b544e
Add feature flag
Vincent-lau Mar 6, 2024
72e9614
Replace use of `sdksanity` with reusable workflow for testing SDKs
danilo-delbusso Feb 7, 2024
89e4f79
Build and package C# and PowerShell SDKs when creating a release
danilo-delbusso Feb 7, 2024
3d2738e
Add and use `cleanup-xapi-environment` composite action
danilo-delbusso Feb 14, 2024
b95cbcc
Misc changes to SDK actions
danilo-delbusso Feb 14, 2024
227a1d7
Use consistent artefact naming for SDK binaries
danilo-delbusso Feb 19, 2024
8596e98
CP-46151: Productise the observer.py.
snwoods Feb 20, 2024
4bee90f
Merge pull request #5442 from snwoods/private/stevenwo/CP-46151
snwoods Mar 6, 2024
c5af1a4
Merge pull request #5433 from danilo-delbusso/dev/drop-json.net-patches
Mar 6, 2024
1bf250b
Quicktest_vm_lifecycle: use requested SR not default SR
ydirson Mar 5, 2024
50efc1a
Merge pull request #5371 from Vincent-lau/private/shul2/coro-uuid
Vincent-lau Mar 7, 2024
711a82c
CP-46157: Add unit test for `observed_components_of`
GabrielBuica Feb 6, 2024
dc7bcfb
opam: add hex to xapi dependencies
psafont Mar 7, 2024
3cde065
Merge pull request #5491 from psafont/hexxed
psafont Mar 7, 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
ebbb50e
Merge pull request #5445 from GabrielBuica/private/dbuica/CP-46157-un…
psafont Mar 7, 2024
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
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…
Dec 15, 2023
04efef1
Replaced the generation code of a few more files with mustache templa…
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…
Dec 20, 2023
ae7480c
Generate the C enums with templates.
Dec 17, 2023
37821d8
Corrections as per code review.
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
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
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.
Apr 7, 2024
ade81da
Use templates to generate all the C files. CA-387885 (do not call int…
Apr 4, 2024
e6afe15
Removed erroneously ported recipe.
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.
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.
Apr 23, 2024
e78773e
The github workflow artifacts for C contained unnecessary files.
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.
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
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
75fbbc9
CP-48027: Corosync upgrade add `cluster_stack_version` datamodel change
Vincent-lau Apr 18, 2024
ac4aac7
CP-48027: Unittest file change for cluster_interface
Vincent-lau Apr 18, 2024
617f3b5
CP-48027: Add FIST point to allow Corosync2 cluster
Vincent-lau Apr 17, 2024
cbbc21c
CP-48027: Add feature flag for corosync3
Vincent-lau Apr 17, 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
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
281 changes: 281 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,281 @@
# For more configuration details:
# https://docs.codecov.io/docs/codecov-yaml

# After making edits, check if this file is valid by running:
# curl -X POST --data-binary @.codecov.yml https://codecov.io/validate

#
# Coverage configuration
# ----------------------
#
codecov:
#
# Show the Codecov status without waiting for other status to pass:
#
require_ci_to_pass: no
notify:
wait_for_ci: no

github_checks:
#
# Disable adding coverage annotations to the code in the GitHub
# Code Review for now:
#
# - The annotations consume a lot of space in the PR code review,
# and can make it hard to review files that are not covered yet.
#
# - The coverage can be visited using the Codecov link at all times.
# https://app.codecov.io/gh/xapi-project/xen-api/pulls
#
# - The annotations can be hidden in GitHub PR code review by
# pressing the "a" key or by deselecting the "Show comments"
# checkbox but they are shown by default.
#
# - The Codecov Chrome and Firefox extension is a much nicer
# way to indicate coverage:
#
# Link: https://github.com/codecov/codecov-browser-extension
#
# - How to enable: You need to log in to Codecov using Github.
# For Firefox, enable the needed permissions:
# https://github.com/codecov/codecov-browser-extension/issues/50
#
# Reference:
# http://docs.codecov.com/docs/common-recipe-list#disable-github-check-run-annotations
#
annotations: false


#
# Pull request comments:
# ----------------------
# This feature adds the code coverage summary as a comment on each PR.
# See https://docs.codecov.io/docs/pull-request-comments
# This same information is available from the Codecov checks in the PR's
# "Checks" tab in GitHub even when this feature is disabled.
#
comment:
#
# Legend:
# "diff" is the Coverage Diff of the pull request.
# "files" are the files impacted by the pull request
# "flags" are the coverage status of the pull request
#
# For an even shorter layout, this may be used:
# layout: "condensed_header, diff, files, flags"
#
layout: "header, diff, files, flags"

#
# Only add the Codecov comment to the PR when coverage changes
#
require_changes: true
#
# The overall project coverage is secondary to the individual coverage
# and it is always shown in the repository at:
# - https://app.codecov.io/gh/xapi-project/xen-api
#
hide_project_coverage: true


#
# Coverage limits and display details:
# ------------------------------------
#
coverage:

#
# Number of precision digits when showing coverage percentage e.g. 82.1%:
#
precision: 1

#
# Commit status checks and display:
# ---------------------------------
# https://docs.codecov.io/docs/commit-status
#
# target: Fail the PR if coverage is below that
# threshold: Allow reducing coverage by this amount
#
# - The values added are a very generous, friendly limit to not block most PRs
#
# - XAPI maintainers may tighten these screws more to require better tests
#
status: # global coverage status and limits

#
# Patch limits
# ------------
# These checks look at only the diff of the PR as basis for them.
#
patch:
scripts:

#
# The scripts limit applies to:
# -----------------------------
#
# - scripts/**
# - excluding: **/test_*.py
#
paths: ["scripts/**", "!**/test_*.py"]

#
# For scripts/** (excluding tests):
#
# For scripts, coverage should not be reduced compared to its base:
#
target: auto

#
# Exception: the threshold value given is allowed
#
# Allows for not covering 20% if the changed lines of the PR:
#
threshold: 20%

ocaml:
#
# The ocaml limit applies to:
# -----------------------------
#
# - ocaml/**
# - excluding: **/test_*.py
#
paths: ["ocaml/**", "!**/test_*.py"]

#
# For scripts/** (excluding tests):
#
# For scripts, coverage should not be reduced compared to its base:
#
target: auto

#
# Exception: the threshold value given is allowed
#
# Allows for not covering 20% if the changed lines of the PR:
#
threshold: 20%

python3:

#
# The python3 limit applies to:
# -----------------------------
#
# - python3/**
# - excluding: **/test_*.py
#
paths: ["python3/**", "!**/test_*.py"]

#
# For python3/** (excluding tests):
#
# For python3, coverage should not be reduced compared to its base:
#
target: auto

#
# Exception: the threshold value given is allowed
#
# Allows for not covering 20% if the changed lines of the PR:
#
threshold: 20%

# Checks each Python version separately:
python-3.11:
flags: ["python3.11"]
python-2.7:
flags: ["python2.7"]

#
# Project limits
# --------------
# These checks are relative to all code, not the changes (not the diff of the PR)
#
project:

#
# Python modules and scripts below scripts/ (excluding tests)
#
scripts:
paths: ["scripts/**", "!**/test_*.py"]
target: 48%
threshold: 2%

#
# Python modules and scripts below ocaml/ (excluding tests)
#
ocaml:
paths: ["ocaml/**", "!**/test_*.py"]
target: 51%
threshold: 3%

#
# Python modules and scripts below python3/ (excluding tests)
#
python3:
paths: ["python3/**", "!**/test_*.py"]
target: 48%
threshold: 2%

#
# Test files
#
tests:
# Ensure that all tests are executed (tests themselves must be 100% covered)
target: 98%
paths: ["**/test_*.py"]


#
# Components:
# -----------
# Components can be selected in the Codecov Web interface then looking at one PR:
# https://app.codecov.io/gh/xapi-project/xen-api/pulls
#
component_management:

default_rules: # default rules that will be inherited by all components
statuses:

- type: project
# `auto` will use the coverage from the base commit (pull request base
# or parent commit) coverage to compare against.
target: auto
threshold: 2%

- type: patch
target: auto
threshold: 10%

individual_components:

- component_id: scripts # this is an identifier that should not be changed
name: scripts # this is a display name, and can be changed freely
# The list of paths that should be in- and excluded in this component:
paths: ["scripts/**", "!scripts/examples/**", "!**/test_*.py"]

- component_id: scripts/examples
name: scripts/examples
paths: ["scripts/examples/**", "!scripts/**/test_*.py"]

- component_id: ocaml
name: ocaml
paths: ["ocaml/**", "!**/test_*.py"]

- component_id: ocaml/xapi-storage
name: ocaml/xapi-storage
paths:
- "ocaml/xapi-storage/**"
- "ocaml/xapi-storage-script/**"
- "!**/test_*.py"

- component_id: python3
name: python3
paths: ["python3/**", "!**/test_*.py"]

- component_id: test_cases
name: test_cases
paths: ["**/test_*.py"]
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
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
Loading