Repository navigation
CI: run CodSpeed and Codecov only on oxigraph/oxigraph (fork-only) - #2
Merged
Merged
Conversation
Both services authenticate with an OIDC token for a project registered to oxigraph/oxigraph. On a fork the benchmarks and coverage run to the end and the upload is then rejected: CodSpeed after ~3h with "401 Unauthorized", Codecov with "Repository not found". Every pull request on the fork therefore shows red CI although all builds and tests pass. Skip the three jobs unless the repository is oxigraph/oxigraph. On oxigraph/oxigraph itself the condition is true, so nothing changes. Fork-only change. It must not be included in a pull request sent to oxigraph/oxigraph: cut feature branches from upstream/main. Signed-off-by: Carlo van Driesten <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fork-only change. Do not upstream.
Makes the CodSpeed and Codecov jobs run only on
oxigraph/oxigraph, so CI onASCS-eV/oxigraphis not red for reasons unrelated to the code under review.Why
Both services authenticate with an OIDC token for a project registered to
oxigraph/oxigraph. On this fork the jobs do all the work and then get rejected at the upload step (run 43914467096 on #1):codspeedFailed to retrieve upload data: 401 Unauthorizedcodspeed_testsuite401 Unauthorizedafter 4m54scodecovcargo llvm-covsucceededRepository not foundSo every PR on the fork burns ~3.5 runner-hours and ends red, while all 39 other jobs pass.
Change
.github/workflows/tests.yml: addif: github.repository == 'oxigraph/oxigraph'tocodspeed,codspeed_testsuite,codecov(+5 lines including a comment). Onoxigraph/oxigraphthe condition is true, so behaviour there is unchanged. No other job hasneeds:on these three.Checked locally: YAML parses, 30 jobs, exactly these 3 carry the guard, no CRLF introduced.
Why a separate PR / branch
Keeping this out of
feat/count-quads-for-patternkeeps that branch a clean one-commit diff that can be sent upstream unchanged.Risk to be aware of
Once this is on fork
main, forkmainis no longer a pure mirror of upstream:mainwould carry this commit into an upstream PR. Cut upstream-bound branches fromupstream/main.Expected result on this PR
codspeed,codspeed_testsuite,codecovshow skipped; everything else green, including the workflow-lint job.