fix: add AWF container cleanup before threat detection step in news workflows#960
Closed
fix: add AWF container cleanup before threat detection step in news workflows#960
Conversation
…ecution The news workflow failures were caused by AWF Docker container naming conflicts between the main agent execution and the subsequent threat detection execution. The containers (awf-api-proxy, awf-squid) from the first AWF invocation were not being cleaned up before the second invocation, causing "container name already in use" errors. This adds a cleanup step to all 10 news workflow lock files that removes leftover AWF containers before the threat detection step runs. Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Debug workflow failure for opposition motions
fix: add AWF container cleanup before threat detection step in news workflows
Mar 9, 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.
News workflow lock files run two AWF (Agent Workflow Firewall) invocations in the same job: the main agent execution and a subsequent threat detection pass. The second invocation fails because Docker containers (
awf-api-proxy,awf-squid) from the first invocation are not cleaned up, causing a naming conflict.Note: the agent's actual work completed successfully — PR #935 was created with all 14 language articles. Only the threat detection infrastructure step failed.
Changes
Clean up AWF containers from previous executionstep before the threat detection AWF invocation in all 10 news workflow lock filesdocker rm -fon known AWF containers anddocker network rmon the AWF networkcontinue-on-error: trueto be no-op when containers don't existAffected files
All 10
news-*.lock.ymlworkflows — identical patch to each.Note
These lock files are auto-generated by
gh aw compile. This is a targeted manual patch since the AWF compiler (v0.56.1) does not emit cleanup between its two invocations. A future recompile will overwrite these changes; ideally the fix lands upstream in gh-aw.Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.