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

chore: serialize tests to prevent install race #478

Merged
merged 1 commit into from
Jul 10, 2024

Conversation

willmurphyscode
Copy link
Contributor

Previously, running the npm test script in CI would sometimes result in multiple test processes all trying to install Syft at the same time, and one would fail with "span: ETXTBSY". Instead, run all tests in series.

See https://jestjs.io/docs/cli#--runinband

See anchore/scan-action#265

Previously, running the npm test script in CI would sometimes result in multiple
test processes all trying to install Syft at the same time, and one would fail
with "span: ETXTBSY". Instead, run all tests in series.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
@willmurphyscode willmurphyscode merged commit f4035cd into main Jul 10, 2024
6 checks passed
@willmurphyscode willmurphyscode deleted the fix-serial-tests branch July 10, 2024 13:16
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.

2 participants