-
-
Notifications
You must be signed in to change notification settings - Fork 35.9k
test: add a test to ensure the correctness of timezone upgrades #45299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
nodejs-github-bot
merged 7 commits into
nodejs:main
from
RaisinTen:test/add-a-test-to-ensure-the-correctness-of-timezone-upgrades
Nov 10, 2022
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
3f2e5e3
test: add a test to ensure the correctness of timezone upgrades
RaisinTen f004140
fixup! test: address review comments and skip if no intl
RaisinTen 8780765
fixup! test: intl -> Intl in skip message
RaisinTen 693f9bc
fixup! test: add extra guards
RaisinTen 69ec584
fixup! test: add link to canned icu directory path
RaisinTen c3ee434
fixup! test: explain difference between small-icu and deps/icu-small
RaisinTen dfa9a34
fixup! test: fix typo configured -> configure
RaisinTen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fixup! test: explain difference between small-icu and deps/icu-small
Asked for in #45299 (comment). Signed-off-by: Darshan Sen <raisinten@gmail.com>
- Loading branch information
commit c3ee43496199321faf2fe809c42970b9c9a55372
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this would work only if
nodeis built with--with-intl=small-icu? Shouldn't we also check that if the value isundefined, we want to also run the test?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like that's not true:
node/configure.py
Lines 1703 to 1711 in 7124476
i.e., it should work if
--with-intlis set tofull-icu(default case).I don't think that's necessary because
icu_pathcan never beundefinedfor the cases we are interested in (the objective is to run the test iff the current build is usingdeps/icu-small/source/data/in/icudt##l.dat.bz2):icu_pathis set here andicu_full_pathis never undefined -node/configure.py
Line 1761 in 7124476
returnstatement betweennode/configure.py
Line 1584 in 7124476
node/configure.py
Line 1641 in 7124476
--with-icu-path, I'm avoiding this to exclude the case where the pointed gyp file attempts to build icu with a different icudt file, which would result in a differentprocess.versions.tzvaluenode/configure.py
Line 1646 in 7124476
--with-intl=noneor--without-intl, which is not being considered becauseprocess.versions.tzwould beundefinedin this casenode/configure.py
Line 1682 in 7124476
--with-intl=system-icuwhich we are avoiding because the system icu is not in our control, so it might produce a different version forprocess.versions.tzUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On macOS,
nodeinstalled throughbrew:I tested this with Node.js v14.x, v16.x, and v18.x. Maybe it's using system-icu though, I don't know if there's another way to check. In any case, this should probably be explained in a comment why checking for
'deps/icu-small'covers more than small ICU builds.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct.
There is :)
It relies on the gyp file for the systemwide icu instead of
tools/icu/icu-generic.gypwhich is for the builtin icu.Alternatively,
otool -L /usr/local/opt/node/bin/nodewould print a set of shared objects the binary dynamically links against and you'll see the icu dylibs in that list:Explained, PTAL.