-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
icu-generic.gyp refactor - merge similar actions #12218
Conversation
53ff842
to
e1e34c0
Compare
@nodejs/collaborators whomever can CI this, please. I think is finally ready. |
0c5478e
to
2670dff
Compare
Refactored parameter selection completely |
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.
This looks much more complicated than I would have thought necessary. Why is that?
configure
Outdated
@@ -1033,6 +1033,7 @@ def glob_to_var(dir_base, dir_sub, patch_dir): | |||
return list | |||
|
|||
def configure_intl(o): | |||
config_vars = o['variables'] |
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.
This introduces a lot of churn for no good reason. Please don't do that, no reviewer likes a noisy diff.
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.
😛😛😛😛😛😛😛😛😛😛😛😛
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.
Sorry about that, it was the "old me", that tried to be cheeky.
Anyway I reverted, as requested.
YAAAAAASSSSSSSS |
configure
Outdated
# this is the input '.dat' file to use .. icudt*.dat | ||
# may be little-endian if from a icu-project.org tarball | ||
o['variables']['icu_data_in'] = icu_data_in | ||
# this is the icudt*.dat file which node will be using (platform endianness) | ||
o['variables']['icu_data_file'] = icu_data_file |
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.
'icu_data_file' is not used anywhere anymore so I ☠️ed it
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.
Well it's back
@bnoordhuis reduced churn (although I personally like "churn" if it's towards a cleaner code)
I took me too long because I assumed the 4 paths (win +/- small +/-) had more in common then what turned out. I now assume they just diverged over the years. For instance we need to repack for endiness only on non-windows. and |
Also 'action': [ 'python', 'icutrim.py', '-P', '<(PRODUCT_DIR)/.', # '.' suffix is a workaround against GYP assumptions :(
'-D', '<(icu_data_in)', '-T', '<(icudata_trim_temp)',
'--delete-tmp', ... took some time to figure out since
|
Me too. If you're doing that you can do it as a separate commit (called |
Good tip. Next time. |
Nononono. Icu_data_file is used client side!!
El abr. 7, 2017 4:02 AM -0700, Refael Ackermann <notifications@github.com>, escribió:
… >
> (called squash! refactor code for readability or something)
>
Good tip. Next time.
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub (#12218 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AA0Ms0Qfn7f7LiepCMZx7GIiofq_Sbflks5rthe7gaJpZM4MzT6O).
|
who is the client? |
@srl295 like native addons? |
Add on packages.. use it to find the file. Please leave the variables in the hash.. sorry it's complex we can hash it out if you want. Thanks for trying to simplify
El abr. 8, 2017 11:33 AM -0700, Refael Ackermann <notifications@github.com>, escribió:
… >
> Nononono. Icu_data_file is used client side!!
>
@srl295 (https://github.com/srl295) like native addons?
If it's used anywhere I'll use it in icu-generic.gyp to actually set the name of the output 🤔...
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (#12218 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AA0Ms2LBgfWXbWGCECr61gF7cesWfVPVks5rt9MNgaJpZM4MzT6O).
|
Got you! so I'll use it in icu-generic.gyp to actually set the name of the output 👍 |
Please accept my +1 for the sentiment. Real review when I get a chance. I'd best explain it all over $Beverage ..
El abr. 8, 2017 3:46 PM -0700, Refael Ackermann <notifications@github.com>, escribió:
…
@refack commented on this pull request.
In configure (#12218 (comment)):
> # this is the input '.dat' file to use .. icudt*.dat # may be little-endian if from a icu-project.org tarball - o['variables']['icu_data_in'] = icu_data_in - # this is the icudt*.dat file which node will be using (platform endianness) - o['variables']['icu_data_file'] = icu_data_file
Well it's back
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub (#12218 (comment)), or mute the thread (https://github.com/notifications/unsubscribe-auth/AA0Ms55NAcWqykKPSCemEoX-7qHKXHd4ks5ruA5AgaJpZM4MzT6O).
|
@srl295 tell me more about it, I don't get it. That file is not vendored by |
ddc7ecf
to
0c5478e
Compare
0c5478e
to
d3f2700
Compare
also tweak `configure` around icu config
d3f2700
to
9dbb03c
Compare
@refack Are you still working on this? |
@bnoordhuis It's stable. |
New CI: https://ci.nodejs.org/job/node-test-commit/9893/ P.S. since it's just a |
Cross-Ref: #7254 |
@srl295 I see you're around. |
Ping |
Closing in favor of a better idea. |
Spin off of #11217
After we exorcise the voodoo, it's time to merge some very similar duplicated code
(After @bnoordhuis's observation, the
trim
andcode-gen
actions were parameterized and merged)Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
build, intl