-
Notifications
You must be signed in to change notification settings - Fork 758
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: run coverage for the free-threaded build #4638
Conversation
d17cdd6
to
24ef718
Compare
CodSpeed Performance ReportMerging #4638 will degrade performances by 12.48%Comparing Summary
Benchmarks breakdown
|
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.
This looks like it's worked; I'm going to merge it so that it's available for the other in-flight freethreaded PRs. Will revert / amend if there are concerns.
# This runs as a separate job because it needs to run on the `pull_request_target` event | ||
# in order to access the CODECOV_TOKEN secret. | ||
# | ||
# This is safe because this doesn't run arbitrary code from PRs. | ||
|
||
name: Set Codecov PR base | ||
on: | ||
# See safety note / doc at the top of this file. | ||
pull_request_target: |
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.
cc @alex, I believe this use of pull_request_target
to be safe (unlike my last time 🙈), but if you disagree, please ping and I'll revert!
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.
As long as this doesn't run code from the PR, and only runs code from main/this .yml, it's fine. That looks true here.
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.
Yep that was my understanding too 👍
Thanks David! It'll be nice to have coverage reports on PRs for Py_GIL_DISABLED blocks. |
Over on #4588 I'm seeing the coverage tests failing with a git error: |
This is loosely related to #4635.
From what I've worked out experimenting with those PRs, I realise that we can run coverage on the merge commit in CI. The nice thing about this is that we can add all jobs (not just
build
) to coverage.Most importantly for current work, this enables code coverage for the freethreaded job. cc @ngoldbaum