fix(ci): set AGENT_TOOLSDIRECTORY on python-lint job (self-hosted runner) - #193
Closed
HongmingWang-Rabbit wants to merge 1 commit into
Closed
fix(ci): set AGENT_TOOLSDIRECTORY on python-lint job (self-hosted runner)#193HongmingWang-Rabbit wants to merge 1 commit into
HongmingWang-Rabbit wants to merge 1 commit into
Conversation
…runner PR #186 put python-lint on the Mac mini self-hosted runner. setup-python@v5 hardcodes /Users/runner/hostedtoolcache which doesn't exist (runner user is hongming-claw), causing: ##[error]mkdir: /Users/runner: Permission denied The runner's ~/.env RUNNER_TOOL_CACHE override didn't propagate into the job env (unclear why — possibly service restart didn't re-read .env). Setting AGENT_TOOLSDIRECTORY + RUNNER_TOOL_CACHE at the job level via env: is the belt-and-suspenders fix that works regardless of runner config state. setup-python@v5 explicitly honours AGENT_TOOLSDIRECTORY per its README. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
|
Closing in favor of pushing the env fix directly onto #186's branch. #193 branched from main which doesn't have the self-hosted runs-on yet, so CI just sent the job back to ubuntu-latest and it got billing-capped in 2s. Folding the env block into #186 so one PR delivers runs-on + tool-cache fix together. |
5 tasks
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.
Python lint was the last failing job on #186's runner migration. Belt-and-suspenders fix via job-level env: block since the runner's .env override didn't propagate. Testing immediately.