Skip to content

Conversation

psafont
Copy link
Member

@psafont psafont commented Aug 20, 2025

There's an ongoing effort to create an xcp-ng port for ARM servers, to help maintain compatibility in the toolstack, these changes make the tests pass on aarch64 and unblock adding CI testing on xs-opam.

Before enabling the CI in xen-api, some packages need to be removed from xs-opam: xapi-project/xs-opam#737

I will open a PR enabling aarch64 runners on xen-api once the xs-opam tests are passing, on both repositories the new CI is set to experimental to avoid blocking any merges

notes

let () =
Suite_init.harness_init () ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if we could drop this in any other tests, maybe this would make tests slightly faster

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use the code that reads notes from ELF files anymore and could remove the test.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll drop the test, then

@psafont
Copy link
Member Author

psafont commented Aug 20, 2025

Ah, changes are needed to the required checks because now the x86 ones changed its name.

When this is ready to merge I'll change the protected branches, otherwise people won't be able to merge to master

notes

let () =
Suite_init.harness_init () ;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't use the code that reads notes from ELF files anymore and could remove the test.

Unfortunately, the backtrace in aarch64 has one location less than on
x86_64, at least on ocaml 4.14.2, so we have to change the test to check
for some repetitions instead of just matching the whole output.

Signed-off-by: Pau Ruiz Safont <[email protected]>
The tests for the module needed to be modified to be made more robust
against failures and make it work under aarch64, but the code is unused,
so simply remove all of it.

Signed-off-by: Pau Ruiz Safont <[email protected]>
@psafont psafont force-pushed the dev/psafont/arm64 branch from ac6fcab to ad06c0a Compare August 21, 2025 10:16
@psafont psafont requested a review from lindig August 21, 2025 10:16
@psafont psafont force-pushed the dev/psafont/arm64 branch from ad06c0a to 9203724 Compare August 21, 2025 12:01
@psafont psafont changed the title CI: enable testing on aarch64 Fix tests that don't work on aarch64 Aug 21, 2025
@psafont psafont added this pull request to the merge queue Aug 21, 2025
Merged via the queue into xapi-project:master with commit 2d17143 Aug 21, 2025
15 checks passed
@psafont psafont deleted the dev/psafont/arm64 branch August 21, 2025 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants