Skip to content

CI: run CodSpeed and Codecov only on oxigraph/oxigraph (fork-only) - #2

Merged
jdsika merged 1 commit into
mainfrom
ci/skip-codspeed-codecov-on-fork
Nov 17, 2026
Merged

jdsika merged 1 commit into
mainfrom
ci/skip-codspeed-codecov-on-fork

Conversation

@jdsika

@jdsika jdsika commented Nov 17, 2026

Copy link
Copy Markdown

Fork-only change. Do not upstream.

Makes the CodSpeed and Codecov jobs run only on oxigraph/oxigraph, so CI on ASCS-eV/oxigraph is 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):

Job What ran Failure
codspeed build + benchmarks, 3h16m Failed to retrieve upload data: 401 Unauthorized
codspeed_testsuite build + suite 401 Unauthorized after 4m54s
codecov cargo llvm-cov succeeded Repository not found

So every PR on the fork burns ~3.5 runner-hours and ends red, while all 39 other jobs pass.

Change

.github/workflows/tests.yml: add if: github.repository == 'oxigraph/oxigraph' to codspeed, codspeed_testsuite, codecov (+5 lines including a comment). On oxigraph/oxigraph the condition is true, so behaviour there is unchanged. No other job has needs: 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-pattern keeps that branch a clean one-commit diff that can be sent upstream unchanged.

Risk to be aware of

Once this is on fork main, fork main is no longer a pure mirror of upstream:

  • GitHub "Sync fork" stops being a fast-forward.
  • A feature branch cut from fork main would carry this commit into an upstream PR. Cut upstream-bound branches from upstream/main.

Expected result on this PR

codspeed, codspeed_testsuite, codecov show skipped; everything else green, including the workflow-lint job.

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]>
@jdsika
jdsika merged commit b958a0a into main Nov 17, 2026
42 checks passed
@jdsika jdsika mentioned this pull request Nov 17, 2026
4 tasks
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.

1 participant