-
Notifications
You must be signed in to change notification settings - Fork 987
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RUNNER_TEMP not mounted in docker based actions #1984
Comments
Hi @jnystad, Thank you for submitting this issue! The feature flag for translating paths is currently off. There was an issue with translating paths for some actions, so we turned off the feature flag until we figure out the best way to translate those inputs. After we finalize the fix, I think that this issue will be resolved |
Perhaps, but I fail to see the _temp root directory mapped or mounted anywhere. Also, docker actions mount ${RUNNER_TEMP}/_github_home as /github/home, while $HOME in other actions are /home/runner. This is also not mapped, as far as I can tell. Is this intentional? I'm sure what Azure does may not be recommended, but if it's expected to work across docker and non-docker actions, it should probably be consistent. |
I also have the problem that a javascript action I'm using writes into /home/runnner/.config but my own docker based action doesn't mount that at all. Even if it was mounted somewhere else and the location was exported as a different env-var that would help. |
I would like to transfer a test result file from one workflow step to another. I found The test result publisher is a docker-based action. I combined this with the above example:
But it results in When I replace ${{ runner.temp }} with ${{ github.workspace }} in both test runner and publisher, it works. @nikola-jokic: what is the status of the translating paths issue? Do you have a link to the issue so I can watch it? |
Hey @gerwinjansen, If the The PR for translation is: #2517, but it is merged and part of the latest release |
Hi @nikola-jokic, Here is the reproduce: https://github.com/gerwinjansen/runner-temp-not-mounted-on-docker-based-action
And the relevant console output
Looks like the volume mount for runner.temp is missing. |
As a workaround for this, I copy the files that I need to |
@nikola-jokic : did the reproduction above help you analyze the issue? |
As a workaround for now, use:
Thanks @nwalfield |
@nikola-jokic : did the reproduction above help you analyze the issue? |
Small correction. I also had to make the |
It seems to just be a problem with Simple action:
Command that runs:
Temp folder isn't mounted. |
Should we still use the workaround? |
Env var RUNNER_TEMP points to /home/runner/work/_temp but this directory is not mounted on docker based actions. Contents from previous job steps that are output to this directory is therefore not available. An example is Azure/aks-set-context which stores the resulting kubeconfig in kubeconfig_[timestamp] directly under RUNNER_TEMP. This kubeconfig is therefore not available in docker actions.
Steps to reproduce the behavior:
Expected behavior
Docker action should have the RUNNER_TEMP directory mounted at the same path.
Runner Version and Platform
Current runner version: '2.294.0'
Operating System
Ubuntu
20.04.4
LTS
What's not working?
"kubectl" config use-context my-context
W0707 12:34:48.857696 29 loader.go:221] Config not found: /home/runner/work/_temp/kubeconfig_1657197285854
The text was updated successfully, but these errors were encountered: