Skip to content

Fix background failure reporting and D2 formatting - #38

Merged
alixander merged 1 commit into
masterfrom
agent/job-failure-recovery
Sep 7, 2026
Merged

Fix background failure reporting and D2 formatting#38
alixander merged 1 commit into
masterfrom
agent/job-failure-recovery

Conversation

@alixander

@alixander alixander commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Human


AI

CI could report success after a background job had already failed, and changed .d2 files were never passed to the formatter. Record each background process ID at launch with runjob_bg, wait for every recorded status, and remove the misplaced formatter argument. Migrate this repository's parallel callers and preserve existing job filters.

Remove implicit nofixups checks from cleanup and notifications so each consuming repository can choose its commit-message policy. The standalone check remains available. D2's companion PR d2lang/d2#2877 removes its explicit job and adopts this helper commit.

Consumers must replace runjob ... & with runjob_bg ... before updating; visible unregistered background jobs now fail with a migration message.

Validation: full helper test suite under sh and dash; focused completed-job, nested-job, cancellation, formatter invocation/failure, and cleanup/notification regressions; full helper CI; regenerated bundle consistency and shell syntax checks.

@alixander
alixander merged commit 1135751 into master Sep 7, 2026
6 checks passed
@alixander
alixander deleted the agent/job-failure-recovery branch September 7, 2026 15:55
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.

1 participant