fix: allow overriding RUNNER_TOOL_CACHE from the config file #178

Merged
earl-warren merged 1 commit from earl-warren/act:wip-toolcache into main 2025-07-13 21:55:02 +00:00
Contributor
  • rc.getToolCache(ctx) is used to figure out RUNNER_TOOL_CACHE and returns RUNNER_TOOL_CACHE if it is found in the runner config, e.g.
    container:
      env:
        RUNNER_TOOL_CACHE: /srv/toolcache
    
  • store the value in the new toolCache data member for containers, in the same way it is done for host
  • GetRunnerContext for containers return toolCache instead of a hard coded string
  • add integration test

Closes forgejo/runner#184

- rc.getToolCache(ctx) is used to figure out RUNNER_TOOL_CACHE and returns RUNNER_TOOL_CACHE if it is found in the runner config, e.g. ```yaml container: env: RUNNER_TOOL_CACHE: /srv/toolcache ``` - store the value in the new `toolCache` data member for containers, in the same way it is done for host - GetRunnerContext for containers return `toolCache` instead of a hard coded string - add integration test Closes forgejo/runner#184
earl-warren changed title from WIP: fix: allow overriding RUNNER_TOOL_CACHE from the config file [skip cascade] to WIP: fix: allow overriding RUNNER_TOOL_CACHE from the config file 2025-07-13 14:42:02 +00:00
earl-warren force-pushed wip-toolcache from c7ccc99e6a
All checks were successful
/ cascade (pull_request_target) Has been skipped
checks / unit (pull_request) Successful in 1m53s
checks / integration (pull_request) Successful in 1m22s
to 82906b6dbb
All checks were successful
checks / unit (pull_request) Successful in 1m10s
checks / integration (pull_request) Successful in 1m3s
/ cascade (pull_request_target) Successful in 35m12s
2025-07-13 14:42:09 +00:00
Compare
Contributor

cascading-pr updated at forgejo/runner#694

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/694
earl-warren changed title from WIP: fix: allow overriding RUNNER_TOOL_CACHE from the config file to WIP: fix: allow overriding RUNNER_TOOL_CACHE from the config file [skip cascade] 2025-07-13 15:05:48 +00:00
earl-warren force-pushed wip-toolcache from 82906b6dbb
All checks were successful
checks / unit (pull_request) Successful in 1m10s
checks / integration (pull_request) Successful in 1m3s
/ cascade (pull_request_target) Successful in 35m12s
to f8c87e1617
All checks were successful
/ cascade (pull_request_target) Has been skipped
checks / unit (pull_request) Successful in 1m13s
checks / integration (pull_request) Successful in 1m12s
2025-07-13 15:05:56 +00:00
Compare
earl-warren changed title from WIP: fix: allow overriding RUNNER_TOOL_CACHE from the config file [skip cascade] to fix: allow overriding RUNNER_TOOL_CACHE from the config file [skip cascade] 2025-07-13 15:06:20 +00:00
earl-warren changed title from fix: allow overriding RUNNER_TOOL_CACHE from the config file [skip cascade] to fix: allow overriding RUNNER_TOOL_CACHE from the config file 2025-07-13 15:12:36 +00:00
viceice approved these changes 2025-07-13 15:43:27 +00:00
Dismissed
earl-warren force-pushed wip-toolcache from f8c87e1617
All checks were successful
/ cascade (pull_request_target) Has been skipped
checks / unit (pull_request) Successful in 1m13s
checks / integration (pull_request) Successful in 1m12s
to f49b40b0ac
Some checks failed
checks / unit (pull_request) Successful in 1m21s
checks / integration (pull_request) Successful in 1m15s
/ cascade (pull_request_target) Failing after 36s
2025-07-13 16:03:51 +00:00
Compare
earl-warren dismissed viceice's review 2025-07-13 16:03:52 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

Author
Contributor

Just rebased, no change. An extra run of test won't hurt before merging 😇

Just rebased, no change. An extra run of test won't hurt before merging 😇
Contributor

cascading-pr updated at forgejo/runner#694

cascading-pr updated at https://code.forgejo.org/forgejo/runner/pulls/694
earl-warren scheduled this pull request to auto merge when all checks succeed 2025-07-13 16:05:01 +00:00
earl-warren deleted branch wip-toolcache 2025-07-13 21:55:03 +00:00
viceice approved these changes 2025-07-14 04:56:32 +00:00
Commenting is not possible because the repository is archived.
No reviewers
No milestone
No project
No assignees
3 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo/act!178
No description provided.