[ca] Document hourly-ci-cleaner tool access issue#7297
Merged
Conversation
The hourly-ci-cleaner workflow cannot execute CI cleanup commands because development tools (Go, make, Node.js) are not available in the agent execution environment. Agentic workflows run in separate containers where tools installed in the activation job are not available to the agent job. This documents the issue and proposes solutions including converting to a regular GitHub Actions workflow. Ref: Workflow run #281
Contributor
|
@copilot copy the steps from the activation job into the agent job so that the build tools are also available |
Contributor
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.
Problem
The hourly-ci-cleaner workflow (run #281 and all subsequent runs) fails to execute CI cleanup tasks because development tools are not available in the agent execution environment.
Root Cause
Agentic workflows with
engine: copilotrun in two separate jobs:Tools installed in the activation job are not available in the agent job container. The agent only has access to tools specified in the
tools:configuration (currentlybashandedit).Evidence
When the agent tries to run CI cleanup commands:
Environment check confirms:
awfuser(uid=1001) without sudo accessImpact
This PR
Adds documentation to
docs/issues/hourly-ci-cleaner-tool-access.mdexplaining:Proposed Solutions
Option 1: Regular GitHub Actions (Recommended)
Convert to standard GitHub Actions workflow since CI cleanup is deterministic and doesn't require AI decision-making.
Option 2: Fix Tool Access
Investigate how to persist tools from activation job to agent job, or configure agent container with development tools.
Option 3: Hybrid Approach
Use GitHub Actions for tool-dependent commands, agentic workflow only for PR creation.
Next Steps
Related
.github/workflows/hourly-ci-cleaner.md