Skip to content

build: remove newly-added node_modules/ trees in ui-maintainer-clean#87135

Merged
craig[bot] merged 2 commits intocockroachdb:masterfrom
sjbarag:remove-more-node_modules
Aug 31, 2022
Merged

build: remove newly-added node_modules/ trees in ui-maintainer-clean#87135
craig[bot] merged 2 commits intocockroachdb:masterfrom
sjbarag:remove-more-node_modules

Conversation

@sjbarag
Copy link
Copy Markdown
Contributor

@sjbarag sjbarag commented Aug 30, 2022

A few recent features [1, 2] introduced new node_modules/ trees for
dependencies, but didn't update the ui-maintainer-clean Make target to
remove them. This allowed those directories to leak between TeamCity
builds with Docker user permissions, preventing a yarn install in
those packages from properly laying out a node_modules/.bin directory
for executables like tsc. Remove the recently-introduced
node_modules/ directories as part of make ui-maintainer-clean, to
restore a clean state between jobs.

[1] d28c072 (ui: add eslint-plugin-crdb package with custom eslint rules, 2022-05-27)
[2] c58279d (ui: reintroduce end-to-end UI tests with cypress, 2022-08-12)

Release justification: Non-production code changes

A few recent features [1, 2] introduced new node_modules/ trees for
dependencies, but didn't update the ui-maintainer-clean Make target to
remove them. This allowed those directories to leak between TeamCity
builds with Docker user permissions, preventing a `yarn install` in
those packages from properly laying out a `node_modules/.bin` directory
for executables like `tsc`. Remove the recently-introduced
`node_modules/` directories as part of `make ui-maintainer-clean`, to
restore a clean state between jobs.

[1] d28c072 (ui: add eslint-plugin-crdb package with custom eslint rules, 2022-05-27)
[2] c58279d (ui: reintroduce end-to-end UI tests with cypress, 2022-08-12)

Release note: None
Gazelle previously searched a few node_modules/ directories to no
benefit, since it currently doesn't support generation of tasks from
JavaScript sources. Ignore more node_modules/ directories.

Release note: None
@sjbarag sjbarag requested a review from a team as a code owner August 30, 2022 18:48
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@sjbarag
Copy link
Copy Markdown
Contributor Author

sjbarag commented Aug 31, 2022

bors r=rickystewart

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Aug 31, 2022

Build succeeded:

@craig craig bot merged commit 0bcbece into cockroachdb:master Aug 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants