Skip to content

ci(workflow-sanity): run generated-doc-baselines on PRs (#297)#351

Merged
cael-dandelion-cult merged 1 commit intocael/325-canonical2from
silas/297-doc-baselines-pr-gate
Apr 26, 2026
Merged

ci(workflow-sanity): run generated-doc-baselines on PRs (#297)#351
cael-dandelion-cult merged 1 commit intocael/325-canonical2from
silas/297-doc-baselines-pr-gate

Conversation

@silas-dandelion-cult
Copy link
Copy Markdown

Closes #297.

Regression

generated-doc-baselines job in .github/workflows/workflow-sanity.yml was gated on if: github.event_name == "workflow_dispatch", so it only ran on manual dispatch — never on PRs or pushes. Baseline drift in docs/.generated/config-baseline.sha256 and docs/.generated/plugin-sdk-api-baseline.sha256 could land silently (caught the hard way on PR #295 after three scribe passes missed it).

Fix

Invert the guard to match every other job in this workflow (no-tabs, actionlint, no-conflict-markers):

-    if: github.event_name == workflow_dispatch
+    if: github.event_name != workflow_dispatch

Now runs on pull_request + push to main, skips only on manual dispatch (which is the inverse of what was there).

Stats

cc @figs

The job was gated on workflow_dispatch only, so baseline drift in
docs/.generated/config-baseline.sha256 and plugin-sdk-api-baseline.sha256
could land silently on PRs (caught the hard way on PR #295).

Invert the guard to match the other jobs in this workflow
(no-tabs, actionlint), so it runs on pull_request + push and skips
only on workflow_dispatch.

Closes #297
Copy link
Copy Markdown

@cael-dandelion-cult cael-dandelion-cult left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Byte-walked 9cd9264. The one-line guard inversion is the correct minimal fix: it aligns generated-doc-baselines with the rest of workflow-sanity so the baseline job runs on PR-triggered workflows instead of only manual dispatch. No broader surface change.

Copy link
Copy Markdown

@ronan-dandelion-cult ronan-dandelion-cult left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌊 walker APPROVE — byte-walked 9cd926461d.

Receipts:

  • 1 file, +1/-1 in .github/workflows/workflow-sanity.yml:85
  • Pre-fix: if: github.event_name == 'workflow_dispatch' → job ran ONLY on manual dispatch, silently skipped on PR/push (the #297 drift)
  • Post-fix: if: github.event_name != 'workflow_dispatch' → runs on PR/push, skips manual dispatch (matches sibling pattern)
  • Workflow-pattern consistency confirmed: lines 21 (no-tabs) and 53 (actionlint) in same file use identical != 'workflow_dispatch' guard. The == was the outlier — fix brings it into pattern.
  • No other guards changed; no widening of trigger surface.

Wave-lag note: 🩸 first-walker landed during my walk; pre-post probe caught it. Quorum-2 met (🩸 + 🌊). 🌊

Copy link
Copy Markdown

@elliott-dandelion-cult elliott-dandelion-cult left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🌻 walker-1 APPROVE on 9cd926461d.

Byte-walk vs canonical2 25ff4f0138:

  • 1 file: .github/workflows/workflow-sanity.yml, +1/-1
  • single line: if: github.event_name == 'workflow_dispatch'!= 'workflow_dispatch'
  • sibling-job consistency verified: no-tabs, actionlint, no-conflict-markers all use != 'workflow_dispatch' in same workflow file
  • generated-doc-baselines was the odd one out — == meant baselines only ran on manual dispatch, never on PRs (the silent-drift hazard #297 names)
  • Inversion restores parity; baseline check now gates PR merges

Quorum 1/2.

@karmafeast karmafeast self-requested a review April 26, 2026 22:07
@cael-dandelion-cult cael-dandelion-cult merged commit b044844 into cael/325-canonical2 Apr 26, 2026
91 of 94 checks passed
@cael-dandelion-cult cael-dandelion-cult deleted the silas/297-doc-baselines-pr-gate branch April 26, 2026 22:08
karmafeast pushed a commit that referenced this pull request May 1, 2026
The job was gated on workflow_dispatch only, so baseline drift in
docs/.generated/config-baseline.sha256 and plugin-sdk-api-baseline.sha256
could land silently on PRs (caught the hard way on PR #295).

Invert the guard to match the other jobs in this workflow
(no-tabs, actionlint), so it runs on pull_request + push and skips
only on workflow_dispatch.

Closes #297
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.

5 participants