Skip to content

ci: Restore testdev to the same coverage as it had before #8212 - #8423

Merged
gerhard merged 1 commit into
dagger:mainfrom
gerhard:remove-parallel-limit-from-single-tenant-runners
Sep 12, 2024
Merged

gerhard merged 1 commit into
dagger:mainfrom
gerhard:remove-parallel-limit-from-single-tenant-runners

Conversation

@gerhard

@gerhard gerhard commented Sep 12, 2024 •

Copy link
Copy Markdown
Contributor

During #8212, testdev was refactored and I missed these important test suites. This puts them back. We should expect it to get slower and more flaky, but at least the coverage will be the same as before.

We were still running the same tests in the split testdev-module-runtimes, so were not really missing on anything test
coverage-wise, just the comparison between the original testdev and the split one was less accurate.

@gerhard
gerhard marked this pull request as ready for review September 12, 2024 10:40
@gerhard

gerhard commented Sep 12, 2024 •

Copy link
Copy Markdown
Contributor Author

While this seemed like a good idea, test failed 3 times in a row when --parallel=16 is removed.

I will re-purpose this PR and just keep the testdev fix.


This started as

The instances running these have either 32 or 48 CPUs. By explicitly setting the parallelism to 16, we are artificially making these runs slower. In the past, this was necessary since we had race conditions, and slower disks.

Having performed a bunch of local runs on an i9 13900KS and TMPFS (a.k.a. RAMDISK) this artificial limitation is making runs about 20% slower on average.

Let's see how well removing this limit works in our single tenant CI runners...

The non-split test suites are showing decent speed gains:

Engine & CLI Before After Difference
lint 6m 39s 5m 21s 20% ⬆️
test 18m 3s 15m 39s 13% ⬆️
testdev 6m 38s 5m 49s 12% ⬆️

The split test suites are showing marginal speed gains:

Engine & CLI split Before After Difference
test-modules 5m 37s 5m 26s 3% ⬆️
test-module-runtimes 7m 42s 7m 14s 6% ⬆️
test-cli-engine 3m 34s 3m 39s 2% 🔻
test-everything-else 7m 56s 7m 42s 3% ⬆️

I still think that this is worth merging. WDYT?

It became

Restore testdev to the same coverage as it had before:

@gerhard gerhard changed the title ci: Remove parallel limit from single tenant runners ci: Restoring testdev to have the same coverage as it had before #8212 Sep 12, 2024
@gerhard gerhard changed the title ci: Restoring testdev to have the same coverage as it had before #8212 ci: Restore testdev to the same coverage as it had before #8212 Sep 12, 2024
During #8212, testdev was
refactored and I missed these important test suites. This puts them
back. We should expect it to get slower and more flaky, but at least the
coverage will be the same as before.

We were still running the same tests in the split
testdev-module-runtimes, so were not really missing on anything test
coverage-wise, just the comparison between the original testdev and the
split one was less accurate.

Signed-off-by: Gerhard Lazu <[email protected]>
@gerhard gerhard mentioned this pull request Sep 12, 2024
2 of 5 tasks
@gerhard
gerhard merged commit e31b9e9 into dagger:main Sep 12, 2024
@gerhard
gerhard deleted the remove-parallel-limit-from-single-tenant-runners branch September 12, 2024 16:21
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.

2 participants