Repository navigation
ci: each external corpus is fetched at a pinned commit and checked, and env-config needs no download (C8) - #723
Merged
Merged
Conversation
… render on demand, and the nightly only what PR CI does not (C7) From the CI audit of 2026-10-05: - release-binaries ran the full five-platform LTO build 16 times in five days, as Cargo.lock in its pull-request paths fired it on every dependency bump. It runs on pull requests that touch the workflow or docker/, and weekly on main. - changelog.yml ran on every push to main (111 runs) and every tag, and nothing consumed either artifact (the release writes its notes with --generate-notes). It runs on demand; its stale notes about committing back to main are gone. - corpus-nightly keeps only what goes wider than PR CI: Tier 2 health over 32 projects and the project corpus smoke. Its tier 3 was a subset of the IfcOpenShell job and its tier 4 (field-type coverage, samples, IFC roundtrip, bench compile) all run in PR CI.
…nd env-config needs no download (C8) From the CI audit of 2026-10-05: fetch-corpus followed the upstream HEAD of phi-ag/rvt and magnetar-io/revit-test-datasets (six phi-ag commits were in the cache), and the nightly, perf, deploy and publish workflows checked out magnetar's HEAD directly, so CI could change colour with no commit here; env-config downloaded Cursor's schema on every pull request. - fetch-corpus pins each corpus to a commit (phi-ag d2eb1f3, magnetar fd755e1, today's heads), checks after checkout or cache restore that the tree is that commit, and passes its inputs through env. Moving a corpus is an edit of its commit in the action. - The five direct checkouts use the action; publish.yml's pass cache: false, so the release path restores no cache. - env-config validates against tools/ci/cursor-environment.schema.json, a copy of the published schema taken 2026-10-05.
# Conflicts: # .github/workflows/deploy-viewer.yml
…pository syntax (C8) `uses: $/...` (GitHub, 2026-07-30) resolves an in-repo action or reusable workflow from the running commit rather than from whatever the workspace holds when the step runs, so it is pinned like every other `uses:` here. zizmor 1.30's self-repository audit flagged the six references this branch adds and the eight already on main (alerts 46-51, 84, 114). The composite action reads nothing through github.action_path, so where it is fetched from changes nothing it does.
6 tasks done
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.
From the CI audit of 2026-10-05. This is stacked on #722 (C7), whose commit it includes until #722 merges.
Before:
fetch-corpusfollowed the upstream HEAD of phi-ag/rvt and magnetar-io/revit-test-datasets. Six different phi-ag commits were in the cache.Now:
fetch-corpuspins each corpus to a commit: phi-agd2eb1f3and magnetarfd755e1, today's heads, so existing caches still hit. After checkout or cache restore it checks that the tree is that commit, and it passes its inputs throughenv(zizmor's template-injection finding). Moving a corpus is an edit of its commit in the action, and that pull request runs CI on the new corpus.cache: false, so the release path restores no cache.tools/ci/cursor-environment.schema.json, a copy of the published schema taken 2026-10-05.Note
Low Risk
Changes are limited to GitHub Actions and vendored JSON schema; they reduce flaky external dependencies and make corpus versions explicit, with no application runtime or auth changes.
Overview
CI determinism for external test data:
fetch-corpusno longer tracks upstreamHEAD; it resolves fixed commits forphi-ag/rvtandmagnetar-io/revit-test-datasets, keys the Actions cache on those SHAs, checks out withrefset, and fails if the tree is not that commit. A newcacheinput (default on) lets release smokes skip cache restore/save.Workflow wiring: Nightly corpus, perf budgets, viewer deploy, and publish release smokes that used raw
actions/checkout+ LFS now go throughfetch-corpusso every job shares the same pin and verification.Env-config lint:
.cursor/environment.jsonis validated against a repo copy of Cursor’s environment schema (tools/ci/cursor-environment.schema.json) instead of downloading fromcursor.comon each run.The diff also carries C7 CI cost trims from the stacked branch: changelog is manual-only (
workflow_dispatch), corpus nightly drops redundant tier 3/4 jobs, andrelease-binariesstops running on everyCargo.lockPR while adding a weekly main schedule.Reviewed by Cursor Bugbot for commit fb5ea14. Configure here.