Repository navigation
fix(ci): quote schedule.time — the whole dependabot config was being discarded - #289
Merged
Merged
Conversation
…discarded `time: 09:00` unquoted is not a string in YAML 1.1: Dependabot's parser reads it as a sexagesimal integer, its schema requires a string, and it rejects the ENTIRE FILE — one error per ecosystem entry, six of them. An invalid config is not partially applied, it is ignored. So every `labels:`, `groups:`, `reviewers:` and `ignore:` block in this file was dead and Dependabot ran on its defaults. Present since 2025-10-15 (d4ff903), where the key was introduced unquoted and never quoted after. This also explains a fix that appeared to land and didn't. `automerge` was missing from the repository, Dependabot drops unknown labels silently, and every approve and merge step in dependabot-automerge.yml is gated on that label — 46 PRs opened, 0 merged. That was diagnosed and fixed: the label is in .github/labels.yml and on the repository, guarded by TestDependabotLabelsAreDefined. And it still did not work, because `labels:` sat inside a file being thrown away. Confirmed on the open PRs — #210, #249, #254 and #258 all carry `dependencies` plus an ecosystem label and no `automerge`. Two independent causes for one symptom; fixing the visible one left the other invisible. It hid for nine months because it surfaces as a failing `.github/dependabot.yml` check on every PR, which reads like a failed job rather than an invalid config — and the file has a `version: 2` key and six well-formed-looking entries, so nothing about reading it suggests it is being discarded. TestDependabotScheduleTimesAreQuoted checks the file TEXT, not the decoded value, and that is deliberate. Asserting the decoded Go type is the obvious design and it cannot work: gopkg.in/yaml.v2 and gopkg.in/yaml.v3 both decode 09:00, 9:00, 10:30 and 05:00 as Go `string`, because Go's YAML 1.2 core schema has no sexagesimal integer type while Dependabot's YAML 1.1 parser does. A decode-based assertion therefore passes on exactly the input that breaks the file — the first version of this test did, which is how the text approach was arrived at. The narrower claim that buys: it cannot tell `"9am"` from `"09:00"`, since both are quoted strings and only Dependabot's own schema knows the difference. The failing check on the PR stays the authority on validity; this stops the known regression. Mutation-verified three ways: unquoting fails it, single-quoting passes, renaming the key trips the scan-found-nothing guard. Refs #288
scttfrdmn
enabled auto-merge (squash)
August 3, 2026 19:30
This was referenced Aug 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #288.
The defect
.github/dependabot.ymlhadtime: 09:00unquoted in all six ecosystem entries. Dependabot's YAML 1.1 parser reads that as a sexagesimal integer; its schema requires a string; it rejects the entire file, once per entry:An invalid config is not partially applied — it is ignored. Every
labels:,groups:,reviewers:andignore:block in the file was dead, and Dependabot ran on its defaults. Present since 2025-10-15 (d4ff903), where the key was introduced unquoted and never quoted after.You can see it failing right now on #210 as the
.github/dependabot.ymlcheck.Why this is more than a quoting nit
It masked a fix that appeared to land and didn't. The
automergelabel was missing from the repository; Dependabot drops unknown labels silently; every approve and merge step independabot-automerge.ymlis gated oncontains(labels.*.name, 'automerge'). 46 PRs opened, 0 merged. That was diagnosed and fixed — the label is in.github/labels.ymland on the repository, guarded byTestDependabotLabelsAreDefined.And it still did not work, because
labels:sat inside a file being discarded wholesale. Confirmed on the currently-open PRs:dependencies,javadependencies,godependencies,github-actionsdependencies,github-actionsNo
automergeon any of them. Two independent causes for one symptom; fixing the visible one left the other invisible.It hid for nine months because it surfaces as a failing check rather than a validation message — that reads like "a dependabot job failed," and the file has a
version: 2key and six well-formed-looking entries, so nothing about reading it suggests it is being thrown away.The test checks the file text, and that is deliberate
TestDependabotScheduleTimesAreQuoted(ininternal/config/labels_test.go, next to the existing label gate) matches the raw text rather than asserting the decoded Go type.Asserting the decoded type is the obvious design and it cannot work. Probed rather than assumed:
gopkg.in/yaml.v2andgopkg.in/yaml.v3both decode09:00,9:00,10:30and05:00as Gostring, because Go's YAML 1.2 core schema has no sexagesimal integer type while Dependabot's YAML 1.1 parser does. So a decode-based assertion passes on exactly the input that breaks the file — the first version of this test did, and mutation-checking it is what caught that.The narrower claim that buys: it cannot tell
"9am"from"09:00", since both are quoted strings and only Dependabot's schema knows the difference. The failing check on the PR remains the authority on validity; this test exists to stop the known regression.Mutation-verified three ways:
time(the original bug)time: 09:00, which is not a quoted scalar"tyme:The config's header comment went from "Two things to know before editing" to three, with this as item 1.
Gates
go build ./...·go vet ./...·gofmt -l .clean ·go test -count=1 -race ./internal/config/ok ·golangci-lint --new-from-merge-base=origin/main0 issues.After this lands
Dependabot re-evaluates the config on its next run, so the open PRs will not retroactively gain
automerge— worth confirming on the next batch that the label arrives, since this has now appeared fixed twice without being fixed.Then #210 becomes mergeable, clearing all six jackson-databind alerts (2 high). The three vite alerts are not covered: a security update needs a committed lockfile and
docs-platform/has none (#214). That ceiling is documented in the config itself.