-
-
Notifications
You must be signed in to change notification settings - Fork 181
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
'No inspectable targets' error in npm-test (GitHub CI) #4337
Labels
bug
Things broken and not working as expected
Comments
p2edwards
added a commit
that referenced
this issue
Mar 13, 2023
…skip redundant copy-fonts, use faster frontend build in pytest. npm-test: - Skip redundant copy-fonts, because it already runs with `npm install` as a postinstall script. In keeping with #4267. - Add a timeout for mocha-chrome connection, in case it hits #4337 - Add names for steps, for improved visibility/granularity on GitHub - Add a separate TypeScript check from build step, for visibility - Add ESLint step on CI pytest: - Skip redundant copy-fonts, and skip TypeScript check when building prod just for running pytest. Makes pytest checks more orthogonal to frontend checks.
p2edwards
added a commit
that referenced
this issue
Mar 13, 2023
…skip redundant copy-fonts, use faster frontend build in pytest. npm-test: - Skip redundant copy-fonts, because it already runs with `npm install` as a postinstall script. In keeping with #4267. - Add a timeout for mocha-chrome connection, in case it hits #4337 - Add names for steps, for improved visibility/granularity on GitHub - Add a separate TypeScript check from build step, for visibility - Add ESLint step on CI pytest: - Skip redundant copy-fonts, and skip TypeScript check when building prod just for running pytest. Makes pytest checks more orthogonal to frontend checks.
p2edwards
changed the title
'
'No inspectable targets' error in npm-test (GitHub CI)
Mar 14, 2023
No inspectable targets
' error in npm-test
(GitHub CI)
This appears to be resolved since The fix: adding - name: Run Tests, with mocha-chrome
run: npx mocha-chrome test/tests.html --chrome-launcher.connectionPollInterval=5000
timeout-minutes: 1 # early timeout in case of https://github.com/kobotoolbox/kpi/issues/4337 Re-open this issue if the tests timeout. |
9 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
🐛 In CI, the
npm-test
workflow might hang up to 6 hours or until manually cancelled, instead of running the tests and succeeding/failing based on that.Steps to Reproduce
npm install
,npm run build
and ideallynpm run test
succeed when run locally.npm-test
flow to get to thenpm run test
stage.Expected behavior
The CI action for
npm run test
succeeds if the tests pass, and fails if they don't.Actual behavior
Too often, the CI action for
npm run test
hangs with the error 'No inspectable targets
', and then waits up to 360 minutes before terminating itself.Additional details
This appears to be a fairly common experience when using Chrome's remote interface.
I haven't seen it fail yet, so if #4323 gets merged and we don't see this problem again for a while, we can probably close this issue.
If that second fix doesn't work:
The text was updated successfully, but these errors were encountered: