fix(ci): quote store:: test filter so db-checks.yml parses on GitHub - #107
Conversation
The unquoted trailing '::' in 'cargo test --lib store::' is invalid plain-scalar YAML in block context, so GitHub rejected the entire workflow at parse time: startup_failure, zero jobs, no check run. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
CI failed: CI failures occurred due to A2ML manifest validation errors and a missing local workspace dependency (`gitbot-shared-context`) required by Cargo.OverviewTwo distinct failure patterns were found across 3 analyzed CI logs: an A2ML manifest validation failure and a missing local cargo dependency during the Rust build/check step. FailuresA2ML Manifest Validation Failure (confidence: high)
Missing Local Cargo Dependency (confidence: high)
Summary
Code Review ✅ ApprovedQuotes the store:: test filter in db-checks.yml to resolve a YAML block context parsing error that prevented the workflow from running on GitHub. No issues found.
Tip Comment OptionsAuto-apply is off → Gitar will not commit updates to this branch. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Gitar |
|
|
…ny job Quoting the store:: filter was necessary but not sufficient: the run from that fix still completed with zero jobs and GitHub still displayed the workflow by path rather than by its name, the tell that it never became a real workflow run. The cause is 'if: hashFiles(...)' at job level. hashFiles() resolves against the runner workspace, which does not exist when a job-level if is evaluated, so the expression errors while the run graph is being built — the run ends as failure with no jobs and no usable logs. Both guards were pointless as well as fatal: Cargo.toml and Cargo.lock are committed and always present in this repo. cargo-audit.yml carries the identical pattern and the identical symptom, so it is fixed here too. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The quoting fix was necessary but not sufficient — pushed a second commitAfter the first commit, the run from So there was a second, independent defect: jobs:
migrations:
if: hashFiles('Cargo.toml') != '' # ← fails the run before any job exists
Both guards were also pointless: Same pattern, same symptom, one more fileCorrelating job-level
Net effect once this lands: the migration/schema-drift gate and the dependency audit both start actually gating, for the first time. |
Result: the gate is real now — and it immediately told us something trueWith both fixes in, Compare with the previous run: It fails at the build for the reason this repo already documents:
I have not touched it, per that instruction. So this PR does what it claims: it converts a workflow that could never run into one that runs honestly. It cannot go green until the path dependency is resolved (vendor it, publish it, or make CI check out the monorepo) — but that is now visible as a real red gate instead of an invisible absence, which is the point. Worth noting for whoever picks up #18: fixing that one dependency should turn |
db-checks.ymlhas never run. The stepends in
::, which is not a valid unquoted plain scalar in YAML block context, so GitHub rejects the entire workflow file at parse time:startup_failure, zero jobs, and — the part that hides it — no check run at all.gh pr checksshows nothing missing, because a workflow that never parsed never reports.Quoting the value fixes it. Verified with a strict YAML parse before and after; this was the only file of the 29 in the repo that failed to parse (all 33 in
echidnaare clean).Once merged,
gh run list --workflow=db-checks.ymlshould show a real run for the first time — which also means the migration/schema-drift gate it contains starts actually gating.