Modified yml slightly. Tried it on an Ubuntu 18.04 laptop and k6 file does get recognized and executed without issues. In the pipeline the image is Debian 9.8, and it does not recognize the file.
I got the 32 bit version k6, and put both files in the repo k6bin folder. Both the files show in ls . However, file command does not work on the CI machine with Debian 9.8 on either 32 bit or 64 bit k6 executable.
- Not a file extract or move problem
- Not a 32 bit vs 64 bit problem
- Possible Debian issue(?)
- Possible file issue from k6 file
- mkdir -p k6bin
- apk add --update curl && rm -rf /var/cache/apk/*
if [[ ! -f k6bin/k6 ]]; then
curl -O -L https://s3-eu-west-1.amazonaws.com/gitlab-test-pipeline-file-store/k6-v0.24.0-linux64.tar.gz;
tar -xvzf k6-v0.24.0-linux64.tar.gz;
mv k6-v0.24.0-linux64/k6 k6bin/k6;
- chmod -R a+rwx k6bin
- cd k6bin
- ls -lia
- file k632
- cd ..
- k6bin/k632 run k6-performance/getSites.js
- k6bin/k6 run k6-performance/getSites.js
After this test, tried version 23 of k6, to reduce the guesstimate that this is a k6 file issue. The result is the same. This is most likely a Debian 9.8 CI machine issue.
Does anyone know how to add missing libraries to a Debian 9.8 CI machine so that the k6 executable gets recognized? Or, is there a way to make the k6 executable more compliant with CI machines?