Repository navigation
devcloud CI: shard the devcloud gate's container integration - #336
Merged
Merged
Conversation
devcloud/tests/run.sh takes DEVCLOUD_PART (unit, image, host, systemd; unset runs everything, as before). integration.py registers each case under the group of cases that share its container and runs the groups a part names (PARTS), in definition order; with no part every case runs in the order it always did. Each integration gate builds the image itself: ci-kit gates hand nothing on. The leak case now greps for the token the stand-in serves: after the host group's rotation it was looking for a value no longer in the store. Removes the TECH-DEBT entry this answers. Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
Sminos-Session: devcloud setup#639ca648 (macbook on macbook)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Board ticket #113 (api board). The
devcloudgate took about 8.5 min because its parts ran one after another. It is now split into four gates that run side by side:devcloud-unit, plus three integration parts. Each part builds the image on its own runner, because ci-kit gates hand nothing on.devcloud/tests/run.shtakesDEVCLOUD_PART, following sminos'sSMINOS_PART:unit,image,host,systemd. Unset, it runs everything, as before.devcloud/tests/integration.pyregisters each case under the group of cases that share its container.PARTSmaps parts to whole groups, balanced on measured times:image= the image check (104 s);host= the host container plus the one-shot boots;systemd= the systemd container plus the projects cases.leaking_apply_is_scrubbednow greps for the token the stand-in currently serves. In the serial run, the host group had already rotated the original token out of the store before this case ran, so the case passed whatever the logs held.devcloud/, so any devcloud change rebuilds the only layer, and ci-kit run steps can't reach the GHA cache backend. See Residue.Full account:
docs/doperpowers/plans/2026-10-22-devcloud-ci-shards-report.md.Per-part times (this PR's first green run)
Run 39704697659, all green. The PR touches
.github/**, so every repo gate ran beside these four. Job time is GitHub's start-to-finish; build and integration come from the log timestamps.The devcloud gate set's wall time is 4m50s, set by
devcloud-host. The serial gate took 8m40s on main (run 39662033753) and 8m38s in the measurement run below. The parts ran 3 + 29 + 11 = 43 cases, the same 43 the unsharded run prints.Validation Evidence
Wall time halved. Measurement run 39703626947 ran every gate side by side on one commit, including a throwaway unsharded gate (
devcloud-all, not in this PR):ci-gateprinted:PASS devcloud-unit 1m21s,PASS devcloud-systemd 4m25s,PASS devcloud-image 4m29s,PASS devcloud-host 4m30s,PASS devcloud-all 8m38s,GREEN.Every case runs exactly once. The unsharded gate printed 44 case lines and the three parts together printed 45. The difference is "the stand-ins start", setup that runs once in each part that boots containers. Without that line, the two lists hold the same 43 cases (sorted lists equal, no duplicate, no FAIL).
The unsharded run is unchanged.
diffof its case sequence against main's reference run 39662033753 is empty.Review:
doperpowers:reviewer-mediumon c331086..cc1c517 found nothing material (verdict: correct; it traced fixture commits, the secret rotation, built images and containers across parts).Residue
setup.sh's package layer out of the image's single RUN. Every devcloud change rebuilds the whole image, about 150 s in each of three gates. With a separate apt/toolchain layer, a cache could serve it. The catch: setup.sh is also the VM builder's recipe.runsteps don't seeACTIONS_RUNTIME_TOKEN/ACTIONS_RESULTS_URL, sobuildx --cache-from type=ghais unreachable. This needs a ci-kit option that exports them, or a registry-cache credential. It belongs in ci-kit's repo.image_is_cleantakes 96 s, which, plus the build, bounds the image part. Scanning in parallel insidecheck_imagewould lower the gate set's wall time further.Sminos-Session: devcloud setup#639ca648 (macbook on macbook)