Skip benchmarks in ci when running in fork repositories#11737
Skip benchmarks in ci when running in fork repositories#11737webknjaz merged 13 commits intoaio-libs:masterfrom
Conversation
CodSpeed Performance ReportMerging #11737 will not alter performanceComparing Summary
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #11737 +/- ##
=======================================
Coverage 98.74% 98.74%
=======================================
Files 127 127
Lines 43754 43754
Branches 2328 2328
=======================================
Hits 43205 43205
Misses 389 389
Partials 160 160
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
|
The preferred solution is storing the plain text token fore Codecov. As for codspeed, I haven't seen it failing. Do you have any examples? FWIW, the repo checks should be done through repo IDs. |
webknjaz
left a comment
There was a problem hiding this comment.
I wonder, though, if benchmarking could still run but just skip uploading the results, conditionally. Could you check?
@Cycloctane have you been able to check if this is possible? |
|
Sorry for the delay. I've checked codspeed docs. Benchmarking can be done separately with pytest-codespeed. But codspeed's github action does not to support skipping uploading. Codspeed token seems not necessary for public repository. We can safely remove it. |
|
pypy test is failing. Because pyo3 has dropped support for pypy3.10. |
6eba1d0 to
947f356
Compare
Alright, this is blocked on CodSpeedHQ/action#146, then.
Sounds good. |
| needs: | ||
| - build-tarball | ||
| - build-wheels | ||
| - pre-setup # transitive, for accessing settings | ||
| runs-on: ubuntu-latest | ||
| if: >- | ||
| needs.pre-setup.outputs.upstream-repository-id == github.repository_id |
There was a problem hiding this comment.
Could you move this to a separate PR?
There was a problem hiding this comment.
Ah, never mind. It's kinda related but the PR title+description+change note should reflect this.
| uses: CodSpeedHQ/action@v4 | ||
| with: | ||
| mode: instrumentation | ||
| token: ${{ secrets.CODSPEED_TOKEN }} |
There was a problem hiding this comment.
Aparrently, they've implemented OIDC two days ago. Perhaps, we could configure it as a part of replacing this token: https://codspeed.io/docs/integrations/ci/github-actions/configuration#oidc-recommended
Co-authored-by: 🇺🇦 Sviatoslav Sydorenko (Святослав Сидоренко) <wk.cvs.github@sydorenko.org.ua>
947f356 to
6dc6b3e
Compare
webknjaz
left a comment
There was a problem hiding this comment.
I don't remember what I was waiting for. Let's just merge this. Thanks!
Backport to 3.13: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply f30f43e on top of patchback/backports/3.13/f30f43e61a015daa81db5220eb52c8201c71ffc9/pr-11737 Backporting merged PR #11737 into master
🤖 @patchback |
Backport to 3.14: 💔 cherry-picking failed — conflicts found❌ Failed to cleanly apply f30f43e on top of patchback/backports/3.14/f30f43e61a015daa81db5220eb52c8201c71ffc9/pr-11737 Backporting merged PR #11737 into master
🤖 @patchback |
|
@Cycloctane would you be able to handle the backports, please? |
|
@rodrigobnogueira perhaps you'd want to help out? |
Let's try 🙏 |
Forks cannot use codspeed account, which can make benchmark job in ci fail if aiohttp contributors want to run test workflow on their forks. This pr make unnecessary steps skip if triggered workflow is not in the main repository. aiohttp contributors can now run github action workflows to test changes in their forks without unnecessary errors. Co-authored-by: 🇺🇦 Sviatoslav Sydorenko <webknjaz@redhat.com> (cherry picked from commit f30f43e)
Forks cannot use codspeed account, which can make benchmark job in ci fail if aiohttp contributors want to run test workflow on their forks. This pr make unnecessary steps skip if triggered workflow is not in the main repository. aiohttp contributors can now run github action workflows to test changes in their forks without unnecessary errors. Co-authored-by: 🇺🇦 Sviatoslav Sydorenko <webknjaz@redhat.com> (cherry picked from commit f30f43e)
|
Done. Having problems running test |
…g in fork repositories (#11991) Co-authored-by: Rui Xi <Cycloctane@outlook.com> Co-authored-by: 🇺🇦 Sviatoslav Sydorenko <webknjaz@redhat.com>
…g in fork repositories (#11990) Co-authored-by: Rui Xi <Cycloctane@outlook.com> Co-authored-by: 🇺🇦 Sviatoslav Sydorenko <webknjaz@redhat.com> Co-authored-by: rodrigo.nogueira <rodrigo.nogueira@prf.gov.br>
What do these changes do?
Forks cannot use codspeed account, which can make benchmark job in ci fail if aiohttp contributors want to run test workflow on their forks. This pr make unnecessary steps skip if triggered workflow is not in the main repository.
Are there changes in behavior for the user?
aiohttp contributors can now run github action workflows to test changes in their forks without unnecessary errors.
Is it a substantial burden for the maintainers to support this?
Related issue number
Checklist
CONTRIBUTORS.txtCHANGES/folder