mirror of
https://github.com/devvmhq/devvm.git
synced 2026-12-01 06:23:17 -10:00
scripts/bump.sh's safe bumps, patches and minors: - images: mise 2026.11.10 -> 2026.11.14 (base and the host's, with internal/tools/mise.go's checksums), nix 2.35.6 -> 2.36.0, Docker's buildx 0.39.0 -> 0.39.1 and model 1.2.9 -> 1.2.10 - e2e: the lock's pnpm 12.21.0 -> 12.23.0, bun 1.4.4 -> 1.4.5, codex 0.169.1 -> 0.171.0, opencode 2.3.2 -> 2.4.1, pi 1.5.2 -> 1.6.0; --from's node:24 by its new digest - dev-tools: nilaway to its newest commit's pseudo-version (0.0.0-20261124161746-91ad9bf5d8e6), goreleaser 2.20.3, vale 3.28.1, markdownlint-cli2 0.24.2, whose lock folder moves to .mise/locks/markdownlint-cli2/0.24.2/, zizmor 1.33.1, with mise.lock - ci: the workflows' mise 2026.11.14, jdx/mise-action v5.3.0, amannn/action-semantic-pull-request v6.1.4 The e2e lock keeps Claude Code at 2.1.327: 2.1.328 made its sign-in link much shorter, without the state parameter that the network section's login check reads to answer it, so with 2.1.330 that check and the refresh after it fail. devvm itself never reads the link. mise's and Nix's new checksums match upstream's SHASUMS256.txt and .sha256 files; buildx and model are apt packages from Docker's signed repository. Cursor's CLI stays on 2026.11.17-f532c45: 2026.11.22-e9042b2 is out, and it moves only when named. pflag stays held below 1.1.0 and Node on 24. The new nilaway no longer reports three of agentsave.go's bounds findings, so their lines leave testdata/nilaway-baseline.txt, which nilaway and nilaway:linux fail on while they're stale. The CHANGELOG's Unreleased has the pins line, and the 0.2.0 page a section for them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
101 lines
3.9 KiB
YAML
101 lines
3.9 KiB
YAML
name: E2E
|
|
|
|
# A trial: mise run e2e -- --only project on a Linux runner, whose KVM runs
|
|
# Lima's QEMU VMs. Started by hand (Actions > E2E > Run workflow).
|
|
on:
|
|
workflow_dispatch:
|
|
# schedule:
|
|
# - cron: "41 5 * * 2"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: e2e-${{ github.ref }}
|
|
cancel-in-progress: false
|
|
|
|
env:
|
|
LIMA_VERSION: 2.3.0
|
|
# lima-$LIMA_VERSION-Linux-x86_64.tar.gz in the release's SHA256SUMS
|
|
# (scripts/bump.sh e2e-lima).
|
|
LIMA_SHA256: cc8ba97f1c801b899f7c9eda9919dfc4ce4fa2c140c53e5add15aa2d0a1936f9
|
|
|
|
jobs:
|
|
project:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 150
|
|
steps:
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
# As Lima's own CI does (hack/install-qemu.sh): QEMU, and /dev/kvm
|
|
# made the runner user's, since a new kvm group needs a new login.
|
|
- name: Install QEMU and enable KVM
|
|
run: |
|
|
set -euo pipefail
|
|
sudo apt-get update
|
|
sudo apt-get install -y --no-install-recommends ovmf qemu-system-x86 qemu-utils ipxe-qemu netcat-openbsd
|
|
sudo modprobe kvm
|
|
sudo chown "$USER" /dev/kvm
|
|
qemu-system-x86_64 --version
|
|
# As install.sh does, from Lima's release tarball, here at a pinned
|
|
# version and checksum.
|
|
- name: Install Lima
|
|
run: |
|
|
set -euo pipefail
|
|
f="lima-$LIMA_VERSION-Linux-x86_64.tar.gz"
|
|
curl -fsSL --retry 3 -o "$RUNNER_TEMP/$f" "https://github.com/lima-vm/lima/releases/download/v$LIMA_VERSION/$f"
|
|
echo "$LIMA_SHA256 $RUNNER_TEMP/$f" | sha256sum -c -
|
|
mkdir -p "$HOME/.local"
|
|
tar -xzf "$RUNNER_TEMP/$f" -C "$HOME/.local"
|
|
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
|
|
"$HOME/.local/bin/limactl" --version
|
|
- uses: jdx/mise-action@924e7c586e33d7d4bae9c14e26c5d22e2beb6e78 # v5.3.0
|
|
with:
|
|
version: 2026.11.14
|
|
# devvm's image keys are computed while it builds, so the cache key
|
|
# hashes what goes into them that this checkout fixes: assets/, the
|
|
# pinned tool lock, e2e's Ubuntu release and Lima's version. A stale
|
|
# image restored is harmless, as devvm builds again what doesn't match.
|
|
- id: keys
|
|
name: Cache keys
|
|
run: |
|
|
set -euo pipefail
|
|
release=$(sed -n 's/^const e2eUbuntuRelease = "\(.*\)"$/\1/p' tests/e2e/sandbox_test.go)
|
|
test -n "$release"
|
|
echo "ubuntu=$release" >> "$GITHUB_OUTPUT"
|
|
- name: Cache Ubuntu's cloud image
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
path: ~/.cache/lima/download
|
|
key: e2e-ubuntu-x86_64-${{ steps.keys.outputs.ubuntu }}
|
|
- name: Cache images
|
|
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
|
|
with:
|
|
path: |
|
|
~/.lt-e2e-go
|
|
/tmp/devvm-go-e2e/data/devvm
|
|
!/tmp/devvm-go-e2e/data/devvm/logs
|
|
!/tmp/devvm-go-e2e/data/devvm/run
|
|
!/tmp/devvm-go-e2e/data/devvm/secrets
|
|
!/tmp/devvm-go-e2e/data/devvm/vms
|
|
key: e2e-images-x86_64-lima${{ env.LIMA_VERSION }}-${{ steps.keys.outputs.ubuntu }}-${{ hashFiles('assets/**', 'tests/e2e-mise.lock') }}
|
|
# Up to three attempts, as Lima's CI gives its VM tests.
|
|
- name: mise run e2e -- --only project
|
|
uses: nick-fields/retry@ad984534de44a9489a53aefd81eb77f87c70dc60 # v4.0.0
|
|
with:
|
|
timeout_minutes: 60
|
|
retry_on: error
|
|
max_attempts: 3
|
|
command: mise run e2e -- --only project
|
|
- if: failure()
|
|
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2
|
|
with:
|
|
name: e2e-logs
|
|
path: |
|
|
/tmp/devvm-go-e2e/*.log
|
|
/tmp/devvm-go-e2e/data/devvm/logs/
|
|
~/.lt-e2e-go/*/serial*.log
|
|
~/.lt-e2e-go/*/ha.stderr.log
|
|
if-no-files-found: ignore
|