Skip to content

Mount build tools into agent container for hourly-ci-cleaner - #7299

Merged
pelikhan merged 3 commits into
ci-cleaner-workflow-fix-20251222-170956-8501429fb2999733from
copilot/sub-pr-7297
Dec 22, 2025
Merged

Mount build tools into agent container for hourly-ci-cleaner#7299
pelikhan merged 3 commits into
ci-cleaner-workflow-fix-20251222-170956-8501429fb2999733from
copilot/sub-pr-7297

Conversation

CopilotAI commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

The hourly-ci-cleaner agent runs inside an AWF container and cannot access build tools (make, go, node, npm) installed on the GitHub Actions runner host, causing "command not found" errors when attempting CI fixes.

Changes

Added sandbox.agent.mounts configuration to mount required build tools from host into container:

sandbox:
agent:
mounts:
- "/usr/bin/make:/usr/bin/make:ro"
- "/usr/bin/go:/usr/bin/go:ro"
- "/usr/local/bin/node:/usr/local/bin/node:ro"
- "/usr/local/bin/npm:/usr/local/bin/npm:ro"
- "/usr/local/lib/node_modules:/usr/local/lib/node_modules:ro"
- "/opt/hostedtoolcache/go:/opt/hostedtoolcache/go:ro"

The setup steps in the workflow remain unchanged - they ensure tools are available on the host. The mounts make them accessible inside the agent's execution environment where make fmt, make lint, make test-unit, and make recompile commands are invoked.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

CopilotAIand others added 2 commits December 22, 2025 17:33
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
CopilotAI changed the title [WIP] Fix access issue for hourly-ci-cleaner toolMount build tools into agent container for hourly-ci-cleanerDec 22, 2025
CopilotAI requested a review from pelikhanDecember 22, 2025 17:40
@pelikhan

Copy link
Copy Markdown
Collaborator

@copilot disable firewall for hourly ci cleaner workflow

@pelikhan
pelikhan marked this pull request as ready for review December 22, 2025 17:41
@pelikhan
pelikhan merged commit 22181c9 into ci-cleaner-workflow-fix-20251222-170956-8501429fb2999733Dec 22, 2025
1 check failed
@pelikhan
pelikhan deleted the copilot/sub-pr-7297 branch December 22, 2025 17:41
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@pelikhan