-
Notifications
You must be signed in to change notification settings - Fork 94
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
Test failures in positron-run-app extension #5823
Comments
Looks to me like these tests are not run in CI, which may be an oversight: https://github.com/posit-dev/positron/blob/main/scripts/test-integration-pr.sh |
Ah, not an oversight it looks like! Note the change in I see in Slack that these tests were flaky so we decided not to run them in CI, and @seeM said these tests are mainly useful during the local dev process for this extension.
|
@juliasilge It's hard to say what's going on without investigating further. I did encounter some flakiness in these tests myself when developing, which is why I originally decided not to include them in CI. But I couldn't find a fix. We have quite a few end-to-end tests covering the same behavior. So I'd be happy to ignore this until either users report it in practice or we see flakiness in the end-to-end tests. |
@juliasilge These tests fail every time I run them locally. Given the consistency of the failure, it could be a test setup issue on my end if this isn't reproducible by others. |
To run these tests after we've moved from yarn to npm, use I see the same test failures as @dhruvisompura, and this is not intermittent but instead does seem to be truly a problem with the tests as written. I know we're not running these tests in CI but it's not unreasonable to use them in the dev process, like Dhruvi was when updating lots of settings, so we should clean these up and see what has changed. I'll move this to a milestone later this spring, to be addressed during a time of polish and bug fixing. |
Ah, it's failing every time for me as well. I'm actually also seeing this bug in Flask and Streamlit apps too! I looked into it a bit. Sometimes positron/extensions/positron-run-app/src/api.ts Lines 294 to 300 in be85387
We need to synchronize somehow so that those can fire in either order. EDIT: I'm not sure what changed that caused this to start failing. Could be something upstream. |
Describe the issue:
I'm seeing some test failures in the
positron-run-app
extension failing when run on the main branch:It looks like the last time the test file was touched was in: 855554f but unsure when the test failures were introduced.
Steps to reproduce the issue:
npm run test-extension -- -l positron-run-app
Expected or desired behavior:
Expected the
debugApplication: shell integration supported
anddebugApplication: shell integration disabled, user enables and reruns
tests to pass.The text was updated successfully, but these errors were encountered: