Skip to content
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

[Bug]: Caching bin dir does not work #5

Open
1 task done
mbechto opened this issue May 3, 2024 · 0 comments
Open
1 task done

[Bug]: Caching bin dir does not work #5

mbechto opened this issue May 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@mbechto
Copy link

mbechto commented May 3, 2024

Contact Details

[email protected]

What happened?

Tried to use the action in self-hosted GHA runners (version 2.311.0), couldn't get it to work.

Looking at the error, the problem may be that it tries to cache the whole /usr/local/bin dir. A probable solution would be to just cache the extracted tar contents. For example actions/setup-go does this as well.

Version

1.0.0 (Default)

Relevant log output

Detected mode: kubectl connection. To use Cloud connection instead, provide your 'organization', 'environment' and 'token'.
Architecture: x86_64 (x86_64)
System: Linux (Linux)
Binary path: /usr/local/bin
kubectl: detected.
Forcing "1.17.22 version...
Downloading the artifact from "https://github.com/kubeshop/testkube/releases/download/v1.17.22/testkube_1.17.22_Linux_x86_64.tar.gz"...
/usr/bin/tar xz --warning=no-unknown-keyword --overwrite -C /usr/local/bin -f /home/runner/actions-runner/_work/_temp/decc21af-5db3-4fa9-ab5d-484edfa703d6
Extracted CLI to /usr/local/bin/kubectl-testkube.
/home/runner/actions-runner/_work/_actions/kubeshop/setup-testkube/main/dist/index.js:2783
            throw new Error(`no such file or directory: ${source}`);
                  ^

Error: no such file or directory: /usr/local/bin/invoke_tests
    at Object.<anonymous> (/home/runner/actions-runner/_work/_actions/kubeshop/setup-testkube/main/dist/index.js:2783:19)
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/actions-runner/_work/_actions/kubeshop/setup-testkube/main/dist/index.js:2751:58)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@mbechto mbechto added the bug Something isn't working label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant