this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: fix hosted e2e workflow flake path

Khue Doan 89d8e52f 7a36331e

+4 -7
+1 -4
.github/workflows/test-e2e.yml
··· 44 44 extra-conf: | 45 45 experimental-features = nix-command flakes 46 46 47 - - name: Enable Nix binary cache 48 - uses: DeterminateSystems/magic-nix-cache-action@v8 49 - 50 47 - name: Show virtualization support 51 48 run: | 52 49 ls -l /dev/kvm || true ··· 55 52 - name: Run end-to-end test 56 53 run: | 57 54 mkdir -p "$NIXIE_E2E_WORKDIR" 58 - sudo env PATH="$PATH" NIXIE_E2E_WORKDIR="$NIXIE_E2E_WORKDIR" "$(command -v nix)" run -L ./examples#e2e 55 + sudo env PATH="$PATH" NIXIE_E2E_WORKDIR="$NIXIE_E2E_WORKDIR" "$(command -v nix)" run --print-build-logs ./examples#e2e 59 56 60 57 - name: Relax permissions on artifacts 61 58 if: always()
+3 -3
tests/e2e/run.py
··· 155 155 return key_path, pubkey 156 156 157 157 158 - def write_runtime_flake(workdir, pubkey): 159 - flake_dir = workdir / "runtime-flake" 158 + def write_runtime_flake(pubkey): 159 + flake_dir = Path(tempfile.mkdtemp(prefix="nixie-e2e-flake-")) 160 160 flake_dir.mkdir(parents=True, exist_ok=True) 161 161 162 162 key_module = flake_dir / "ssh-key.nix" ··· 277 277 processes = [] 278 278 279 279 key_path, pubkey = generate_ssh_keypair(workdir) 280 - runtime_flake = write_runtime_flake(workdir, pubkey) 280 + runtime_flake = write_runtime_flake(pubkey) 281 281 282 282 hosts_path = Path(os.environ["NIXIE_REPO"]) / "tests" / "e2e" / "hosts.json" 283 283 dnsmasq_conf = workdir / "dnsmasq.conf"