Skip to content

Check the deployed PR review workflow in unit-pure - #1724

Merged
neuromechanist merged 2 commits into
devfrom
ci/wire-pr-review-parity
Oct 12, 2026
Merged

neuromechanist merged 2 commits into
devfrom
ci/wire-pr-review-parity

Conversation

@neuromechanist

@neuromechanist neuromechanist commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary

run-pr-review.yml is on nemarDatasets/.github main (merged 2026-10-12, commit fe7f821a, blob a364ddf2), byte-identical to .github/dataset-workflows/run-pr-review.yml in this repository.
This wires the parity test in test/pr-review-workflow.test.ts to that deployed copy, so it runs in the required unit-pure job instead of skipping.
With NEMAR_PR_REVIEW_WORKFLOW_LIVE set, a missing deployed copy fails the test, and a deployed copy that differs by one byte fails it too.

Changes

  • .github/workflows/test.yml, job unit-pure: the deployed-workflow checkout now takes a block scalar sparse-checkout listing both .github/workflows/onboard-openneuro.yml and .github/workflows/run-pr-review.yml. sparse-checkout-cone-mode: false is unchanged (non-cone mode takes file paths). The step is renamed to the plural and its comment now describes both files.
  • Same job, "Run pure unit tests" env: adds NEMAR_PR_REVIEW_WORKFLOW_LIVE: dataset-workflows-live/.github/workflows/run-pr-review.yml next to NEMAR_DATASET_WORKFLOW_LIVE, written the same way.
  • test/pr-review-workflow.test.ts: header comment only. It said to add the file to the sparse checkout once deployed; that is now done.
  • ADR 0092, "Before it is switched on" step 3, amended to say it is done. No new ADR.
  • CHANGELOG.md, Unreleased: a Changed entry.

Testing

  • Fetched the deployed file read-only with gh api and verified blob a364ddf2f0865f3199833d58849297a3594b89bb and byte equality with the authoring copy.
  • With NEMAR_PR_REVIEW_WORKFLOW_LIVE pointing at it, the three drift tests run (no skip marker) and pass, and the whole file passes (63 of 63). With the variable unset, the file reports 2 skipped, which is the state CI was in before this change.
  • On a scratch copy with one byte changed, the drift test fails with "run-pr-review.yml has drifted from nemarDatasets/.github (first difference at line 1)".
  • With the variable set to a path that does not exist, the presence test fails naming the variable.
  • The changed test.yml parses as YAML. The block scalar yields exactly the two paths, and sparse-checkout-cone-mode is the boolean false.
  • The test is in the pure tier (its text matches none of testRequest, TEST_API_URL, runCli(). No other test reads the old single-file arrangement: NEMAR_DATASET_WORKFLOW_LIVE is read only by test/dataset-workflow-parity.test.ts, which is unaffected.
  • adr-index and changelog-format tests, Biome on the changed TypeScript, bun run typecheck, test/workflow-yaml.test.ts and test/workflow-gh-calls.test.ts.
  • CI evidence that the drift test ran and passed in unit-pure: see the comment below (the three tests report (pass), none (skip)).

Notes

  • PR Fix the weekly summary drift workflow so it can file its issue #1719 also edited .github/workflows/test.yml. It merged into dev while this was in flight and this branch is rebased onto it; the two edits do not overlap. This change is confined to the deployed-workflow checkout step and one env line.
  • From now on a change to .github/dataset-workflows/run-pr-review.yml is red in unit-pure until the same bytes are on nemarDatasets/.github main, as for the onboarding workflow.
  • The test-gate pure tier in deploy-backend.yml does not set the variable, so the test still skips there, as the onboarding parity test already does. The pull request gate is where it is enforced.

run-pr-review.yml is on nemarDatasets/.github main. Add it to the unit-pure sparse checkout and set NEMAR_PR_REVIEW_WORKFLOW_LIVE so the parity test runs and a missing copy fails instead of skipping. Tested: ran the drift test against the fetched deployed copy (passes) and a one-byte-changed copy (fails).
Mark step 3 of ADR 0092's switch-on list done and add the Unreleased changelog entry. Tested: adr-index and changelog-format tests pass.
@github-actions

Copy link
Copy Markdown

📦 Package Preview

Your package is ready to test!

bun install -g nemar-cli@PR1724

Version: 0.10.17-PR1724.fe5b44b
Commit: fe5b44b


🤖 Updated on each push.

@neuromechanist

Copy link
Copy Markdown
Contributor Author

CI evidence from the unit-pure run on this branch (job passed, 12006 pass, 36 skip, 0 fail across 547 files).

The checkout step logged the block scalar with both paths and sparse-checkout-cone-mode: false:

Check out the deployed dataset workflows  sparse-checkout: .github/workflows/onboard-openneuro.yml
                                          .github/workflows/run-pr-review.yml
                                          sparse-checkout-cone-mode: false

The "Run pure unit tests" step logged the drift tests of test/pr-review-workflow.test.ts as run and passed, not skipped:

(pass) the deployed copy > the authoring copy says where it is deployed
(pass) the deployed copy > NEMAR_PR_REVIEW_WORKFLOW_LIVE names a file that is present
(pass) the deployed copy > is byte-identical to the authoring copy > the two files match exactly

The log has no (skip) line for any of the three, and the onboarding parity test still reports (pass).

@neuromechanist
neuromechanist merged commit 1168bc2 into dev Oct 12, 2026
18 checks passed
@neuromechanist
neuromechanist deleted the ci/wire-pr-review-parity branch October 12, 2026 23:58
neuromechanist added a commit that referenced this pull request Oct 13, 2026
Keeps dev's #1711, #1719, #1720 and #1724 changelog entries and this branch's two, and dev's ADR index lines with this branch's ADR 0098 line.
This was referenced Oct 13, 2026

This branch was previously deployed

1 inactive deployment
npm — fe5b44bb Deployed Oct 12, 2026 by neuromechanist via publish #3379
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.

1 participant