Skip to content

ci: each external corpus is fetched at a pinned commit and checked, and env-config needs no download (C8) - #723

Merged
DrunkOnJava merged 5 commits into
mainfrom
ci/c8-pins
Oct 5, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
ci/c8-pins

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

From the CI audit of 2026-10-05. This is stacked on #722 (C7), whose commit it includes until #722 merges.

Before:

  • fetch-corpus followed the upstream HEAD of phi-ag/rvt and magnetar-io/revit-test-datasets. Six different phi-ag commits were in the cache.
  • The nightly, perf, deploy and publish workflows checked out magnetar's HEAD directly.
  • So CI could change colour with no commit here. env-config also downloaded Cursor's schema on every pull request.

Now:

  • Pins. fetch-corpus pins each corpus to a commit: phi-ag d2eb1f3 and magnetar fd755e1, 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 through env (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.
  • Direct checkouts. The five direct checkouts now use the action. publish.yml's pass cache: false, so the release path restores no cache.
  • Cursor schema. env-config validates against 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-corpus no longer tracks upstream HEAD; it resolves fixed commits for phi-ag/rvt and magnetar-io/revit-test-datasets, keys the Actions cache on those SHAs, checks out with ref set, and fails if the tree is not that commit. A new cache input (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 through fetch-corpus so every job shares the same pin and verification.

Env-config lint: .cursor/environment.json is validated against a repo copy of Cursor’s environment schema (tools/ci/cursor-environment.schema.json) instead of downloading from cursor.com on 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, and release-binaries stops running on every Cargo.lock PR while adding a weekly main schedule.

Reviewed by Cursor Bugbot for commit fb5ea14. Configure here.

… 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
Comment thread .github/workflows/perf-budget.yml Fixed
Comment thread .github/workflows/perf-budget.yml Fixed
Comment thread .github/workflows/publish.yml Fixed
Comment thread .github/workflows/publish.yml Fixed
…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.
@DrunkOnJava
DrunkOnJava merged commit 604b50f into main Oct 5, 2026
31 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/c8-pins branch October 5, 2026 17:15
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