Skip to content

Commit b8d305b

Browse files
Mossakaclaude
andcommitted
fix: restore HTTPS_PROXY, fix chroot hosts/permissions, fix Bun crash
Four fixes for CI failures introduced by recent agent-authored PRs: 1. Restore HTTPS_PROXY in agent container (fixes #529) - HTTPS requires CONNECT method through Squid port 3128 - Only HTTP_PROXY should be removed (intercept mode handles HTTP) 2. Copy container /etc/hosts to chroot (fixes Smoke Copilot) - Docker extra_hosts (host.docker.internal) only in container /etc/hosts - Chroot sees host's /etc/hosts which lacks this entry - Backup/copy/restore pattern like resolv.conf 3. Add .copilot directory permissions step (fixes Smoke Chroot) - sudo install creates root-owned ~/.copilot - Pre-create with runner:runner ownership in smoke-chroot.md 4. Use setup-bun action for Build Test Bun (fixes core dump) - Bun crashes when installed inside chroot (restricted /proc) - Install on host via oven-sh/setup-bun@v2, available in chroot via PATH All smoke/build-test .md files include actions/checkout step for full repo checkout (needed by postprocess local build). Fixes #529 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 46859bd commit b8d305b

24 files changed

+417
-135
lines changed

.github/workflows/agentics-maintenance.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# \ /\ / (_) | | | | ( | | | | (_) \ V V /\__ \
1414
# \/ \/ \___/|_| |_|\_\|_| |_|\___/ \_/\_/ |___/
1515
#
16-
# This file was automatically generated by pkg/workflow/maintenance_workflow.go (v0.42.0). DO NOT EDIT.
16+
# This file was automatically generated by pkg/workflow/maintenance_workflow.go. DO NOT EDIT.
1717
#
1818
# To regenerate this workflow, run:
1919
# gh aw compile
@@ -33,7 +33,7 @@ name: Agentic Maintenance
3333

3434
on:
3535
schedule:
36-
- cron: "37 0 * * *" # Daily (based on minimum expires: 30 days)
36+
- cron: "37 0 * * *" # Daily (based on minimum expires: 7 days)
3737
workflow_dispatch:
3838

3939
permissions: {}
@@ -47,7 +47,7 @@ jobs:
4747
pull-requests: write
4848
steps:
4949
- name: Setup Scripts
50-
uses: github/gh-aw/actions/setup@v0.42.0
50+
uses: github/gh-aw/actions/setup@v0.42.2-28-gfba53102d
5151
with:
5252
destination: /opt/gh-aw/actions
5353

.github/workflows/build-test-bun.lock.yml

Lines changed: 35 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/build-test-bun.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ permissions:
1111
issues: read
1212
name: Build Test Bun
1313
engine: copilot
14+
runtimes:
15+
bun:
16+
version: "latest"
1417
network:
1518
allowed:
1619
- defaults
1720
- github
1821
- node
19-
- "bun.sh"
2022
tools:
2123
bash:
2224
- "*"
@@ -35,6 +37,11 @@ timeout-minutes: 15
3537
strict: true
3638
env:
3739
GH_TOKEN: "${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}"
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
43+
with:
44+
persist-credentials: false
3845
---
3946

4047
# Build Test: Bun
@@ -43,12 +50,7 @@ env:
4350

4451
## Test Requirements
4552

46-
1. **Install Bun**:
47-
```bash
48-
curl -fsSL https://bun.sh/install | bash
49-
export BUN_INSTALL="$HOME/.bun"
50-
export PATH="$BUN_INSTALL/bin:$PATH"
51-
```
53+
1. **Verify Bun**: Bun is pre-installed. Run `bun --version` to confirm it's available on PATH.
5254

5355
2. **Clone Repository**: `gh repo clone Mossaka/gh-aw-firewall-test-bun /tmp/test-bun`
5456
- **CRITICAL**: If clone fails, immediately call `safeoutputs-missing_tool` with message "CLONE_FAILED: Unable to clone test repository" and stop execution
@@ -81,7 +83,7 @@ If ANY test fails, report the failure with error details.
8183
**CRITICAL**: This workflow MUST fail visibly when errors occur:
8284

8385
1. **Clone failure**: If repository clone fails, call `safeoutputs-missing_tool` with "CLONE_FAILED: [error message]"
84-
2. **Bun install failure**: Call `safeoutputs-missing_tool` with "BUN_INSTALL_FAILED: [error message]"
86+
2. **Bun not available**: If `bun --version` fails, call `safeoutputs-missing_tool` with "BUN_NOT_FOUND: bun not available on PATH"
8587
3. **Test failure**: Report in comment table with FAIL status and include failure details
8688

8789
DO NOT report success if any step fails. The workflow should produce a clear, actionable error message.

.github/workflows/build-test-cpp.lock.yml

Lines changed: 30 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/build-test-cpp.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ timeout-minutes: 30
3333
strict: true
3434
env:
3535
GH_TOKEN: "${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}"
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
39+
with:
40+
persist-credentials: false
3641
---
3742

3843
# Build Test: C++

.github/workflows/build-test-deno.lock.yml

Lines changed: 30 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/build-test-deno.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ timeout-minutes: 15
3737
strict: true
3838
env:
3939
GH_TOKEN: "${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}"
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
43+
with:
44+
persist-credentials: false
4045
---
4146

4247
# Build Test: Deno

.github/workflows/build-test-go.lock.yml

Lines changed: 30 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/build-test-go.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ timeout-minutes: 15
3737
strict: true
3838
env:
3939
GH_TOKEN: "${{ secrets.GH_AW_GITHUB_MCP_SERVER_TOKEN }}"
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
43+
with:
44+
persist-credentials: false
4045
---
4146

4247
# Build Test: Go

0 commit comments

Comments
 (0)