Skip to content

ci: trust the Postgres repo with a signed-by key, not apt-key - #769

Merged
MoonBoi9001 merged 3 commits into
mainfrom
mb9/run-rust-tests-on-ubuntu-24-04
Oct 30, 2026
Merged

MoonBoi9001 merged 3 commits into
mainfrom
mb9/run-rust-tests-on-ubuntu-24-04

Conversation

@MoonBoi9001

@MoonBoi9001 MoonBoi9001 commented Oct 30, 2026 •

Copy link
Copy Markdown
Member

GitHub's ubuntu-latest runner moved to Ubuntu 26.04, which has no apt-key, so the Rust test job fails at the step that adds the Postgres package repo and no integration test runs on any PR. This trusts that repo's key through a signed-by keyring instead, and puts the binaries of the Postgres 17 the job installs on the test PATH, rather than those of whichever cluster is listed first.

GitHub's ubuntu-latest runner moved to Ubuntu 26.04, which has no apt-key, so the step that
adds the Postgres package repo for the integration tests fails before any of them run.
Pinning the job to Ubuntu 24.04 only put off the failure, since apt-key is gone from newer
images. The job moves back to ubuntu-latest and trusts the Postgres repo's key directly.
The job put the binaries of whichever Postgres cluster was listed first on its PATH, which on a
runner with its own Postgres could be another version. It now uses 17's, and stops if missing.
@MoonBoi9001 MoonBoi9001 changed the title ci: run the Rust tests on Ubuntu 24.04, which still has apt-key ci: trust the Postgres repo with a signed-by key, not apt-key Oct 30, 2026
@MoonBoi9001
MoonBoi9001 marked this pull request as ready for review October 30, 2026 14:50
@MoonBoi9001
MoonBoi9001 merged commit 24a8b50 into main Oct 30, 2026
12 checks passed
@MoonBoi9001
MoonBoi9001 deleted the mb9/run-rust-tests-on-ubuntu-24-04 branch November 5, 2026 10:35
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