Skip to content

devkit-smoke-test has no direnv-mode lane — two blocking rc bugs escaped to consumers #1194

Closed

Description

@c-vigo

Description

The 1.4.0 release cycle cut four release candidates; two of the three blocking findings were invisible to the pre-consumer smoke test because vig-os/devkit-smoke-test deploys in container mode only, and both bugs live on the direnv CI code path:

Finding Mode affected Caught by smoke test?
#1187 (fromJSON manifest) all modes (manifest load) yes
#1189 (shellHook banner corrupts GITHUB_ENV) direnv only no — surfaced only on consumer PRs
#1192 (install-nix-action aborts on preinstalled Nix) direnv + self-hosted no — surfaced only on exo-fleet

Both #1189 and #1192 are in setup-devkit-toolchain's if: inputs.mode == 'direnv' branch, which the container-mode smoke consumer never executes. They were only found once real consumers (org-config, sync-issues-action, exo-fleet) ran their CI — i.e. after the RC was published and hand-validated. That is exactly the round-trip the smoke test exists to prevent.

Suggested fix

Add direnv-mode coverage to the pre-consumer gate. Options (pick one):

  1. A direnv lane in devkit-smoke-test — a second deploy/CI job (or matrix leg) that scaffolds --mode direnv and runs the managed ci.yml on a hosted runner, so the setup-devkit-toolchain direnv path (Detect host Nix → install/config → dev-shell → shellHook env forward) executes every release.
  2. A dedicated direnv smoke consumer repo mirroring devkit-smoke-test's role for the host modes.

A self-hosted-runner leg (the #1173 path that hit #1192) is harder to add to a public gate; at minimum document that DEVKIT_CI_RUNNER + preinstalled-Nix is exercised only by downstream consumers, or add a job that fakes a preinstalled-Nix runner (Nix already on PATH) to force the host-Nix branch.

Impact

Process gap, not a runtime bug — but it is the direct cause of two extra RC round-trips (rc2, rc3→rc4) this cycle. Highest-value item in the post-1.4.0 cleanup.

Refs: rollout validation PRs vig-os/org-config#54, vig-os/sync-issues-action#143, exo-pet/exo-fleet#230; findings #1189, #1192.

Activity

  1. added
    chore
    priority:high
    area:ci
    effort:medium
    area:testing
    on Jul 17, 2026
  2. c-vigo commented on Jul 21, 2026

    @c-vigo
    ContributorAuthor

    Done. Direnv-mode lane added to the pre-consumer gate (option 1 from the issue), plus a fake-preinstalled-Nix leg covering the #1192 host-Nix branch on a hosted runner:

    • devkit-smoke-test#286 (merged @a45009eb): .github/workflows/direnv-smoke.yml — 2-leg matrix scaffolds a throwaway --mode direnv workspace and invokes the scaffolded setup-devkit-toolchain from the same call site as the managed ci.yml. Live proof (run 29813431342): fresh-install leg takes the install-nix-action branch; preinstalled leg logs the setup-devkit-toolchain direnv path breaks on self-hosted runners with preinstalled Nix #1192 detect/configure host-Nix branch; both verify the setup-devkit-toolchain env forward corrupts GITHUB_ENV via shellHook stdout banner #1189 shellHook→GITHUB_ENV forward (30 vars) with subsequent steps running off the forwarded env.
    • devkit#1234 (merged to dev): persists the workflow in the assets/smoke-test/ overlay (repository-dispatch.yml pattern) so --smoke-test deploys don't wipe it, extends the overlay actionlint bats test to cover it, and documents the lane in the overlay README.

    Follow-up filed: #1235 (install.sh --docker should chown scaffold output before the git phase — root cause of the lane's chown+git-init workaround). Note: the self-hosted DEVKIT_CI_RUNNER + genuinely-preinstalled-Nix path remains exercised only by downstream consumers; the fake-preinstalled leg covers the code branch itself.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ciarea:testingchoreeffort:mediumpriority:high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions