Skip to content

fix(ci): set AGENT_TOOLSDIRECTORY on python-lint job (self-hosted runner) - #193

Closed
HongmingWang-Rabbit wants to merge 1 commit into
mainfrom
fix/runner-python-tool-cache
Closed

fix(ci): set AGENT_TOOLSDIRECTORY on python-lint job (self-hosted runner)#193
HongmingWang-Rabbit wants to merge 1 commit into
mainfrom
fix/runner-python-tool-cache

Conversation

@HongmingWang-Rabbit

Copy link
Copy Markdown
Contributor

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.

…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>
@HongmingWang-Rabbit

Copy link
Copy Markdown
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant