question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

indeterministic behaviour building nodejs projects

See original GitHub issue

Hello, 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:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xh3b4sdcommented, Jan 4, 2021

I solved it myself though I cannot really explain why it was broken. What I did was I removed rollup in the build process of numnum and only used tsc 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.

1reaction
aminyacommented, Dec 29, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Non-deterministic behaviour when building project? : r/sveltejs
I've been bashing my head against a wall trying to use svelte-fullcalendar: it's worked a couple of times, but is almost always broken, ......
Read more >
10 best practices to containerize Node.js web applications ...
Are you looking for best practices on how to build Node.js Docker ... We don't want to introduce this sort of non-deterministic behavior....
Read more >
Non-deterministic behavior of npm - node.js - Stack Overflow
After running npm install , I have noticed that sometimes package-lock.json changes. This section:
Read more >
Understanding Non-deterministic order of execution of ...
The Nodejs docs on The Node.js Event Loop, Timers, and process. ... Hopefully this clarifies the way around the non-deterministic behaviour of setTimeout ......
Read more >
Characterizing and Taming Non-deterministic Bugs in ...
Index Terms—JavaScript, Node.js, non-deterministic bug, ... application behaviors, such as crashes in server-side ... Node.js projects.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found