You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SimpleWebAuthn's Node 18 CI pipeline has been intermittently failing lately when it attempts to bootstrap the project. Sometimes the builds completely successfully, and sometimes they fail; simply by re-running the job I can get a failed pipeline to pass, and then see it fail again if I immediately re-re-run the job. There are no changes to the code in between runs.
I was able to recreate the intermittent failures locally, observing 3 of 10 immediate, subsequent executions of lerna bootstrap --hoist failing with similar errors:
Run 1 : OK
Run 2 : OK
Run 3 : OK
Run 4 : OK
Run 5 : OK
Run 6 : lerna ERR! lifecycle "prepublish" errored in "@simplewebauthn/testing", exiting 1
Run 7 : OK
Run 8 : lerna ERR! lifecycle "prepublish" errored in "@simplewebauthn/server", exiting 1
Run 9 : lerna ERR! lifecycle "prepublish" errored in "@simplewebauthn/server", exiting 1
Run 10: OK
Console output from Run 9
$> npm run bootstrap
> bootstrap
> lerna bootstrap --hoist
lerna notice cli v5.2.0
lerna info Bootstrapping 4 packages
lerna info Installing external dependencies
lerna info hoist Pruning hoisted dependencies
lerna info hoist Finished pruning hoisted dependencies
lerna info hoist Finished bootstrapping root
lerna info Symlinking packages and binaries
lerna info lifecycle @simplewebauthn/testing@5.0.0~prepublish: @simplewebauthn/testing@5.0.0
> @simplewebauthn/testing@5.0.0 prepublish /Users/matt/Developer/repro-simplewebauthn/packages/testing
> npm run build
lerna info lifecycle @simplewebauthn/typescript-types@5.3.0~prepublish: @simplewebauthn/typescript-types@5.3.0
> @simplewebauthn/typescript-types@5.3.0 prepublish /Users/matt/Developer/repro-simplewebauthn/packages/typescript-types
> npm run build
(###############⠂⠂⠂) ⠴ prepublish: info lifecycle @simplewebauthn/typescript-types@5.3.0~prepublish: @simplewebauthn/typescript-types@5.3.0
> @simplewebauthn/testing@5.0.0 build
> rimraf dist && tsc
(################⠂⠂) ⠦ prepublish: sill lifecycle "prepublish" finished in "@simplewebauthn/testing"
> @simplewebauthn/typescript-types@5.3.0 build
> rimraf dist && npm run extract-dom-types && tsc
> @simplewebauthn/typescript-types@5.3.0 extract-dom-types
> ts-node extract-dom-types.ts
lerna info lifecycle @simplewebauthn/browser@5.3.0~prepublish: @simplewebauthn/browser@5.3.0
> @simplewebauthn/browser@5.3.0 prepublish /Users/matt/Developer/repro-simplewebauthn/packages/browser
> npm run build
lerna info lifecycle @simplewebauthn/server@5.3.0~prepublish: @simplewebauthn/server@5.3.0
> @simplewebauthn/server@5.3.0 prepublish /Users/matt/Developer/repro-simplewebauthn/packages/server
> npm run build
lerna ERR! lifecycle "prepublish" errored in "@simplewebauthn/server", exiting 1
The same error as Run 9, but with debug logging enabled:
I'm calling out Node 18 specifically because when I clone a fresh copy of my repo and re-run the reproduction steps below using Node 16 I observe 10 successful runs, with no issues of any kind.
Expected Behavior
I expect every execution of lerna bootstrap --hoist with Node 18 to successfully complete when no changes to code have been made since the last successful run.
Current Behavior
SimpleWebAuthn's Node 18 CI pipeline has been intermittently failing lately when it attempts to bootstrap the project. Sometimes the builds completely successfully, and sometimes they fail; simply by re-running the job I can get a failed pipeline to pass, and then see it fail again if I immediately re-re-run the job. There are no changes to the code in between runs.
I was able to recreate the intermittent failures locally, observing 3 of 10 immediate, subsequent executions of
lerna bootstrap --hoist
failing with similar errors:Run 1 : OK
Run 2 : OK
Run 3 : OK
Run 4 : OK
Run 5 : OK
Run 6 :
lerna ERR! lifecycle "prepublish" errored in "@simplewebauthn/testing", exiting 1
Run 7 : OK
Run 8 :
lerna ERR! lifecycle "prepublish" errored in "@simplewebauthn/server", exiting 1
Run 9 :
lerna ERR! lifecycle "prepublish" errored in "@simplewebauthn/server", exiting 1
Run 10: OK
Console output from Run 9
The same error as Run 9, but with debug logging enabled:
I'm calling out Node 18 specifically because when I clone a fresh copy of my repo and re-run the reproduction steps below using Node 16 I observe 10 successful runs, with no issues of any kind.
Expected Behavior
I expect every execution of
lerna bootstrap --hoist
with Node 18 to successfully complete when no changes to code have been made since the last successful run.Steps to Reproduce
git clone https://github.com/MasterKale/SimpleWebAuthn.git repro-simplewebauthn
nvm use 18.6.0
)npm install
npx lerna --version
and confirm 5.2.0npx nx --version
and confirm 14.4.3npm run bootstrap
x 10Failure Logs / Configuration
lerna.json
nx.json
Environment
The text was updated successfully, but these errors were encountered: