From 963344b952959030dde21740ee38663dc805b9c6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 18:52:14 +0000 Subject: [PATCH 1/2] Initial plan From 7879a97797a57d199da6f8699b4f7c31b49e3b95 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 9 Mar 2026 19:00:36 +0000 Subject: [PATCH 2/2] fix: add Docker container cleanup step before AWF threat detection execution 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> --- .github/workflows/news-article-generator.lock.yml | 8 ++++++++ .github/workflows/news-committee-reports.lock.yml | 8 ++++++++ .github/workflows/news-evening-analysis.lock.yml | 8 ++++++++ .github/workflows/news-month-ahead.lock.yml | 8 ++++++++ .github/workflows/news-monthly-review.lock.yml | 8 ++++++++ .github/workflows/news-motions.lock.yml | 8 ++++++++ .github/workflows/news-propositions.lock.yml | 8 ++++++++ .github/workflows/news-realtime-monitor.lock.yml | 8 ++++++++ .github/workflows/news-week-ahead.lock.yml | 8 ++++++++ .github/workflows/news-weekly-review.lock.yml | 8 ++++++++ 10 files changed, 80 insertions(+) diff --git a/.github/workflows/news-article-generator.lock.yml b/.github/workflows/news-article-generator.lock.yml index 1793c50ef..798fc6cbb 100644 --- a/.github/workflows/news-article-generator.lock.yml +++ b/.github/workflows/news-article-generator.lock.yml @@ -1046,6 +1046,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-committee-reports.lock.yml b/.github/workflows/news-committee-reports.lock.yml index 3dabc5fb0..a0fcc5573 100644 --- a/.github/workflows/news-committee-reports.lock.yml +++ b/.github/workflows/news-committee-reports.lock.yml @@ -1005,6 +1005,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-evening-analysis.lock.yml b/.github/workflows/news-evening-analysis.lock.yml index b0bfce663..f759dc4d6 100644 --- a/.github/workflows/news-evening-analysis.lock.yml +++ b/.github/workflows/news-evening-analysis.lock.yml @@ -1030,6 +1030,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-month-ahead.lock.yml b/.github/workflows/news-month-ahead.lock.yml index c951fd842..f4de464fa 100644 --- a/.github/workflows/news-month-ahead.lock.yml +++ b/.github/workflows/news-month-ahead.lock.yml @@ -1005,6 +1005,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-monthly-review.lock.yml b/.github/workflows/news-monthly-review.lock.yml index 66eb0896a..856c899a1 100644 --- a/.github/workflows/news-monthly-review.lock.yml +++ b/.github/workflows/news-monthly-review.lock.yml @@ -1005,6 +1005,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-motions.lock.yml b/.github/workflows/news-motions.lock.yml index 874ae782d..594047a34 100644 --- a/.github/workflows/news-motions.lock.yml +++ b/.github/workflows/news-motions.lock.yml @@ -1005,6 +1005,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-propositions.lock.yml b/.github/workflows/news-propositions.lock.yml index 1102d66e2..e938cde6d 100644 --- a/.github/workflows/news-propositions.lock.yml +++ b/.github/workflows/news-propositions.lock.yml @@ -1005,6 +1005,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-realtime-monitor.lock.yml b/.github/workflows/news-realtime-monitor.lock.yml index 4b68d7f06..8e6cb3f94 100644 --- a/.github/workflows/news-realtime-monitor.lock.yml +++ b/.github/workflows/news-realtime-monitor.lock.yml @@ -1023,6 +1023,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-week-ahead.lock.yml b/.github/workflows/news-week-ahead.lock.yml index 3d267e22a..913ba65ea 100644 --- a/.github/workflows/news-week-ahead.lock.yml +++ b/.github/workflows/news-week-ahead.lock.yml @@ -1005,6 +1005,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution diff --git a/.github/workflows/news-weekly-review.lock.yml b/.github/workflows/news-weekly-review.lock.yml index 0ad336e39..28c585447 100644 --- a/.github/workflows/news-weekly-review.lock.yml +++ b/.github/workflows/news-weekly-review.lock.yml @@ -1005,6 +1005,14 @@ jobs: run: | mkdir -p /tmp/gh-aw/threat-detection touch /tmp/gh-aw/threat-detection/detection.log + - name: Clean up AWF containers from previous execution + if: always() && steps.detection_guard.outputs.run_detection == 'true' + continue-on-error: true + run: | + echo "Cleaning up leftover AWF Docker containers..." + docker rm -f awf-api-proxy awf-squid awf-agent 2>/dev/null || true + docker network rm awf-network 2>/dev/null || true + echo "AWF container cleanup complete" - name: Execute GitHub Copilot CLI if: always() && steps.detection_guard.outputs.run_detection == 'true' id: detection_agentic_execution