-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Skip benchmarks in ci when running in fork repositories #11737
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
base: master
Are you sure you want to change the base?
Changes from all commits
812fd75
b705ecd
b2075ba
bd23653
c0ed62c
ca17839
eade60a
0b9f602
ae92397
5c1d66d
3eafe55
cdbcb60
6dc6b3e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,10 +23,33 @@ env: | |
| FORCE_COLOR: 1 # Request colored output from CLI tools supporting it | ||
| MYPY_FORCE_COLOR: 1 | ||
| PY_COLORS: 1 | ||
| UPSTREAM_REPOSITORY_ID: >- | ||
| 13258039 | ||
|
|
||
| permissions: {} | ||
|
|
||
| jobs: | ||
|
|
||
| pre-setup: | ||
| name: Pre-Setup global build settings | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| upstream-repository-id: ${{ env.UPSTREAM_REPOSITORY_ID }} | ||
| release-requested: >- | ||
| ${{ | ||
| ( | ||
| github.event_name == 'push' | ||
| && github.ref_type == 'tag' | ||
| ) | ||
| && true | ||
| || false | ||
| }} | ||
| steps: | ||
| - name: Dummy | ||
| if: false | ||
| run: | | ||
| echo "Pre-setup step" | ||
|
|
||
| lint: | ||
| permissions: | ||
| contents: read # to fetch code (actions/checkout) | ||
|
|
@@ -259,8 +282,11 @@ jobs: | |
|
|
||
| benchmark: | ||
| name: Benchmark | ||
| needs: gen_llhttp | ||
|
|
||
| needs: | ||
| - gen_llhttp | ||
| - pre-setup # transitive, for accessing settings | ||
| if: >- | ||
| needs.pre-setup.outputs.upstream-repository-id == github.repository_id | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 12 | ||
| steps: | ||
|
|
@@ -295,7 +321,6 @@ jobs: | |
| uses: CodSpeedHQ/action@v4 | ||
| with: | ||
| mode: instrumentation | ||
| token: ${{ secrets.CODSPEED_TOKEN }} | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 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 |
||
| run: python -Im pytest --no-cov --numprocesses=0 -vvvvv --codspeed | ||
|
|
||
|
|
||
|
|
@@ -317,9 +342,10 @@ jobs: | |
| pre-deploy: | ||
| name: Pre-Deploy | ||
| runs-on: ubuntu-latest | ||
| needs: check | ||
| # Run only on pushing a tag | ||
| if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') | ||
| needs: | ||
| - check | ||
| - pre-setup # transitive, for accessing settings | ||
| if: fromJSON(needs.pre-setup.outputs.release-requested) | ||
| steps: | ||
| - name: Dummy | ||
| run: | | ||
|
|
@@ -465,8 +491,13 @@ jobs: | |
|
|
||
| deploy: | ||
| name: Deploy | ||
| needs: [build-tarball, build-wheels] | ||
| 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 | ||
|
Comment on lines
+494
to
+500
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, never mind. It's kinda related but the PR title+description+change note should reflect this. |
||
|
|
||
| permissions: | ||
| contents: write # IMPORTANT: mandatory for making GitHub Releases | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| The benchmark CI job now runs only in the upstream repository -- by :user:`Cycloctane`. | ||
|
|
||
| It used to always fail in forks, which this change fixed. |
Uh oh!
There was an error while loading. Please reload this page.