-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
CI: Use Tempfile.create
in TestIntegration
#3410
Conversation
Hopefully more stable: - puma#3408 (comment) Similar change as puma#3296
c97364c
to
dae34ff
Compare
The reason why I assigned it to an instance variable was to prevent GC. So I'm not sure why this change is required, however, I'm also not sure my change fixed the issue, since we saw some other IO related issue... I need to spend more time investigating this too. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe:
if @config_file&.exist?
@config_file.unlink
@config_file = nil
end
Agree, that is an issue. A lot of these issues may be related to running test parallel, along with 'resource starved' CI runners. In the test update (which I haven't looked at for a while), I think I removed all the Re |
The only reason would be if you think there is a code path where that unlink is not called. e.g. non-trivial flow controls like exceptions, etc might skip your explicit |
All tests here are green so let's merge this and see how it plays out going forward? |
@ioquatix I suspect if something stopped |
Hopefully more stable:
Similar change as #3296