Two docs sites, from one Docs workflow (`.github/workflows/docs.yml`):
- **devvm.dev** shows the latest release's docs. The `release` job
builds a tag's `docs/` and the `deploy` job deploys it to GitHub Pages
(`github-pages` environment), on a published release that isn't a
prerelease, and on a `workflow_dispatch` with `site=devvm.dev` and `ref`
(a release tag; empty means the latest release, from `gh release view`).
The tag is checked against `^v[0-9]+\.[0-9]+\.[0-9]+$` through `env:`
before it's used, and checked out as `refs/tags/<tag>`. Pushes to main
no longer deploy devvm.dev.
- **next.devvm.dev** shows main's docs. On pushes to main that touch the
docs (the same paths anchor), or a dispatch with `site=next.devvm.dev`,
`check` lints and builds, then `next` builds with `hugo -s docs --minify
--config hugo.yaml,next.yaml`, checks out devvmhq/docs-next with
`DOCS_NEXT_DEPLOY_KEY` (environment `docs-next`, only after the build),
replaces everything but README.md, and commits `Build from devvm <short
sha>` as github-actions[bot], skipping an unchanged build. Its
concurrency group keeps pushes from racing.
- `docs/next.yaml` sets `baseURL: https://next.devvm.dev/`, Hextra's
`params.banner` (a note that links devvm.dev), and `noindex` both as a
site param and through `cascade`, so Hextra's head writes `noindex,
nofollow` on every page. `docs/layouts/robots.txt` adds `Disallow: /`
when the site's `noindex` is set. The build stays in Hugo's production
environment, so Hextra's minified, fingerprinted assets are the same as
devvm.dev's.
- PRs get the same lint and build as before, and nothing runs with an
environment or a secret on `pull_request`. Permissions: `contents: read`
at the top; only `deploy` has `pages: write` and `id-token: write`. The
publishing jobs set `cache: false` on mise-action (zizmor's
cache-poisoning, now that the workflow publishes on `release`), and so
does `check`.
- Docs: Contributing's Maintaining has a new section, The docs sites
(what deploys each, the hand redeploy, the key and environments,
Cloudflare Pages serving devvmhq/docs-next); Contributing's two mentions
of the deploy point at it; Upgrading's Trying a prerelease links
next.devvm.dev.
Co-authored-by: Claude Opus 5.5 <[email protected]>
## What this changes
The Docs workflow deploys from `main` only when a push changes the docs:
`docs/**`, Markdown files, the Vale and markdownlint config, or
`docs.yml` itself. Both triggers use one path list (a YAML anchor), so
they can't drift apart. `workflow_dispatch` still deploys by hand.
Why it's safe:
- The site is built from `docs/` alone; Hugo mounts nothing outside it.
- The generated CLI reference is in `docs/content/docs/cli/`, and
`TestReferenceIsCurrent` makes a help change commit it there, so those
pushes still deploy.
- The Hextra theme's version is in `docs/go.mod`, so its updates still
deploy.
- CI's `mise run lint` runs the docs checks (Vale, markdownlint,
`TestDocLinks`, `TestCommandLines`) on every code change, so skipping
this workflow loses no checking.
Co-authored-by: Claude Opus 5.5 <[email protected]>
Mondays, scripts/bump.sh --check runs and its outdated lines go into one
open issue, "Pinned versions to bump", created or updated with gh and
--body-file; with none left the issue is closed. bump.sh's output passes
through files only. maintaining.md says what to do with it.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
CI's e2e workflow installs Lima 2.3.0, its tarball's checksum taken from the release's SHA256SUMS, checked against the sha256 Lima's release notes publish. scripts/bump.sh e2e-lima moves that pin the same way. devvm's doctor, install.sh, the README and the Lima page ask for Lima 2.2 or newer, compared by major and minor.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
TestE2E already set up the sandbox, slots, locks and flags itself, so the
898-line script only handed over. The run is now `mise run e2e -- FLAGS`
(go test -tags e2e from tests/e2e, CGO_ENABLED=0) with the same flags:
--only, --from, --clean, --every-feature, --slots, --slot, --newest-base,
--golden, plus --reuse.
- options: the flags named as the script's options; the hand-over flags
(lock-holder, count, total, started, summary) and the ported/unported
split are gone.
- e2eUbuntuRelease, a const in sandbox_test.go, holds the Ubuntu pin;
scripts/bump.sh e2e-ubuntu moves it (get_const), and TestE2EUbuntuPins,
bump.txtar and the E2E workflow read it there.
- From the script into Go: the OpenSSL-not-LibreSSL host check, and
--newest-base's start line and its UPSTREAM DRIFT summary.
- The script's leftover bash helpers (perl vm_state, no_leak, ca_*,
lima_listens, the retry list, its heartbeat) are gone with it.
- mise's e2e:go task merges into e2e; TestCommandLines drops its $D rule.
- Docs (contributing, testing, maintaining, internals) and AGENTS.md name
mise run e2e; testing.md's "Porting a section" becomes "Adding a section".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Started by hand only. QEMU and /dev/kvm as Lima's CI sets them up, Lima at a
pinned version and checksum, Ubuntu's cloud image and the built images cached,
up to three attempts, and the logs uploaded on failure.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A scheduled workflow (Mondays, and by hand) lists every func Fuzz in the
tests, the proxy's first, and fuzzes each for two minutes in a matrix; a
failing input is uploaded as crash-<target>. The testing page says how it
becomes a seed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
TestExports counted 30 days from a fixed local date, so it failed in UTC
(CI) and passed in Pacific time, where the range crosses a DST change and
is an hour short. It now counts from export b's parsed date: at exactly
30d both exports are that old, a second short only a, and olderThan 0
returns both.
The audit of internal/ and cmd/ found nothing else that depends on the
zone or today's date: export names are written and parsed in local time
(now documented at the parse and on the coding agents page: an age is
elapsed time, so across DST it's an hour off wall-clock days); run-log
names are local but pruning goes by mtime; the network log, image
versions, logins and Lima's start marker are UTC; retention, tools'
daily check and the caches tests count from instants; testscript
fixtures are dated far in the past or the future.
CI runs mise run test a third time on Linux with TZ=America/Los_Angeles,
and contributing/testing.md says how to check other zones.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tests assumed a macOS host with 4 or more CPUs:
- size: the stub VM has 2 CPUs, which any host running the tests has
- ls, images: smolvm's --state-dir on Linux
- docker: .git protection is off on Linux
- the limactl stub's delete forgets the VM's port forwards and ssh port,
as Lima does, so from's second conversion VM is configured again
- TestStartForwarder confines Lima's start as the host does (no
sandbox-exec on Linux)
- TestProcessArgs runs sh, which ignores the extra arguments GNU sleep
exits on
lint:code runs actionlint and zizmor (offline) on the workflows; ci.yml's
paths are written out, without a YAML anchor, and the deploy job's
permissions say why.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reading the Pages site needs pages: read in a private repository; the
site's address is baseURL in docs/hugo.yaml, so the step isn't needed.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The site's base URL, the doc links devvm prints, the README, CONTRIBUTING,
SECURITY and the home page recording point at https://devvm.dev; the local
server is at http://localhost:1313/.
lint runs lint:code (golangci-lint, shellcheck) and lint:docs (markdownlint,
Vale, lychee, TestDocLinks). CI skips changes only to docs/ and Markdown
files, except the generated CLI reference; the Docs workflow lints and
builds the site on pull requests touching the docs and deploys from main.
mise-action goes to v5.2.4.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Hugo site in docs/ with the Hextra theme as a pinned Hugo module, a
home page and the contributing page, which takes over building, tools,
tests and stubs from the README and adds writing docs. Vale styles for
the writing rules, markdownlint, Vale and lychee --offline in mise run
lint, and a Pages workflow.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pin the dev tools in mise.toml and mise.lock. Add the fmt, lint, test,
vuln, docs and e2e tasks, the golangci-lint v2 config with the
dependency allowlist and print/exit bans, and a CI workflow running
lint and test on macOS and Linux. Tighten test file permissions for gosec.
Co-Authored-By: Claude Opus 5.5 <[email protected]>