Skip to content
This repository was archived by the owner on Nov 15, 2026. It is now read-only.

ci(dependabot): ignore the frostyard git crate frostyard-problems - #60

Merged
bketelsen merged 3 commits into
mainfrom
irulan/dependabot-internal-crates
Nov 6, 2026
Merged

bketelsen merged 3 commits into
mainfrom
irulan/dependabot-internal-crates

Conversation

@frostyard-machines

@frostyard-machines frostyard-machines commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Dependabot's cargo update job for /web/src-tauri, which #55 added (core baseline row B13), fails on every run. frostyard-problems is a git dependency on a tag of frostyard/std; the job fetches std's older tags, v0.3.0 holds no Cargo.toml, and the whole job stops with dependency_file_not_resolvable (runs of the merge commit 519e22c: "could not find Cargo.toml in … std … 5da37dd"). So no cargo update reaches the repository at all.

The crate is bumped by hand (with frostyard/std's tags), so the cargo entry now ignores it, as frostyard/frostmail's dependabot.yml does. The other cargo crates stay under Dependabot.

  • .github/dependabot.yml: an ignore entry for frostyard-problems in the cargo entry, and a header comment with the reason.
  • Guard: TestDependabotLeavesInternalGitCratesAlone reads the Cargo.lock beside each Cargo.toml and requires a full ignore entry (no versions or update-types) in the cargo entry of that directory for each package whose source is a git repository of the frostyard organization on GitHub. The lock file, not Cargo.toml, is read: cargo writes it in 1 fixed form and names each git package once by its package name, whatever TOML form, section or rename Cargo.toml uses. The owner comes from the parsed URL's host and first path segment, not a substring. A missing lock file or a record it cannot read fails the test. TestInternalGitCrates (10 cases, 4 refusals) and TestCargoIgnores check the reader and what counts as a full ignore. No TOML module joins go.mod.
  • AGENTS.md (Repository baseline, B13) states the rule; .memory/corrections.jsonl gets 3 lines (the failure and the review's 2 rounds of findings).

No product code changes: git diff origin/main --stat -- '*.go' go.mod go.sum lists only internal/workflowcheck/baseline_test.go.

Risk tier

Risk tier: 3, because internal/workflowcheck/** is in .github/risk-paths.json (governance: the tests that hold the workflows and the baseline files). The change adds tests and test helpers there, and changes no existing check: TestDependabotCoversManifests only moves its file reading into readDependabot. .github/dependabot.yml, AGENTS.md and .memory/corrections.jsonl are not on the list.

Verification

  • make check: exit 0 (golangci-lint 0 issues.)
  • go test -count=1 -v -run 'TestDependabot|TestInternalGitCrates|TestCargoIgnores' ./internal/workflowcheck/: pass; logs 3 manifests, 4 Dependabot entries and 1 frostyard git crates checked
  • Revert test of the fix: with the ignore entry removed from .github/dependabot.yml, TestDependabotLeavesInternalGitCratesAlone fails: web/src-tauri/Cargo.toml: the frostyard git crate frostyard-problems has no ignore entry in the cargo entry for /web/src-tauri
  • Revert tests of the review fixes (scratch worktrees, removed with git worktree remove): the regexp scanner of 0f12839 with the tests of 95b38d1 fails 7 positive cases and 3 refusals; the Cargo.toml reader of 95b38d1 with the tests of 1def37f fails the lock cases and the 4 refusals, and TestDependabotLeavesInternalGitCratesAlone fails with no frostyard git crate found
  • Core's check-corrections.mjs at origin/main passes (nsl)
  • CI green

Cross-review

  • Coder: Claude Opus (github-copilot/claude-opus-5.5). Reviewer: openai/gpt-6.1-sol. Base 519e22c.
  • Initial review of 0f12839: Not ready, 3 blocking points in the Cargo.toml scan (quoted keys, literal strings and comments missed; a renamed dependency named by its alias; inline tables read outside dependency sections). Fixed in 95b38d1 with a TOML-subset reader and its cases.
  • Re-review 1 of 95b38d1: Not ready, 3 blocking points (same-named dependencies of 2 sections merged; root dotted keys skipped; the owner matched as a URL substring). Fixed in 1def37f: the guard reads Cargo.lock and parses the source URL.
  • Re-review 2 of 1def37f: Ready, Blocking: none.

Dependabot's cargo update job for web/src-tauri fails on
frostyard-problems, a git dependency on a tag of frostyard/std: the job
fetches std's older tags, v0.3.0 holds no Cargo.toml, and the whole job
stops with dependency_file_not_resolvable. The crate is bumped by hand,
so the cargo entry ignores it, as frostmail's does.

TestDependabotLeavesInternalGitCratesAlone requires an ignore entry for
each frostyard git crate of each Cargo.toml.
@github-actions github-actions Bot added the risk:high Touches a path in .github/risk-paths.json (core ADR-0068) label Nov 6, 2026
The line scan missed quoted keys, literal strings, trailing comments and
dotted keys, named a renamed dependency by its alias instead of its
package, and read inline tables outside the dependency sections. A small
reader of the TOML forms Cargo.toml dependencies take replaces it: only
the dependency sections (with their target and workspace forms), the
package name of a renamed dependency, and an error for a multi-line
string or inline table, so no dependency is missed in silence.
A Cargo.toml reader must know every TOML form and section a dependency
can take, and it still merged same-named dependencies of 2 sections,
skipped root dotted keys, and took the owner from a URL substring.
Cargo.lock names each package once, by its package name, with its
source as a URL in 1 fixed form: the guard now reads it, and the URL's
host and first path segment decide the owner.
@frostyard-machines frostyard-machines added the ready-for-human Reviewed, CI green: ready for Brian to review and merge label Nov 6, 2026
@bketelsen
bketelsen merged commit 3e99fe3 into main Nov 6, 2026
11 checks passed
@bketelsen
bketelsen deleted the irulan/dependabot-internal-crates branch November 6, 2026 14:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ready-for-human Reviewed, CI green: ready for Brian to review and merge risk:high Touches a path in .github/risk-paths.json (core ADR-0068)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants