Skip to content

test(zone.js): test zone.js packge with tgz#38649

Closed
JiaLiPassion wants to merge 2 commits into
angular:masterfrom
JiaLiPassion:zone-npm-test
Closed

test(zone.js): test zone.js packge with tgz#38649
JiaLiPassion wants to merge 2 commits into
angular:masterfrom
JiaLiPassion:zone-npm-test

Conversation

@JiaLiPassion
Copy link
Copy Markdown
Contributor

@JiaLiPassion JiaLiPassion commented Aug 31, 2020

Zone.js 0.11.0 release an empty bundle, and now the npm_package tests all target
bazel rule npm_package, but not npm_package.pack, and these two rules may
generate different results, for example, Zone.js 0.11.0's issue is package.json
define files array which make the bundle only include the files in the files array.
So this PR install the zone.js package from the archive generated from npm_package.pack rule.

@JiaLiPassion JiaLiPassion marked this pull request as draft August 31, 2020 04:49
@pullapprove pullapprove Bot requested review from gkalpak and mhevery August 31, 2020 04:49
@JiaLiPassion JiaLiPassion force-pushed the zone-npm-test branch 7 times, most recently from 5af75f5 to ecf7a0d Compare August 31, 2020 09:23
@JiaLiPassion JiaLiPassion added the area: zones Issues related to zone.js label Aug 31, 2020
@ngbot ngbot Bot added this to the needsTriage milestone Aug 31, 2020
@JiaLiPassion JiaLiPassion added the target: minor This PR is targeted for the next minor release label Aug 31, 2020
@JiaLiPassion JiaLiPassion marked this pull request as ready for review August 31, 2020 09:24
Copy link
Copy Markdown
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: The commit message should be of type build or test. Otherwise lgtm.

While I don't mind the changes, I wonder whether we are testing the implementation of npm_package vs npm_package.pack. Is it expected that npm_package would yield different results than npm_package.pack? Or is it a bug in npm_package?

Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
@JiaLiPassion JiaLiPassion changed the title feat(zone.js): test zone.js packge with tgz test(zone.js): test zone.js packge with tgz Sep 14, 2020
@mhevery mhevery added the action: merge The PR is ready for merge by the caretaker label Sep 15, 2020
@ngbot
Copy link
Copy Markdown

ngbot Bot commented Sep 15, 2020

I see that you just added the action: merge label, but the following checks are still failing:
    failure status "pullapprove" is failing
    pending 2 pending code reviews

If you want your PR to be merged, it has to pass all the CI checks.

If you can't get the PR to a green state due to flakes or broken master, please try rebasing to master and/or restarting the CI job. If that fails and you believe that the issue is not due to your change, please contact the caretaker and ask for help.

@JiaLiPassion
Copy link
Copy Markdown
Contributor Author

@gkalpak, could you check this PR again? Thanks.

Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
@JiaLiPassion
Copy link
Copy Markdown
Contributor Author

@gkalpak , Sorry, it happened again, I pushed the wrong commit. Please take a look again, and I added the logic to remove zone.js-dist/archive dir before publish archive in circleci here https://github.com/angular/angular/pull/38649/files#diff-1d37e48f9ceff6d8030570cd36286a61R569

Copy link
Copy Markdown
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No worries, @JiaLiPassion. Thx for making the changes 👍

Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread .circleci/config.yml Outdated
Copy link
Copy Markdown
Member

@gkalpak gkalpak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Generally lgtm, but I am a little concernd about the potential Windows incompatibility. (We need to investigate that before merging.)

BTW, there's a typo in the commit message header:

-test(zone.js): test zone.js packge with tgz
+test(zone.js): test zone.js package with tgz

Comment thread scripts/build/zone-js-builder.js Outdated
Comment thread scripts/build/zone-js-builder.js Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This command fails for me on Windows. I don't know yet whether it is just me or an npm_package.pack issue with Windows, but I don't want to change this script in a way that breaks Windows users.
(NOTE: This script is also used when you want to test angular.io against the locally built Angular packages.)

I have started a discussion here (sorry, not public).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I tested it too, it throw a error like this.

java.io.IOException: ERROR: src/main/native/windows/processes-jni.cc(356): NativeProcess:WriteStdin(1153200)

Copy link
Copy Markdown
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this change looks good to me, if we can resolve the Windows incompatibility.

@AndrewKushnir AndrewKushnir added action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews and removed action: merge The PR is ready for merge by the caretaker labels Oct 15, 2020
@AndrewKushnir
Copy link
Copy Markdown
Contributor

FYI, replacing "merge" label with "cleanup" one since there is a conflict with master branch. Feel free to put the "merge" label back once this PR is rebased. Thank you.

@JiaLiPassion JiaLiPassion removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Oct 15, 2020
@JiaLiPassion JiaLiPassion requested a review from gkalpak October 15, 2020 23:46
@JiaLiPassion
Copy link
Copy Markdown
Contributor Author

@AndrewKushnir , got it, thanks!

@gkalpak, I tried again, to run bazel clean and build on windows, it seems now it run successfully, could you check it again?
Thank you!

@gkalpak
Copy link
Copy Markdown
Member

gkalpak commented Oct 17, 2020

It is still failing for me 😕

Zone.js 0.11.0 release an empty bundle, and now the npm_package tests all target
bazel rule `npm_package`, but not `npm_package.pack`, and these two rules may
generate different results, for example, Zone.js 0.11.0's issue is `package.json`
define files array which make the bundle only include the files in the files array.
So this PR install the zone.js package from the archive generated from `npm_package.pack` rule.
@google-cla

This comment has been minimized.

@google-cla google-cla Bot added cla: no and removed cla: yes labels Oct 19, 2020
@gkalpak

This comment has been minimized.

@google-cla google-cla Bot added cla: yes and removed cla: no labels Oct 19, 2020
@gkalpak gkalpak added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label Oct 19, 2020
@JiaLiPassion JiaLiPassion added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels Oct 19, 2020
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Nov 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: zones Issues related to zone.js cla: yes target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants