Skip to content

Update to nodejs rules 0.31.1 & bazel 0.26.0 - #30627

Closed
gregmagolan wants to merge 5 commits into
angular:masterfrom
gregmagolan:nodejs-rules-0.30.0
Closed

gregmagolan wants to merge 5 commits into
angular:masterfrom
gregmagolan:nodejs-rules-0.30.0

Conversation

@gregmagolan

@gregmagolan gregmagolan commented May 23, 2019 •

Copy link
Copy Markdown
Contributor

@gregmagolan
gregmagolan requested review from a team May 23, 2019 00:29
@gregmagolan gregmagolan changed the title WIP: Update to nodejs rules 0.30.0 WIP: Update to nodejs rules 0.30.1 May 24, 2019
@gregmagolan
gregmagolan requested a review from a team May 29, 2019 00:17
@gregmagolan gregmagolan changed the title WIP: Update to nodejs rules 0.30.1 Update to nodejs rules 0.30.1 May 29, 2019
@gregmagolan gregmagolan changed the title Update to nodejs rules 0.30.1 Update to nodejs rules 0.30.1 & bazel 0.26.0 May 29, 2019
@gregmagolan

Copy link
Copy Markdown
Contributor Author

For reference, there was a managed directories flaky crash observed when running the bazel-schematics integration test locally. Issue file to Bazel here bazelbuild/bazel#8488

@matsko matsko added the area: bazel Issues related to the published `@angular/bazel` build rules label May 30, 2019
@ngbot ngbot Bot added this to the needsTriage milestone May 30, 2019
@gregmagolan gregmagolan changed the title Update to nodejs rules 0.30.1 & bazel 0.26.0 Update to nodejs rules 0.31.1 & bazel 0.26.0 Jun 7, 2019
@gregmagolan
gregmagolan requested a review from IgorMinar as a code owner June 7, 2019 20:38
@gregmagolan
gregmagolan requested review from a team June 7, 2019 20:38
@Toxicable

Copy link
Copy Markdown

Probably want bazel 0.26.1 with this which fixes managed directories being edited externally (by rm -rf for example)

@alexeagle

Copy link
Copy Markdown
Contributor

Thanks @Toxicable I hadn't seen that the fix was released. Just mirrored that to npm and will update this PR

@alexeagle alexeagle added the target: patch This PR is targeted for the next patch release label Jun 10, 2019

@gregmagolan gregmagolan left a comment •

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.

LGTM. Thanks for finishing it up @alexeagle

@gregmagolan gregmagolan removed the action: merge The PR is ready for merge by the caretaker label Jun 10, 2019
@gregmagolan

Copy link
Copy Markdown
Contributor Author

Not quite done. Bazel 0.26.1 doesn't fix node_modules issue so need to put back symlink_node_modules = False again before merging.

@IgorMinar

Copy link
Copy Markdown
Contributor

uh oh.. what's going on with node_modules? why's still broken?

@gregmagolan

Copy link
Copy Markdown
Contributor Author

Scope change on the bazel side getting the managed_directories feature in led to an issue: bazel-contrib/rules_nodejs#802 with Bazel 0.26.0. Irina on Bazel team fixed it but hasn't landed in a release yet. Tracking for Bazel team here: bazelbuild/bazel#8487

@gregmagolan gregmagolan 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 Jun 10, 2019
@gregmagolan

Copy link
Copy Markdown
Contributor Author

symlink_node_modules = False back into main WORKSPACE and Bazel schematics. Ready to merge. These can be removed when Bazel is updated to a release which includes @irengrig fix bazelbuild/bazel@6efc5b7

gregmagolan and others added 5 commits June 10, 2019 11:59
nodejs rules 0.30.1 has new feature to symlink node_modules with yarn_install and bazel 0.26.0 includes new managed_directories feature which enables this
* entry_point attribute of nodejs_binary & rollup_bundle is now a label
* symlinking of node_modules for yarn_install temporarily disabled (except for integration/bazel) until the fix for bazelbuild/bazel#8487 makes it into a future bazel release
…SPACE and bazel schematics

This is needed to work-around issue: yarn_install & npm_install with managed directories can't handle deleted or manually regenerated node_modules folder [bazel-contrib/rules_nodejs#802]
Underlying issue has been fixed in Bazel bazelbuild/bazel#8487 but hasn't landed in a release yet
@Toxicable

Copy link
Copy Markdown

Ah my mistake, I assumed it was released when I saw the 0.26.1 release along with this being closed
bazelbuild/bazel#8487 at very similar times

@IgorMinar

Copy link
Copy Markdown
Contributor

@gregmagolan this one doesn't cleanly land on the patch branch, could you please send a separate PR that targets just 8.0.x? thanks

@IgorMinar IgorMinar added target: major This PR is targeted for the next major release and removed target: patch This PR is targeted for the next patch release labels Jun 11, 2019
@IgorMinar IgorMinar closed this in ba83d33 Jun 11, 2019
IgorMinar pushed a commit that referenced this pull request Jun 11, 2019
* entry_point attribute of nodejs_binary & rollup_bundle is now a label
* symlinking of node_modules for yarn_install temporarily disabled (except for integration/bazel) until the fix for bazelbuild/bazel#8487 makes it into a future bazel release

PR Close #30627
IgorMinar pushed a commit that referenced this pull request Jun 11, 2019
IgorMinar pushed a commit that referenced this pull request Jun 11, 2019
IgorMinar pushed a commit that referenced this pull request Jun 11, 2019
…SPACE and bazel schematics (#30627)

This is needed to work-around issue: yarn_install & npm_install with managed directories can't handle deleted or manually regenerated node_modules folder [bazel-contrib/rules_nodejs#802]
Underlying issue has been fixed in Bazel bazelbuild/bazel#8487 but hasn't landed in a release yet

PR Close #30627
@gregmagolan

Copy link
Copy Markdown
Contributor Author

@gregmagolan this one doesn't cleanly land on the patch branch, could you please send a separate PR that targets just 8.0.x? thanks

Roger

@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 Sep 15, 2019
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: bazel Issues related to the published `@angular/bazel` build rules cla: yes merge: caretaker note Alert the caretaker performing the merge to check the PR for an out of normal action needed or note target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

yarn_install & npm_install with managed directories can't handle deleted or manually regenerated node_modules folder

7 participants