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

Avoid subprocess when SKIPIF triggers IO #6022

Merged
merged 3 commits into from
Nov 2, 2024

Conversation

staabm
Copy link
Contributor

@staabm staabm commented Nov 1, 2024

I realized that since we already separate include/require from other IO functions, we can run tests which only do IO (like for filesystem cleanup stuff) in the main process (like we already do for --CLEAN--).

followup to #5998, #5999

@staabm staabm force-pushed the skipif-io branch 2 times, most recently from 7444297 to 258d3c7 Compare November 1, 2024 09:48
Comment on lines +24 to +27
Child Process Started
Child Process Finished
Child Process Started
Child Process Finished
Copy link
Contributor Author

Choose a reason for hiding this comment

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

require + test-itself is running in subprocess

Comment on lines +24 to +25
Child Process Started
Child Process Finished
Copy link
Contributor Author

Choose a reason for hiding this comment

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

only the test itself is running in subprocess. skipif subprocess avoided.

Copy link

codecov bot commented Nov 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.79%. Comparing base (befe10b) to head (4d7e668).
Report is 3 commits behind head on 11.5.

Additional details and impacted files
@@            Coverage Diff            @@
##               11.5    #6022   +/-   ##
=========================================
  Coverage     94.79%   94.79%           
+ Complexity     6829     6824    -5     
=========================================
  Files           722      722           
  Lines         21681    21669   -12     
=========================================
- Hits          20553    20542   -11     
+ Misses         1128     1127    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@staabm staabm marked this pull request as ready for review November 1, 2024 09:56
@sebastianbergmann sebastianbergmann merged commit 71215c7 into sebastianbergmann:11.5 Nov 2, 2024
31 checks passed
@staabm staabm deleted the skipif-io branch November 2, 2024 07:53
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.

2 participants