indeterministic behaviour building nodejs projects
See original GitHub issueHello, we are experiencing flapping builds when using the setup-node
action where occasionally builds fail with “unexpected token” errors. At first the Github Support advised to upgrade from v1
to v2
. At first it appeared to have solved the problem, though now we see the same indeterministic behaviour again which is also not reproducible locally. I tried to use different NodeJS versions and enabled the workflow debug logging via the ACTIONS_STEP_DEBUG=true
secret in our repository, but all with no avail. The Github Support suggested to reach out here and try to gather more information about how to debug this situation further. Example builds are shown below. You see that two builds execute npm run build
of which one succeeds and one fails, even though both build the same project.
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top GitHub Comments
I solved it myself though I cannot really explain why it was broken. What I did was I removed
rollup
in the build process ofnumnum
and only usedtsc
instead to build it. This solved the problem. Though I also do not understand why this happened in the build container when running Github actions and why it was not reproducible for anyone on their local machine.That is a problem with your build tools. Nodejs has set up the version you requested as expected: https://github.com/venturemark/webclient/pull/92/checks?check_run_id=1606578880#step:3:19 https://github.com/venturemark/webclient/pull/92/checks?check_run_id=1606578858#step:3:19