Skip to content

Use optional Ubuntu snapshot mirror in module tests - #428

Merged
PiotrKorkus merged 2 commits into
mainfrom
ci-ubuntu-snapshot-mirror
Oct 30, 2026
Merged

PiotrKorkus merged 2 commits into
mainfrom
ci-ubuntu-snapshot-mirror

Conversation

@LittleHuba

Copy link
Copy Markdown
Contributor

snapshot.ubuntu.com is unreliable (503s, e.g. https://github.com/eclipse-score/reference_integration/actions/runs/41019988521). If the UBUNTU_SNAPSHOT_MIRROR_URL secret is set, the module tests job now configures a Bazel --downloader_config that tries the StableBuild mirror first and falls back to snapshot.ubuntu.com. Without the secret nothing changes.

  • module_tests.yml: declare the optional secret and add the config step (written to ~/.bazelrc so it applies to every module workspace).
  • test_and_docs.yml: pass secrets to the reusable workflow.

Same approach as eclipse-score/communication's prepare_bazel_environment action.

Evidence

Run via workflow_dispatch on the PR branch of #427 (which contains this change; pull_request_target would use main's workflow): https://github.com/eclipse-score/reference_integration/actions/runs/41021745241

  • The Configure optional Ubuntu snapshot mirror for Bazel downloader step ran with the secret set in the module jobs.
  • No snapshot.ubuntu.com download failures/503s in the finished jobs (the earlier pull_request_target run had them).
  • Remaining failures in that run are unrelated (e.g. libpfm sourceforge download, devcontainer download, config_management BUILD error).

…ests

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

The created documentation from the pull request is available at: docu-html

@PiotrKorkus
PiotrKorkus merged commit 3668dc4 into main Oct 30, 2026
20 of 35 checks passed
@PiotrKorkus
PiotrKorkus deleted the ci-ubuntu-snapshot-mirror branch October 30, 2026 09:07
@AlexanderLanin

Copy link
Copy Markdown
Member

@LittleHuba why do you treat UBUNTU_SNAPSHOT_MIRROR_URL as a secret and not as a variable?

@LittleHuba

Copy link
Copy Markdown
Contributor Author

Because that mirror is traffic limited to 1GB per month. So leaking this variable might make us hit the limit faster.

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.

3 participants