Repository navigation
feat(ci): add language and flake-eval cells to the consumer matrix - #1807
Merged
Merged
Conversation
4 tasks
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.
Description
Part 2 of 2 for #1762. This PR is stacked on #1803 (part 1) and targets
feature/1762-consumer-matrix. It will be retargeted todevonce #1803 merges.It adds language cells and a flake-evaluation cell to the
Consumer Matrixjob from part 1.Expected reds: only the #1800/#1801 cells, as on #1803, until those fixes land on
dev.rustis a strict expected-fail on #1496. A scaffolded Rust consumer gets the stock Pythonjustfile.project, sojust testexits 0 without compiling anything. The cell still runs every gate, and is accepted only when:testis its sole failed gate, andjust testexited 0 but the rust fixture suite never ran").If the cell passes, it fails ("rust now passes — remove the #1496 expected-fail marker"). If it fails in any other way, it fails. The marker is one entry,
EXPECTED_FAIL[rust]="test #1496", next to the cell list, and the summary showsexpected-fail (#1496). #1496 now has a comment saying this cell is its acceptance test and that its fix must remove the marker.CI run: https://github.com/vig-os/devkit/actions/runs/36880846330. The only failing cells are
devcontainer,trunk,ci-runner,tag-prefix,language-guardandfeatures-disabled(#1801exceeds 500 KB, plus #1800too many blank linesonfeatures-disabled).rustisexpected-fail (#1496).direnv,bare,python,nodeanddirenv-flakepass. Every other job is green. An earlier run, https://github.com/vig-os/devkit/actions/runs/36878543444, gave the same verdicts.Type of Change
feat-- New featuretest-- Adding or updating testsci-- CI/CD pipeline changesChanges Made
tests/fixtures/consumer/{python,node,rust}/: a zero-dependency hello world plus one test each. Python uses pytest from adevdependency group. Node usesnode --testand ships a dependency-freepackage-lock.jsonsonpm ciworks. Rust uses a#[test]insrc/lib.rs. Each test writes$CONSUMER_MATRIX_SENTINELwhen it is set.python,node,rust:baremode with--force. That is the adoption path for an existing project: no.vig-osyet, so nothing is upgraded, and without--forceinit-workspace.sh refuses a non-empty directory.bareships the scaffolded hook config with no mode-specific files, so the result reflects the language and not the mode.sync(just sync) andtest(just test), as the consumer's CI runs them. These apply to every cell.testgate fails if the sentinel was not written.seedalso checks that the scaffold detected the language intoDEVKIT_LANGUAGES.direnv-flakecell:nix flake checkon the rendered flake with--override-input vigos "path:$ROOT"(same approach as test-project's "Check downstream flake stub") and--no-write-lock-file..pre-commit-config.yaml, sofirst-commitandprecommitexercise the direnv hooks for the first time. The plaindirenvcell still skips them.pyproject.toml: addedfixturestonorecursedirsso devkit's own pytest does not collect the fixture suite.Changelog Entry
Two sub-bullets added to the existing
Consumer matrix in devkit PR CIentry under Added:Testing
tests/bats/consumer-matrix.batsextended first (later also the strict expected-fail verdict: exact match accepted, a passing cell refused, any other failure refused) (cell list, fixture detection, node npm-mapped recipes, the sentinel contract, direnv-flake render shape). It was committed red, then made green by the implementation.just precommitgreen.python6 s,node6 s anddirenv-flake22 s, all passing.rustred on Rust pack: L1/L4/L7 never shipped — the pack cannot be adopted cold #1496.CI timing
Each cell's summary now lists the time of every gate, because the cells run concurrently and their logs are printed afterwards.
The job still finishes about 65 s before the slowest lane, so the critical path does not change, and the flake cell stays in the same job (no separate job is needed). Per-cell times under 12-way concurrency on the 4-vCPU runner:
direnv-flake163 s, the both-mode cells 163–176 s,python/node/rust67–70 s,bare65 s,direnv5 s. The flake cell is not the outlier: thenix flake checkand dev-shell build reuse the closure setup-env already pulled. Locally, with a warm store and no contention, it takes 22 s.Refs: #1762