Skip to content

Speed up tests - #23442

Draft
jelly wants to merge 5 commits into
cockpit-project:mainfrom
jelly:speed-up-tests
Draft

Speed up tests#23442
jelly wants to merge 5 commits into
cockpit-project:mainfrom
jelly:speed-up-tests

Conversation

@jelly

@jelly jelly commented Jul 6, 2026

Copy link
Copy Markdown
Member

This should improve the other scenario by only running our testapi/bots api tests on Fedora CoreOS only saving 8 minutes per "other" scenario.

Other commits are small test improvements to reduce doing unneeded work.

Baseline without retries:

arch/other - 22 minutes
centos-9-bootc/other ~ 20 minutes
debian-testing/other ~ 22 minutes
fedora-44/other ~ 24 minutes
fedora-core/other ~ 21 minutes

jelly added 5 commits July 4, 2026 19:59
Originally added in 504a21a but no longer applicable in
the current version of the page.
The initial boot is already a "reboot" from the initial provision, so
this can be skipped as its quite costly. A reboot costs ~ 30 seconds on
in CI.
In CI these tests take 3 and a half minutes in total, while a standard
test run already tests `--script` and all tests run in the same
container so the same qemu/python is used for testing.

Fedora CoreOS was picked as it is the required passing scenario which
also runs this test.
This test only executes TestTodo.testTodo which is a simple
`unittest.TestCase` so it can be nondestructive. This skips bringing up
a new virtual machine which is quite expensive (takes ~ 30 seconds in
CI).
These tests test the TAP / run-tests API so don't need to be run on
every image, especially as TestRunTest.testRetry takes 5 minutes to run.
@jelly

jelly commented Jul 7, 2026

Copy link
Copy Markdown
Member Author

The speedup is less then desired because of our mass parallelism (8 cores).

@jelly

jelly commented Jul 8, 2026

Copy link
Copy Markdown
Member Author

@allisonkarlitskaya review would still be nice, what do you think?

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.

1 participant