Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken tests; bump shUnit2 to 2.1.8 #934

Merged
merged 10 commits into from
Aug 11, 2021
Merged

Fix broken tests; bump shUnit2 to 2.1.8 #934

merged 10 commits into from
Aug 11, 2021

Conversation

joshwlewis
Copy link
Member

@joshwlewis joshwlewis commented Aug 9, 2021

There have been some recent failures in CI. This PR fixes the following issues:

testBuildWithUserCacheDirectories
ASSERT:expected:<1> but was:<0>

This appears to be due to using an ancient and vulnerable version of jQuery in the cache-directories fixture. I've updated the node, bower, and jQuery versions for this fixture.

ASSERT:Expected </tmp/tmp.zHnCba0e4H> to contain <resolve-v1-yarn="1.22.10 https://s3.amazonaws.com/heroku-nodebin/yarn/release/yarn-v1.22.10.tar.gz">
ASSERT:Expected </tmp/tmp.zHnCba0e4H> to contain <resolve-is-equal-yarn=true>

This was due to a newer release of yarn becoming available, 1.22.11. The problem here is twofold. 1) inventory/yarn.toml needs the new entry 2) these tests were not tolerant to version changes.

Additionally, this PR bumps shunit to 2.1.8. The previous version, 2.1.6 is over 10 years old. By bumping the version, we can now run single tests with a command like test/run -- testBuildWithUserCacheDirectories. The new shunit2 comes with a new assertContains() function which conflicted with our own method of the same name.

@joshwlewis joshwlewis requested a review from a team as a code owner August 9, 2021 22:53
@joshwlewis joshwlewis changed the title Bump shunit2 to 2.1.8 Fix broken tests; bump shUnit2 to 2.1.8 Aug 10, 2021
@joshwlewis joshwlewis merged commit 4e478c9 into main Aug 11, 2021
@joshwlewis joshwlewis deleted the jwl/update-shunit2 branch August 11, 2021 20:00
edmorley added a commit that referenced this pull request Oct 3, 2021
To fix CI on `main`, now that there are newer Yarn versions, which cause `testBuildMetaData`
to fail, the same as it did in #934.

GUS-W-9981764.
edmorley added a commit that referenced this pull request Oct 4, 2021
To fix CI on `main`, now that there are newer Yarn versions, which cause `testBuildMetaData`
to fail, the same as it did in #934.

GUS-W-9981764.
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