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(ci): hanging tests #1106

Merged
merged 2 commits into from
Nov 24, 2022
Merged

fix(ci): hanging tests #1106

merged 2 commits into from
Nov 24, 2022

Conversation

lidel
Copy link
Member

@lidel lidel commented Nov 24, 2022

npm test takes ~30s. If it hangs for longer than a minute, it is clearly a bug.
This PR ensures we get failure sooner than after 360m (default on github)

Why?

CI hang problem appeared around #1101 – i think it is c8 being very, very slow – note that tests finish correctly, but node process hangs and never exists.

Seems that since we introduced c8 the tests sometimes hang
(they finish correctly, but node process hangs and never exists).
This ensures we get failure sooner than after 360m (default on github)
@lidel lidel requested a review from whizzzkid November 24, 2022 13:01
@lidel lidel requested review from meandavejustice and a team as code owners November 24, 2022 13:01
Comment on lines +68 to +70
"src": [
"add-on/src/"
],
Copy link
Member Author

@lidel lidel Nov 24, 2022

Choose a reason for hiding this comment

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

Perhaps this will fix? seems to speed up c8 for me locally – perhaps it was processing ./ which includes node_modules or 🤷

@lidel lidel changed the title chore(ci): fail hanging tests faster fix(ci): hanging tests Nov 24, 2022
@lidel lidel merged commit 5b0c6d1 into main Nov 24, 2022
@lidel lidel deleted the chore/fail-ci-faster branch November 24, 2022 13:39
@lidel
Copy link
Member Author

lidel commented Nov 24, 2022

It seems we still have flaky tests:

So slow c8 (fixed by this PR?) was not the underlying cause. Probably mocha.

See the final fix in #1107

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.

1 participant