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

Clean up connections before exit in tests #71

Merged
merged 2 commits into from
Aug 1, 2024
Merged

Conversation

c42f
Copy link
Collaborator

@c42f c42f commented Jul 31, 2024

This fixes various alarming finalizer errors when running the tests - in those cases, sockets appear to have been closed before the finalizer gets to run.

Also make sure to run the test RemoteREPL server processes in the Julia environment set up by the test runner.

Fix #70

This fixes various alarming finalizer errors when running the tests -
in those cases, sockets appear to have been closed before the finalizer
gets to run.
@c42f c42f requested a review from filchristou July 31, 2024 05:45
Copy link
Collaborator

@filchristou filchristou left a comment

Choose a reason for hiding this comment

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

Hey. I am fine with that. ssh connections are now the default tests and also work with the CI.
I also like the Base.active_project() approach. it's a nice not intrusive solution (wrt TestEnv).

Also all these "soft erros" from #70 stopped. so thanks for that!

@c42f c42f merged commit fc403a9 into main Aug 1, 2024
5 checks passed
@c42f c42f deleted the caf/fix-test-conn-cleanup branch August 1, 2024 06:08
@c42f
Copy link
Collaborator Author

c42f commented Aug 1, 2024

@filchristou Indeed, it seems we're using ssh in CI... Now I'm confused, I don't know why I thought this didn't work!

Looking at the CI config it seems I did spend a lot of effort getting ssh working back in #2. Honestly I can't remember going through that pain 😆

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.

Testing can leave a stale Manifest.toml, leading to test failures
2 participants