Skip to content

fix: use --expose-gc for top-level 'yarn test'#3159

Merged
warner merged 2 commits intomasterfrom
expose-gc
May 25, 2021
Merged

fix: use --expose-gc for top-level 'yarn test'#3159
warner merged 2 commits intomasterfrom
expose-gc

Conversation

@warner
Copy link
Member

@warner warner commented May 24, 2021

I added this to SwingSet/package.json in commit
d4bc617 (PR #3136). However I overlooked the
fact that #3100 had already landed, which changed the top-level yarn test
from one that just did a (sequential) yarn workspaces test, testing one
package at a time with whatever the local package.json said to do, to one
that does a (parallel) ava invocation, which does all packages at the same
time but ignores the local package.json settings.

We need to include --expose-gc in the nodeArguments in the top-level
package.json to make sure the parallel form give the correct arguments when
SwingSet's turn comes around (as well as other packages which benefit from
enabling GC but don't have tests which directly assert that it can be done).

Running a top-level yarn test on agoric-sdk trunk is currrently broken because of this.

I added this to SwingSet/package.json in commit
d4bc617 (PR #3136). However I overlooked the
fact that #3100 had already landed, which changed the top-level `yarn test`
from one that just did a (sequential) `yarn workspaces test`, testing one
package at a time with whatever the local `package.json` said to do, to one
that does a (parallel) `ava` invocation, which does all packages at the same
time but ignores the local `package.json` settings.

We need to include `--expose-gc` in the `nodeArguments` in the top-level
package.json to make sure the parallel form give the correct arguments when
SwingSet's turn comes around (as well as other packages which benefit from
enabling GC but don't have tests which directly assert that it can be done).
@warner
Copy link
Member Author

warner commented May 24, 2021

BTW, this snuck past because CI doesn't do a top-level yarn test, instead it tests groups of packages in parallel jobs. And locally I usually do a cd SwingSet && yarn test, and leave testing of the other packages up to CI.

@warner warner requested a review from michaelfig May 24, 2021 01:50
@warner warner self-assigned this May 24, 2021
@warner warner added the tooling repo-wide infrastructure label May 24, 2021
@warner warner enabled auto-merge (rebase) May 24, 2021 01:50
Copy link
Member

@michaelfig michaelfig left a comment

Choose a reason for hiding this comment

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

LGTM!

@warner warner merged commit 352922a into master May 25, 2021
@warner warner deleted the expose-gc branch May 25, 2021 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tooling repo-wide infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants