I'm not quite sure if this is an issue with the Docker image or with nektos/act (possibly its caching behavior?) but not infrequently when I run a workflow locally using the ghcr.io/catthehacker/ubuntu:act-latest image that uses actions/setup-node@v4 I get non-deterministic errors like this:
Sometimes it happens during the main action and fails the job as above; other times it happens during the post-action and doesn't affect the job status:
[test/test-13] β Success - Main sleep 10
[test/test-13] β Run Post actions/setup-node@v4
[test/test-13] π³ docker exec cmd=[node /var/run/act/actions/actions-setup-node@v4/dist/cache-save/index.js] user= workdir=
[test/test-13] | node:internal/modules/cjs/loader:1143
[test/test-13] | throw err;
[test/test-13] | ^
[test/test-13] |
[test/test-13] | Error: Cannot find module '/var/run/act/actions/actions-setup-node@v4/dist/cache-save/index.js'
[test/test-13] | at Module._resolveFilename (node:internal/modules/cjs/loader:1140:15)
[test/test-13] | at Module._load (node:internal/modules/cjs/loader:981:27)
[test/test-13] | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
[test/test-13] | at node:internal/main/run_main_module:28:49 {
[test/test-13] | code: 'MODULE_NOT_FOUND',
[test/test-13] | requireStack: []
[test/test-13] | }
[test/test-13] |
[test/test-13] | Node.js v18.20.2
[test/test-13] β Failure - Post actions/setup-node@v4
[test/test-13] Cleaning up container for job test
[test/test-13] π Job succeeded
Here's a sample .yaml I'm currently (sometimes) reproducing this issue on:
I will try to pare the YAML down to minimally reproducible as time allows
Debug info
$ act --version
act version 0.2.61
$ docker images --filter reference=catthehacker/ubuntu:act-latest
REPOSITORY TAG IMAGE ID CREATED SIZE
catthehacker/ubuntu act-latest fccf5eddb7c6 6 days ago 1.27GB
I'm not quite sure if this is an issue with the Docker image or with nektos/act (possibly its caching behavior?) but not infrequently when I run a workflow locally using the
ghcr.io/catthehacker/ubuntu:act-latest
image that usesactions/setup-node@v4
I get non-deterministic errors like this:Sometimes it happens during the main action and fails the job as above; other times it happens during the post-action and doesn't affect the job status:
Here's a sample .yaml I'm currently (sometimes) reproducing this issue on:
Running it with:
I will try to pare the YAML down to minimally reproducible as time allows
Debug info