Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions .github/test-suite-registry.json
Original file line number Diff line number Diff line change
Expand Up @@ -1842,9 +1842,14 @@
"id": "nixos.services.keyring-auto-unlock",
"paths": ["nixos/services/keyring-auto-unlock/keyring-auto-unlock.test.sh"],
"invocation": "bash nixos/services/keyring-auto-unlock/keyring-auto-unlock.test.sh",
"venue": null,
"status": "uncovered",
"notes": "Wiring attempted by #17799 (split from #17747): with dbus/keyutils/gnome-keyring installed the suite starts and its addressing leg passes, but leg 1's locked-fresh-default-collection state does not reproduce under Ubuntu's gnome-keyring (run 46531762776). Split to #17824 (locked-login fixture or deployed-package venue); do not wire it red.",
"venue": {
"workflow": ".github/workflows/nix-ci.yml",
"job_step": "keyring-auto-unlock / Run keyring auto-unlock acceptance tests (#17824)",
"state": "active",
"dispatchable": true
},
"status": "mapped",
"notes": "Wired by #17824 (via #17799, split from #17747): the suite runs in nix-ci's keyring-auto-unlock job with gnome-keyring/keyutils/dbus/busctl from the repo's pinned nixpkgs (the deployed package set), STASH_BIN/UNLOCK_BIN at the in-repo packaged scripts. Under Ubuntu's packaged gnome-keyring its leg-1 locked-fresh-default-collection state does not reproduce (run 46531762776), which is why the venue is the nix one.",
"related_issues": [17824, 17799, 17747, 10724]
},
{
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/nix-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,46 @@ jobs:
nix eval .#packages.x86_64-linux.mcpx.drvPath
nix eval .#apps.x86_64-linux.format-check.program

# The keyring auto-unlock acceptance suite (#17824, split from
# #17747 via #17799) needs a real Secret Service whose fresh-state
# behaviour matches the deployed system: under Ubuntu's packaged
# gnome-keyring its leg 1 (locked fresh default collection) does not
# reproduce (run 46531762776), so the suite runs here with
# gnome-keyring/keyutils/dbus/busctl taken from this repo's pinned
# nixpkgs — the deployed package set. The suite self-wraps in
# dbus-run-session and drives the in-repo packaged scripts via its
# STASH_BIN/UNLOCK_BIN env knobs.
keyring-auto-unlock:
name: "basic: keyring auto-unlock (nix venue)"
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- uses: DeterminateSystems/nix-installer-action@3138316df39ed29be04236d7ffc686fa525866aa # v23
# The nix dbus-daemon reads its session config from the
# compiled-in /etc/dbus-1/session.conf, which the runner's /etc
# does not carry; install the pinned package's own config there
# (its servicedir entries are absolute store paths, and the
# suite starts gnome-keyring-daemon directly rather than via
# bus activation, so no other host dbus state is needed).
- name: Install the pinned session bus config (#17824)
run: |
dbus_out=$(nix build --no-link --print-out-paths --inputs-from . nixpkgs#dbus.out)
sudo mkdir -p /etc/dbus-1
sudo cp "$dbus_out/share/dbus-1/session.conf" /etc/dbus-1/session.conf
# The packaged session.conf includes /etc/dbus-1/session.conf
# (the host config it normally defers to); installed AT that
# path the include is circular, so drop the self-include.
sudo sed -i '\|/etc/dbus-1/session\.conf|d' /etc/dbus-1/session.conf
- name: Run keyring auto-unlock acceptance tests (#17824)
env:
STASH_BIN: ${{ github.workspace }}/nixos/services/keyring-auto-unlock/keyring-password-stash.sh
UNLOCK_BIN: ${{ github.workspace }}/nixos/services/keyring-auto-unlock/keyring-auto-unlock.sh
run: |
test -f nixos/services/keyring-auto-unlock/keyring-auto-unlock.test.sh
nix shell --inputs-from . nixpkgs#gnome-keyring nixpkgs#keyutils nixpkgs#dbus nixpkgs#systemd nixpkgs#coreutils nixpkgs#gnugrep nixpkgs#gnused nixpkgs#gawk \
--command bash nixos/services/keyring-auto-unlock/keyring-auto-unlock.test.sh

# ci-fix: when any main job above fails, dispatch a pm-dispatch
# ci-fix task from inside this failing run (via the thin
# pm-dispatch-ci-fix wrapper over pm-dispatch-task). This replaces
Expand Down
Loading