Skip to content

build: add --write-snapshot-as-array-literals to configure.py - #49312

Closed
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:config-array-literals
Closed

build: add --write-snapshot-as-array-literals to configure.py#49312
joyeecheung wants to merge 1 commit into
nodejs:mainfrom
joyeecheung:config-array-literals

Conversation

@joyeecheung

@joyeecheungjoyeecheung commented Aug 24, 2023

Copy link
Copy Markdown
Member

This makes it easier to locate indeterminism in the snapshot, with the following command:

$ ./configure --write-snapshot-as-array-literals
$ make V=
$ mv out/Release/obj/gen/node_snapshot.cc ./node_snapshot.cc
$ make V=
$ diff out/Release/obj/gen/node_snapshot.cc ./node_snapshot.cc

Refs: nodejs/build#3043

This makes it easier to locate indeterminism in the snapshot, with
the following command:
$ ./configure --write-snapshot-as-array-literals
$ make V=
$ mv out/Release/obj/gen/node_snapshot.cc ./node_snapshot.cc
$ make V=
$ diff out/Release/obj/gen/node_snapshot.cc ./node_snapshot.cc
@joyeecheung
joyeecheung marked this pull request as ready for review August 24, 2023 16:37
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/gyp
  • @nodejs/startup

@nodejs-github-botnodejs-github-bot added lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. labels Aug 24, 2023
@joyeecheungjoyeecheung added the request-ci Add this label to start a Jenkins CI on a PR. label Aug 31, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Aug 31, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@joyeecheungjoyeecheung added the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 2, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Sep 2, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator
Commit Queue failed
- Loading data for nodejs/node/pull/49312
✔ Done loading data for nodejs/node/pull/49312
----------------------------------- PR info ------------------------------------
Title build: add --write-snapshot-as-array-literals to configure.py (#49312)
Author Joyee Cheung (@joyeecheung)
Branch joyeecheung:config-array-literals -> nodejs:main
Labels lib / src, needs-ci
Commits 1
- build: add --write-snapshot-as-array-literals to configure.py
Committers 1
- Joyee Cheung PR-URL: https://github.com/nodejs/node/pull/49312
Refs: https://github.com/nodejs/build/issues/3043
Reviewed-By: Ben Noordhuis ------------------------------ Generated metadata ------------------------------
PR-URL: https://github.com/nodejs/node/pull/49312
Refs: https://github.com/nodejs/build/issues/3043
Reviewed-By: Ben Noordhuis --------------------------------------------------------------------------------
ℹ This PR was created on Thu, 24 Aug 2023 16:37:26 GMT
✔ Approvals: 1
✔ - Ben Noordhuis (@bnoordhuis) (TSC): https://github.com/nodejs/node/pull/49312#pullrequestreview-1595533008
✘ Last GitHub CI failed
ℹ Last Full PR CI on 2023-09-01T19:44:30Z: https://ci.nodejs.org/job/node-test-pull-request/53681/
- Querying data for job/node-test-pull-request/53681/
✔ Last Jenkins CI successful
--------------------------------------------------------------------------------
✔ Aborted `git node land` session in /home/runner/work/node/node/.ncu
https://github.com/nodejs/node/actions/runs/6060350802

@nodejs-github-botnodejs-github-bot added the commit-queue-failed An error occurred while landing this pull request using GitHub Actions. label Sep 2, 2023
@joyeecheung

Copy link
Copy Markdown
MemberAuthor

Somehow the GitHub UI says "All checks have passed" and node-core-utils still complains about it...perhaps something is wrong the the GitHub API result, landing it manually.

joyeecheung added a commit that referenced this pull request Sep 4, 2023
This makes it easier to locate indeterminism in the snapshot, with
the following command:
$ ./configure --write-snapshot-as-array-literals
$ make V=
$ mv out/Release/obj/gen/node_snapshot.cc ./node_snapshot.cc
$ make V=
$ diff out/Release/obj/gen/node_snapshot.cc ./node_snapshot.cc
PR-URL: #49312
Refs: nodejs/build#3043
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
@joyeecheung

Copy link
Copy Markdown
MemberAuthor

Landed in 0028fd1

ruyadorno pushed a commit that referenced this pull request Sep 28, 2023
This makes it easier to locate indeterminism in the snapshot, with
the following command:
$ ./configure --write-snapshot-as-array-literals
$ make V=
$ mv out/Release/obj/gen/node_snapshot.cc ./node_snapshot.cc
$ make V=
$ diff out/Release/obj/gen/node_snapshot.cc ./node_snapshot.cc
PR-URL: #49312
Refs: nodejs/build#3043
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
This was referenced Sep 28, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

commit-queue-failedAn error occurred while landing this pull request using GitHub Actions.lib / srcIssues and PRs related to general changes in the lib or src directory.needs-ciPRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@joyeecheung@nodejs-github-bot@bnoordhuis