@@ -104,6 +104,7 @@ jobs:
104104 {"environment":"fedora-podman-rootless","installer":"rpm","family":"features","package":"host-gateway","gateway":"openshell","runner":"ubuntu-24.04"},
105105 {"environment":"ubuntu-k3s","installer":"k3s","family":"features","package":"host-gateway","gateway":"tmachine","runner":"ubuntu-24.04"},
106106 {"environment":"ubuntu-k3s","installer":"k3s-ha","family":"features","package":"host-gateway","gateway":"tmachine","runner":"ubuntu-24.04"},
107+ {"environment":"ubuntu-docker-rootful","installer":"deb","family":"features","package":"connect-ssh-supervision","gateway":"openshell","runner":"ubuntu-24.04"},
107108 {"environment":"fedora-podman-rootful-keycloak","installer":"rpm","family":"features","package":"keycloak-provider-refresh","gateway":"openshell","runner":"ubuntu-24.04"},
108109 {"environment":"fedora-podman-rootless-keycloak","installer":"rpm","family":"features","package":"keycloak-provider-refresh","gateway":"openshell","runner":"ubuntu-24.04"},
109110 {"environment":"fedora-podman-rootful-userns-default","installer":"rpm","family":"drivers/podman","gateway":"openshell","runner":"ubuntu-24.04"},
@@ -160,24 +161,24 @@ jobs:
160161 with :
161162 cachix-auth-token : ${{ secrets.CACHIX_AUTH_TOKEN }}
162163
163- # integration-runner.yml skips the disk cache for ubuntu-k3s and doesn't say
164- # why, so the k3s environment skips it here too until that is understood.
165164 - name : Cache tmachine disks
166- if : matrix.environment != 'ubuntu-k3s'
167165 uses : actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
168166 with :
169- path : ~/.cache/tmachine
170- # tmachine keys its disk layers on a hash of the Ansible tree, the
167+ # Only the setup layers, which depend on the environment alone. The
168+ # install layers under disks/install hold this commit's build (and
169+ # on k3s, the gateway's credentials), so no later run could use them.
170+ path : ~/.cache/tmachine/disks/*.qcow2
171+ # tmachine keys its setup layers on a hash of the Ansible tree, the
171172 # environments' playbook lists and setup inputs (config.nix, and
172- # files such as the Keycloak realm file) and the cache versions in
173- # setup.rs and install.rs. actions/cache doesn't save after an
174- # exact key hit, so a key that misses one of those would rebuild the
175- # changed layers on every run. Environments share no layers, and
173+ # files such as the Keycloak realm file) and the cache version in
174+ # setup.rs. actions/cache doesn't save after an exact key hit, so a
175+ # key that misses one of those would rebuild the changed layers on
176+ # every run. Environments share no layers, and
176177 # only the first job to save a key gets its disks in, so each
177- # environment and installer needs its own key. No restore-keys
178- # fallback: restoring an older entry would carry its stale disks
179- # into the new one, which then only grows.
180- key : tmachine-${{ runner.os }}-${{ runner.arch }}-${{ matrix.environment }}-${{ matrix.installer }}-${{ hashFiles('tests/tmachine/ansible/**', 'tests/tmachine/config.nix', 'tests/tmachine/images.nix', 'tests/tmachine/src/qemu/setup.rs', 'tests/tmachine/src/qemu/install .rs', 'scripts/keycloak-realm.json') }}
178+ # environment needs its own key; its installers share it . No
179+ # restore-keys fallback: restoring an older entry would carry its
180+ # stale disks into the new one, which then only grows.
181+ key : tmachine-${{ runner.os }}-${{ runner.arch }}-${{ matrix.environment }}-${{ hashFiles('tests/tmachine/ansible/**', 'tests/tmachine/config.nix', 'tests/tmachine/images.nix', 'tests/tmachine/src/qemu/setup.rs', 'tests/tmachine/src/qemu/layer.rs', 'tests/tmachine/src/qemu/ansible_hash .rs', 'scripts/keycloak-realm.json') }}
181182
182183 - name : Download integration inputs
183184 uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
0 commit comments