Skip to content

ci: do not cache modified "node_modules" in "material-unit-tests" job#29416

Closed
devversion wants to merge 1 commit intoangular:masterfrom
devversion:ci/do-not-cache-modified-node-modules-material-jobs
Closed

ci: do not cache modified "node_modules" in "material-unit-tests" job#29416
devversion wants to merge 1 commit intoangular:masterfrom
devversion:ci/do-not-cache-modified-node-modules-material-jobs

Conversation

@devversion
Copy link
Member

@devversion devversion commented Mar 20, 2019

Fixes that the material-unit-tests job currently fails. This now
surfaces because yesterday we rebased the ivy-2019 branch
which now contains a postinstall hook needed for Bazel.

Currently we cache the Material node_modules after
the run_angular_material_unit_tests.sh completed. This
means that the cache will incorrectly contain the Ivy NPM
package output which might be incompatible with the
other Material dependencies. e.g. the Material postinstall
command now uses a different NGC version that does not
work with the typescript version that has been specified in
the Material project.

Currently we cache the Material `node_modules` after
the `run_angular_material_unit_tests.sh` completed. This
means that the cache will incorrectly contain the Ivy NPM
package output which might be incompatible with the
other Material dependencies. e.g. the Material postinstall
command now uses a different NGC version that does not
work with the `typescript` version that has been specified in
the Material project.
@devversion devversion added area: build & ci Related the build and CI infrastructure of the project action: review The PR is still awaiting reviews from at least one requested reviewer target: major This PR is targeted for the next major release labels Mar 20, 2019
@ngbot ngbot bot modified the milestone: needsTriage Mar 20, 2019
@devversion devversion marked this pull request as ready for review March 20, 2019 11:58
@devversion devversion requested a review from a team March 20, 2019 11:58
@gkalpak gkalpak added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Mar 20, 2019
@kara kara closed this in a530ed1 Mar 20, 2019
gkalpak added a commit to gkalpak/angular that referenced this pull request Mar 20, 2019
This will increase the cache hit rate for the `material-unit-tests` job.
Related to angular#29416 (comment).
@gkalpak gkalpak mentioned this pull request Mar 20, 2019
14 tasks
@devversion devversion deleted the ci/do-not-cache-modified-node-modules-material-jobs branch March 20, 2019 16:51
wKoza pushed a commit to wKoza/angular that referenced this pull request Apr 17, 2019
…angular#29416)

Currently we cache the Material `node_modules` after
the `run_angular_material_unit_tests.sh` completed. This
means that the cache will incorrectly contain the Ivy NPM
package output which might be incompatible with the
other Material dependencies. e.g. the Material postinstall
command now uses a different NGC version that does not
work with the `typescript` version that has been specified in
the Material project.

PR Close angular#29416
wKoza pushed a commit to wKoza/angular that referenced this pull request Apr 17, 2019
…ular#29417)

This will increase the cache hit rate for the `material-unit-tests` job.
Related to angular#29416 (comment).

PR Close angular#29417
@angular-automatic-lock-bot
Copy link

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 14, 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: build & ci Related the build and CI infrastructure of the project cla: yes target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants