From b958a0ae507fca4394f2051610ae0b22baa4d88b Mon Sep 17 00:00:00 2001 From: Carlo van Driesten Date: Tue, 17 Nov 2026 09:15:06 +0100 Subject: [PATCH] CI: run CodSpeed and Codecov only on oxigraph/oxigraph 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 --- .github/workflows/tests.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3e1ce6d9f..5e3601929 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -487,7 +487,10 @@ jobs: - uses: ./.github/actions/setup-rust - run: python lints/test_debian_compatibility.py + # CodSpeed and Codecov only accept uploads from oxigraph/oxigraph. On a fork these + # jobs would run to the end (CodSpeed for hours) and then fail with 401 / "Repository not found". codspeed: + if: github.repository == 'oxigraph/oxigraph' runs-on: ubuntu-latest permissions: contents: read @@ -513,6 +516,7 @@ jobs: mode: simulation codspeed_testsuite: + if: github.repository == 'oxigraph/oxigraph' runs-on: ubuntu-latest permissions: contents: read @@ -532,6 +536,7 @@ jobs: mode: simulation codecov: + if: github.repository == 'oxigraph/oxigraph' runs-on: ubuntu-latest permissions: contents: read