Repository navigation
build(devkit): adopt vigOS devkit 1.1.0 (direnv) — rollout pilot - #32
Merged
Merged
Conversation
Replace the legacy apt/Debian-based .devcontainer/ with the devkit 1.1.0 direnv scaffold: Nix flake + .envrc, mode-aware CI, and the shared standards kit. Wire the Node toolchain for this JS action -- nodejs in the flake dev-shell and npm-mapped justfile.project recipes (sync/lint/test/build/ bundle). Opt into the flake-generated pre-commit config (flake-sourced tooling, NixOS-safe typos) and restore the Node/Action .gitignore entries the Python-only scaffold dropped (dist/index.js stays committed). Refs: #29
commit-action is a TypeScript action with no Python code; point the CodeQL language matrix at javascript-typescript (+ actions). The repo's GitHub default CodeQL setup was disabled so this advanced config is authoritative (the two cannot coexist). Refs: #29
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
3 tasks
The sync/lint/test recipes were mapped to npm, but `update` still ran `uv lock --upgrade` unconditionally, which fails on a Node repo. Branch on package.json -> `npm update`. Refs: #29
This was referenced Jul 14, 2026
This was referenced Jul 14, 2026
c-vigo
added a commit
that referenced
this pull request
Jul 14, 2026
## Unblock `Sync main to dev` `dev` is stuck 4 commits behind `main` and cannot catch up: the sync workflow has been failing on every push to `main` since #32. Failing run: https://github.com/vig-os/commit-action/actions/runs/29314999211 ### The bug The `sync` job checks out `dev`, then invokes a **local** composite action: ```yaml - name: Checkout dev with: ref: dev # ← workspace is now dev's tree - name: Set up devkit toolchain uses: ./.github/actions/setup-devkit-toolchain # ← resolved from dev's tree ``` GitHub resolves `uses: ./…` against the **checked-out workspace**, not the workflow's ref. `.github/actions/` landed on `main` with the devkit 1.1.0 adoption (#32) and does not exist on `dev`, so the step dies: ``` Can't find 'action.yml', 'action.yaml' or 'Dockerfile' under '…/.github/actions/setup-devkit-toolchain'. ``` `resolve-toolchain` and `check` pass because they check out the **default** ref (`main`), where the action does exist. Only `sync` pins `dev`. This is a **bootstrap deadlock** — the only thing that would carry the action onto `dev` is the very sync PR this job can no longer open. It cannot self-heal. ### The fix Drop `ref: dev`, so the workspace is the triggering `main` SHA where the action is guaranteed to exist. Nothing downstream reads dev's **working tree**. Every subsequent step already operates on remote refs or the API: | Step | Operates on | |---|---| | Re-check if dev is still behind main | `git fetch origin main dev` → `git rev-list --count origin/main ^origin/dev` | | Detect merge conflicts | `git merge-tree --write-tree origin/dev origin/main` | | Create sync branch from main | `git checkout -b "$SYNC_BRANCH" origin/main` | | Existing-PR check · stale-branch cleanup · Create PR · auto-merge | `gh` / REST API | `fetch-depth: 0` and the commit-app token are unchanged, so merge-base and push behavior are identical. The job now builds against the *newer* tree — the one whose actions it actually references. ### Upstream This file is the devkit scaffold template **verbatim** (`diff` against `assets/workspace/.github/workflows/sync-main-to-dev.yml` on `devkit@main` is empty), so the defect ships to every scaffolded repo. The devkit's own copy has the same pattern with `./.github/actions/setup-env` — latent, one rename away from firing. Filed upstream as **vig-os/devkit#1034**. This PR is the **local** fix so development can continue without waiting on a devkit release. A header comment and a step comment mark the divergence so a future re-scaffold does not silently revert it. ### Verification - `just precommit` fully green locally (incl. `yamllint --strict`, `check-yaml`). - Behavioral proof is the next push to `main`: merging this PR itself triggers `Sync main to dev`, which should now open the `chore/sync-main-to-dev-*` PR that finally brings `.github/actions/` onto `dev`. Refs: #36
c-vigo
added a commit
to vig-os/devkit
that referenced
this pull request
Jul 14, 2026
) ## Summary Bundles the two pilot-surfaced "CI layer is Python-shaped" bugs (both from vig-os/commit-action#32) — same theme, one CI run. ### #1028 — gate python/uv env in `setup-devkit-toolchain` All three Python-assuming spots now gate on `pyproject.toml` at the repo root: `UV_PROJECT_ENVIRONMENT` (container branch), the Nix-CPython `$GITHUB_PATH` filter, and the `UV_PYTHON_DOWNLOADS_JSON_URL` forward (direnv branch). On a non-Python consumer the composite is a no-op for those steps — and the Nix python stays on PATH, removing the latent footgun. `DEVKIT_MODULES` was verified still Reserved/empty in `.vig-os`, so file presence is the gating signal (the issue's primary suggestion). The devkit itself has a root `pyproject.toml`, so its own CI is unchanged. ### #1029 — language-neutral release pipeline with opt-in bundle - Neutral labels: "Sync Python dependencies" → "Sync dependencies" (`release-core.yml`), "Pytest" → "Run tests" (`ci.yml` header). Remaining `python` hits in the scaffold workflows are genuinely Python-specific and untouched. - Opt-in release artifact: the `finalize` job detects a `bundle` just recipe (`just --summary | grep -qw bundle`), runs `just bundle`, and adds `dist` to the existing finalization commit's `FILE_PATHS` — so the tagged commit ships a fresh bundle. Zero new config surface: the recipe's presence is the flag, matching the capability-by-presence idiom of the #1028 fix. Verified `commit-action`'s `FILE_PATHS` supports directories ("directory expansion" per its README) and that `commit-action` itself already defines a `bundle` recipe. - Release choreography untouched (epic #988 keeps it single-source) — the step is additive and gated. TDD: each fix lands as failing-test commit → implementation commit (`tests/bats/init-workspace.bats`, 3 new shape tests). ## Test evidence - `bats tests/bats/init-workspace.bats` → 162 ok / 0 failed - `bats tests/bats/just.bats` → 46 ok - `actionlint` clean on both edited workflows - `prek run --all-files` → green (re-verified independently before push) Closes #1028 Closes #1029 Refs: #988, #1027
This was referenced Jul 15, 2026
c-vigo
added a commit
to vig-os/sync-issues-action
that referenced
this pull request
Jul 15, 2026
## Adopt vigOS devkit 1.3.0 (direnv) — replace the bespoke CI/release stack Second consumer of the mode-aware devkit, following the commit-action pilot (vig-os/commit-action#32). Deployed off `dev` with the released `install.sh --version 1.3.0 --mode direnv --prune-devcontainer`. ### What changed - **Devkit scaffold (direnv)**: Nix flake dev-shell (+`pkgs.nodejs`), `.envrc`, managed workflows/justfiles at 1.3.0; legacy `.devcontainer/` pruned. Tag scheme declared day one: `DEVKIT_TAG_PREFIX=v`, `DEVKIT_FLOATING_TAGS=major,minor`. - **Flake-generated pre-commit hooks** (`hooks = { }`, `hooksExcludes = ["^dist/"]`): replaces the committed `.pre-commit-config.yaml` whose binary `typos` hook could not run on NixOS. `scripts/setup-node.sh` + `.node/` provisioning retired — node flows from the flake. - **Crown jewels preserved**: - 8-scenario `integration-test.yml` matrix kept, wired to PRs via `integration-pr.yml` and to pushed tags via `published-tag-smoke.yml` (runs the action checked out AT the tag — consumer semantics). - **Provenance attestation** re-homed in `attest-release.yml` (tag push).⚠️ Deviation from the plan: it cannot live in the `release-extension.yml` seam — the managed `release.yml` calls the seam under a `contents: read, packages: read` token ceiling and a called workflow can never elevate `GITHUB_TOKEN` (`id-token: write` would be denied). Devkit seam limitation to be filed upstream. - **release-extension.yml re-purposed** as the dist-freshness release backstop (ported from commit-action): its old floating-tag mover is superseded by the managed promote's native `DEVKIT_FLOATING_TAGS` job. - **Ported gates**: `dist-check.yml` (Dist Check, PRs to release/**+main), `js-quality.yml` (eslint + prettier via `just`). - **codeql.yml push paths hand-patched to TS** — devkit renders only the language matrix; upstream fix tracked in vig-os/devkit#1142 (re-apply after every upgrade until fixed). - **Retired**: `security-scan.yml` (pure placeholder), `CODEOWNERS`, `prepare_changelog.py` + `release_helpers.sh` + their tests, `resolve-image` composite. - `package.json`: add `bundle` alias (devkit-standard name driving `just bundle` and release-core's native dist prep) and `format:check`. ### Verification (local, NixOS, direnv) - `nix develop` resolves: node v24.16.0, npm 11.13.0, just, prek; flake-generated pre-commit config self-installs. - `just sync / lint / format-check / build / bundle` green; **115 jest tests pass**; `dist/` clean after rebuild (bundle fresh). - **Full prek suite green — including `typos`, now flake-sourced** (the pilot's NixOS fix, reproduced here). - `actionlint` clean across all workflows. ### Follow-ups (not this PR) - node24 runtime (#77) — next PR after this merges - Required status checks on Dev/Main rulesets (CI Summary / + Dist Check) — pending approval - First devkit release train exercises the floating-tag move live (#106 checklist) Refs: #106
10 of 21 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adopt the vigOS devkit 1.1.0 (direnv) — first rollout pilot
First real deployment of the mode-aware devkit (1.1.0) to a consumer repo, in
direnv mode. This is the pilot for the wider vigOS rollout.
What changed
.devcontainer/with the devkit 1.1.0direnv scaffold (Nix flake +
.envrc, mode-aware CI, shared standards kit).Pruned via
--prune-devcontainer, which removes the oldpost-create.sh(the Debian-only script from [BUG] post-create.sh masks failures (false 'tsx installed') and assumes apt/Debian base — breaks on Nix devcontainer #30).
nodejsin the flakedev-shell + npm-mapped
justfile.projectrecipes (sync/lint/test/build/bundle). Build tools (tsc, jest, ncc, tsx, eslint, prettier) comefrom
npm ci; nixpkgs provides node + npm.hooks = { }), so hooksuse flake-sourced tools — fixes the
typoshook, which previously downloadeda glibc binary that cannot run on NixOS. Adds commit-message validation +
branch-naming enforcement.
.gitignoreentries the Python-only scaffold dropped(
node_modules/,*.tsbuildinfo,coverage/) and removed the blanketdist/ignore so the committeddist/index.jsbundle stays tracked.Verification (local, NixOS, direnv)
just sync/lint/test/build/bundleall pass — 80 jest tests green, tsccompiles, ncc bundles
dist/index.js.just precommitfully green (typos now via the flake;no-commit-to-branchsatisfied by this branch name).
Nix eval warnings.
Notes / follow-ups (not in this PR)
node20(action.yml); the dev-shell builds withnode24, which is fine for the pure-JS, ncc-bundled output. Runtime migration is
tracked separately (Migrate GitHub Action from Node.js 20 before runner deprecation #28, [TASK] Upgrade action to support Node.js 24 runtime #14).
main(nodevbranch); thescaffolded release /
sync-main-to-devworkflows assume adevbranch. Adoptthe dev→main flow as a follow-up.
vig-os/devkit#1024— scaffold.gitignoreis Python-only (worked around here).main(npm deps) are untouched here.Closes #29
Closes #30