Skip to content

CP-50448: run quickcheck tests in XenRT #5884

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

Merged

Conversation

edwintorok
Copy link
Contributor

@edwintorok edwintorok commented Jul 25, 2024

Pending testing, draft PR.

Takes about 24s to run manually:

/opt/xensource/debug/quicktest -skip-xapi -- test bufio
/opt/xensource/debug/quicktest -skip-xapi -- test Timer

@edwintorok edwintorok force-pushed the private/edvint/ci-to-quicktest branch from c2a8323 to 191efc4 Compare July 26, 2024 09:19
@edwintorok
Copy link
Contributor Author

Testing has passed, although this PR might conflict with other open PRs, and may require a rebase, e.g. #5885

@edwintorok edwintorok marked this pull request as ready for review July 26, 2024 10:33
@edwintorok edwintorok force-pushed the private/edvint/ci-to-quicktest branch 2 times, most recently from 7600ff8 to c2a8323 Compare July 26, 2024 15:22
@edwintorok
Copy link
Contributor Author

The last 2 commits are not ready yet, removed from here: if we exit there then we no longer call 'finish' that looks for leaks.

@edwintorok edwintorok force-pushed the private/edvint/ci-to-quicktest branch from c2a8323 to 80211b5 Compare July 29, 2024 09:00
We want to run these from 'quicktest', so make them available as libraries,
and add a _run.ml that would run them separately, just as before.
(running separately in the CI is better, because it can be parallelize)

No functional change.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@edwintorok edwintorok force-pushed the private/edvint/ci-to-quicktest branch 2 times, most recently from 172e180 to 4a8a715 Compare July 29, 2024 09:13
Quicktest runs in Dom0, and the existing quickcheck tests run in the CI.
Some of these test as much the OCaml code, as its interaction with the system (e.g. behaviour of system calls).
So it is better to run these tests both in the CI and in Dom0.

We run these in long mode, to explore more randomly generated scenarios.

The seed can be controlled with QCHECK_SEED environment variable.
Similar to @StressTest it uses a random seed, instead of a fixed seed.

Signed-off-by: Edwin Török <edwin.torok@cloud.com>
@edwintorok edwintorok force-pushed the private/edvint/ci-to-quicktest branch from 4a8a715 to efcb7af Compare July 29, 2024 09:14
@edwintorok
Copy link
Contributor Author

#5885 is merged, I rebased this one, and dropped the 'qcheck_alcotest.ml', since we now use the upstream lib directly.

@edwintorok edwintorok merged commit 76b3db6 into xapi-project:master Jul 29, 2024
15 checks passed
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