Repository navigation
Darkbloom watchdog: copy darkbloom-sandbox's template at d6d257c2 (reads any listing size, rescues partial strands) [dev] - #1861
Merged
Conversation
…ads any listing size, rescues partial strands) The copy of darkbloom-sandbox's watchdog template at 31236c54 passed the day's run and job listings to jq as --argjson arguments. On a busy day they are larger than the 128 KiB Linux allows for one argument, and the watchdog exited 126 with "/usr/bin/jq: Argument list too long" before it checked a run (runs 42259175576 and 42261403378, 2026-11-06). darkbloom-sandbox d6d257c2 (#357, #359) passes listings through files and stdin, times a stranded job from its own creation and rescues a run with only some jobs stranded. The file is copied byte for byte. The route self-test names the new source commit and asserts that no listing goes to jq as an argument. build.md describes the new stranding rule and its limit-wait caveat. The repository variables are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The paragraph said other Darkbloom jobs that ran, or still run, do not hold the rescue back. A job that got its runner within the wait does hold it back, also when it still runs; only a job that got its runner before the wait does not. The paragraph now says this, in shorter sentences. The rule, the partial-strand rescue and the payer-limit caveat are those of the template at d6d257c2, which stays unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch had an error being deployed
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.
Into
dev: keepsdevthe same asmaster. The master PR carries the same change; the scheduled watchdog runs frommasteronly.Summary
.github/workflows/darkbloom-watchdog.ymlis now darkbloom-sandbox's watchdog template atd6d257c2(public/darkbloom-actions/.github/workflows/watchdog.yml, darkbloom-sandbox #357/#359), copied byte for byte. The old copy (template at31236c54) failed whenever this repository was busy.Cause. The old template put the day's run and job listings on jq's command line (
jq --argjson all "$all",--argjson more "$more"). Linux allows at most 128 KiB for one argument. A busy day of d-inference runs is larger, so the watchdog exited 126 with/usr/bin/jq: Argument list too longbefore it checked any run.Evidence. Watchdog runs 42259175576 and 42261403378 on 2026-11-06 both failed with that error.
What the new template changes (darkbloom-sandbox
d6d257c2):jq -cs 'add // []'. The rest goes through stdin. The only remaining--argjsonvalues are scalars (attempt numbers, epoch seconds and a boolean).created_at. It is no longer timed from the later of its creation and the attempt's last finished job.DARKBLOOM_WATCHDOG_MINUTESabove such waits.Repository variables: no new ones. It reads the same four variables as before:
DARKBLOOM_WATCHDOG,DARKBLOOM_WATCHDOG_MINUTES,DARKBLOOM_ROUTE_JOBandDARKBLOOM_APP_SLUG.Self-test (
scripts/test-darkbloom-route.py). TheWATCHDOGcomment now namesd6d257c2.test_watchdog_rescues_only_this_repositorys_routed_runsstill proves every property it proved before: schedule and dispatch only,permissions: {}at the top,actions/checks: writeon this repository only, nouses:/secrets/checkout, the Darkbloom-label selector, unrouted workflows carry no Darkbloom label, and theSelect Runnerssuffix match. Each of those strings is still in the new template. The test never pinned the old stranding rule, so that change needs no test change. It now also asserts that no listing ($all,$more,$runs,$jobs,$cancelled) is passed to jq as--arg/--argjson. This pattern matches 3 lines in the old template and 0 in the new one.Docs.
docs/developer/build.mdgives the new source commit and describes the new stranding rule and the limit-wait caveat. The docs-impact rules do not map this workflow; the doc is updated because it names the commit and the rule.Diagrams
Before:
flowchart LR L[list runs and jobs, page by page] --> A["jq --argjson all \"$all\" (grows each page)"] A -->|listing over 128 KiB| E[exit 126: Argument list too long] A -->|small listing| S{"stranded? no Darkbloom job of the run started or finished in the wait"}After:
flowchart LR L[list runs and jobs, page by page] --> F["pages appended to files; jq -cs 'add // []'"] F --> S{"stranded? a queued Darkbloom job waited since its own creation, and no Darkbloom job of the run got a runner in the wait"} S -->|yes| R[mark, cancel, re-run route and dependents once]Test plan
cmpof the copy withgit show d6d257c2:public/darkbloom-actions/.github/workflows/watchdog.ymlin darkbloom-sandbox: identical.grep -E, matches the old template 3 times and the new one 0 times.python3 scripts/test-darkbloom-route.py(release-integrity) and the docs checks. Nothing was run on the laptop.Components touched
Protocol / interface changes
Documentation impact
docs/developer/build.md)Refactor pass
Not run in this PR. The coordinating session owns the Required Refactor Pass.
🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.