Skip to content

chore: release 1.18.2 - #2007

Merged
vig-os-release-app[bot] merged 21 commits into
mainfrom
release/1.18.2
Nov 4, 2026
Merged

vig-os-release-app[bot] merged 21 commits into
mainfrom
release/1.18.2

Conversation

@vig-os-release-app

@vig-os-release-app vig-os-release-app Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Release 1.18.2 - 2026-11-03

This PR prepares release 1.18.2 for merge to main.

1.18.2 - 2026-11-03

Changed

  • Default lockstep pin advancement (#1856): lockstep release pins advance unless DEVKIT_FLAKE_PIN_ADVANCE=false.

Fixed

  • Advance lockstep release pins during upgrades (#1856)

    • The target installer advances release pins matching the pre-upgrade version by default, keeping the scaffold and dev shell aligned even through older upgrade workflows.
    • Recognize qualified release refs, preserve refs/tags/, and report removal of a leading v to use published bare tags.
    • Preserve explicit pin-advance settings; report every retained-pin mismatch, including failed updates and missing Nix, with manual-alignment advice that honors an explicit opt-out.
    • Migration: affected direnv/both consumers can set DEVKIT_FLAKE_PIN_ADVANCE=false to opt out and align pins manually; see the migration note.
  • Promote releases on plan-limited private repositories (#1851)

    • Stop retrying only rulesets plan-limit HTTP 403 responses and require one approval by default in both promote gates.
    • Count distinct current-head approvals from each reviewer's latest APPROVED, CHANGES_REQUESTED, or DISMISSED review, ignoring COMMENTED and PENDING and excluding the PR author; keep host retry diagnostics out of API responses.
    • Add DEVKIT_RELEASE_REQUIRED_APPROVALS for the 403 fallback; solo consumers can set 0, while real ruleset requirements retain precedence.

commit-action-bot Bot and others added 19 commits November 3, 2026 10:53
Add the [1.18.2] - TBD section on the release
branch cut from main: main's carried unshipped entries when it had any,
otherwise empty for the hotfix PR to fill.
Regenerate the synced workspace mirror so
assets/workspace/.devcontainer/CHANGELOG.md matches the frozen root
CHANGELOG.md on the release branch.
(cherry picked from commit 39872ae)

# Conflicts:
#	tests/test_install_direnv_host.py

Refs: #1856
(cherry picked from commit e46c5e7)

# Conflicts:
#	CHANGELOG.md
#	assets/workspace/.devcontainer/CHANGELOG.md
#	tests/test_install_direnv_host.py

Refs: #1856
(cherry picked from commit 265c287)

# Conflicts:
#	CHANGELOG.md
#	assets/workspace/.devcontainer/CHANGELOG.md

Refs: #1856
## Description

Carry #1856 / PR #1988 into the 1.18.2 hotfix. A target installer now
advances release pins that matched the consumer's previous version,
recognizes qualified and v-prefixed refs, and reports retained-pin
mismatches with advice that respects opt-out.

Targets `release/1.18.2`; no merge or release dispatch is requested.

## Type of Change

<!-- Mark the relevant option(s) with an 'x' -->

- [ ] `feat` -- New feature
- [x] `fix` -- Bug fix
- [ ] `docs` -- Documentation only
- [ ] `chore` -- Maintenance task (deps, config, etc.)
- [ ] `refactor` -- Code restructuring (no behavior change)
- [x] `test` -- Adding or updating tests
- [ ] `ci` -- CI/CD pipeline changes
- [ ] `build` -- Build system or dependency changes
- [ ] `revert` -- Reverts a previous commit
- [ ] `style` -- Code style (formatting, whitespace)

### Modifiers

- [ ] Breaking change (`!`) -- This change breaks backward compatibility

## Changes Made

- Cherry-picked all four PR #1988 commits in order with provenance
retained before the final Refs line.
- Adapted the missing dev-only test harness to the 1.18.1 container
installer boundary: a minimal test-only runtime stand-in executes the
real scaffold. All 18 policy cases and assertions remain AST-identical
to dev.
- The hotfix used `seed`; Fixed, Changed and migration entries are under
`[1.18.2] - TBD`. The sync-manifest hook regenerates the workspace
mirror.

## Changelog Entry

### Changed

- **Default lockstep pin advancement**
([#1856](#1856)): lockstep
release pins advance unless `DEVKIT_FLAKE_PIN_ADVANCE=false`.

### Fixed

- **Advance lockstep release pins during upgrades**
([#1856](#1856))
- The target installer advances release pins matching the pre-upgrade
version by default, keeping the scaffold and dev shell aligned even
through older upgrade workflows.
- Recognize qualified release refs, preserve `refs/tags/`, and report
removal of a leading `v` to use published bare tags.
- Preserve explicit pin-advance settings; report every retained-pin
mismatch, including failed updates and missing Nix, with
manual-alignment advice that honors an explicit opt-out.
- Migration: affected direnv/both consumers can set
`DEVKIT_FLAKE_PIN_ADVANCE=false` to opt out and align pins manually; see
[the migration
note](docs/MIGRATION.md#lockstep-flake-pins-during-upgrades).

## Testing

Commands ran inside `nix develop`:
- `uv run --with pytest-xdist pytest tests/test_install_direnv_host.py
tests/test_flake_pin_lockstep.py -n 2
--basetemp=$HOME/.cache/devkit-pytest/1856-carry-final`: 35 passed, exit
0.
- `uv run --with pytest-xdist pytest
tests/test_utils.py::TestInstallScriptUnit -n 2
--basetemp=$HOME/.cache/devkit-pytest/1856-carry-unit`: 3 passed, exit
0.
- `bats tests/bats/install.bats`: 107 passed, exit 0.
- RED evidence: initial policy tests had 4 failures / 1 pass, exit 1;
round-two tests against the initial implementation had 10 failures / 8
passes, exit 1.
- Commit hooks passed; `git diff --check` passed. Full suites are
delegated to PR CI.
- [ ] Tests pass locally (`just test`)
- [ ] Manual testing performed (describe below)

### Manual Testing Details

Compared every carried file with `origin/dev` using `git diff`:
- `install.sh`: the entire post-initialization section, including
policy, normalization, rollback and warnings, is byte-identical. Earlier
differences retain 1.18.1 container scaffolding, version resolution,
preflight and environment forwarding rather than importing #1871/#1826
and runner migrations.
- `assets/init-workspace.sh`: the pin-knob preservation change matches
dev; remaining differences are existing Rust config seeding / pack
support, untracked-file preflight, gitignore rendering, runner lane
validation/migration and extension-hook reconciliation.
- `assets/workspace/.github/workflows/ci.yml`: lockstep normalization
matches dev; existing runner selection, checkout paths and
container-based drift checks stay on the release baseline.
- `assets/workspace/.vig-os`: pin-policy documentation matches dev;
existing runner documentation and absence of lane-size settings remain
from the release baseline.
- `docs/DOWNSTREAM_RELEASE.md` and its workspace mirror: upgrade-policy
prose matches dev; only the existing runner-json contract differs.
- `docs/MIGRATION.md`: the #1856 migration section is byte-identical;
remaining differences retain release-baseline runner contracts/migration
guidance, manifest and language descriptions, shell/env guidance,
preflight behavior, and absence of the dev-only site-leak hook.
- `tests/test_flake_pin_lockstep.py`: byte-identical to dev.
- `tests/bats/install.bats`: carried assertions match dev; existing
preflight tests remain, fixture modes use direnv through the hotfix
container path rather than dev's both mode, and dry-run targets retain
the baseline behavior.
- `tests/test_install_direnv_host.py`: all policy decorators, function
code and assertions match dev as an AST. Only minimal harness helpers
are carried; unrelated dev host-scaffolding and migration tests are
absent. The runtime stand-in replaces dev's Nix metadata/develop replay
and records unexpected calls.
- Root and mirrored changelogs retain hotfix/released history instead of
unrelated dev Unreleased entries; #1856 entries are relocated to 1.18.2.
The mirror uses the repository's manifest transforms.

## Checklist

<!-- Mark completed items with an 'x' -->
- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [x] I have updated the documentation accordingly (edit
`docs/templates/`, then run `just docs`)
- [x] I have updated `CHANGELOG.md` in `[1.18.2] - TBD` per the hotfix
brief (entry above)
- [x] My changes generate no new warnings or errors
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] New and existing unit tests pass locally with my changes
- [x] Any dependent changes have been merged and published

## Additional Notes

The brief explicitly overrides the generic dev-base and Unreleased
instructions for this hotfix carry.

Refs: #1856

<!--
Please include GitHub issue references in the "Refs:" line above (e.g.,
`Refs: #42`).
Every change must be traceable to an issue, per project rules.
If not related to a specific issue, explain why (chore/documentation
only).
See [commit-messages.mdc](../../rules/commit-messages.mdc) for more
details.
-->
Carry unchanged helper files and their unit tests from 48ea8d5 for the hotfix approval regression tests.

Refs: #1851
Omit test_shipped_workflows[False-fork], [False-same-repo], [False-push], [True-fork], [True-same-repo], and [True-push], plus test_workflow_mutations[fork]. These seven cases require dev-only runner-class outputs and fork routing absent from release/1.18.2; they return with the next regular release from dev. Retain the workflow traversal as a helper for the existing reusable mutation case. Keep every helper-behaviour test and both helper implementations unchanged; add no conditional skips or synthetic dev fixtures.

Refs: #1851
Keep hotfix release history only in the root changelog and its generated devcontainer mirror. Restore the consumer template to its empty skeleton, as the existing smoke-deploy BATS and integration tests require.

Refs: #1851
Omit test_workflow_mutations[reusable] as the eighth dev-only case: the
release branch raises the same ValueError before applying its mutation,
so its pytest.raises assertion cannot verify the mutation. Remove the
now-unused workflow traversal helper without changing helper behavior tests.

The complete omitted set is test_shipped_workflows[False-fork],
test_shipped_workflows[False-same-repo], test_shipped_workflows[False-push],
test_shipped_workflows[True-fork], test_shipped_workflows[True-same-repo],
test_shipped_workflows[True-push], test_workflow_mutations[fork], and
test_workflow_mutations[reusable]. These require dev-only runner-class
outputs and fork routing absent from release/1.18.2. They return with the
next regular release from dev. Keep both helper implementations unchanged.

Refs: #1851
…#2009)

## Description

Carry the six reviewed #2002 commits into `release/1.18.2` to fix
promotion on plan-limited repositories. Ruleset requirements remain
authoritative; only a recognized plan-limit 403 uses the configurable
approval fallback. Count distinct, current-head approvals and keep retry
diagnostics out of API responses.

## Type of Change

- [x] `fix` -- Bug fix
- [x] `test` -- Adding or updating tests
- [x] `ci` -- CI/CD pipeline changes

### Modifiers

- [ ] Breaking change (`!`)

## Changes Made

- Cherry-pick with attribution, in order: `f64c773136`, `6456ab9844`,
`80dc0ab1bf`, `2e9f2fff65`, `048f98e005`, `f27d031bdb`. Verified against
`gh pr view 2002 --json commits`; no merge or sync commits carried.
- Carry exactly four test-infrastructure files from `48ea8d5e`:
`tests/github_expression.py`, `tests/workflow_replay.py`,
`tests/test_github_expression.py`, and `tests/test_workflow_replay.py`.
Both implementations and the replay unit tests remain byte-identical to
dev. Also carry the unchanged test-only CI prerequisite from `d14b03fe`:
fetch tag `1.18.0` before replay tests in
`.github/actions/test-project/action.yml`. No infrastructure changelog
entries carried.
- Omit exactly eight dev-only cases:
`test_shipped_workflows[False-fork]`, `[False-same-repo]`,
`[False-push]`, `[True-fork]`, `[True-same-repo]`, `[True-push]`,
`test_workflow_mutations[fork]`, and
`test_workflow_mutations[reusable]`. They require dev-only runner-class
outputs and fork routing absent from this release branch. They return
when the next regular release from dev lands. The reusable mutation also
raises the same ValueError without mutation on this branch, so it was
vacuous; remove it and the now-unused traversal helper. Every
helper-behavior test is retained; no conditional skips or synthetic dev
fixtures.
- Exclude `DEVKIT_CI_LANE_SIZES` when resolving the toolchain key-list
conflict. Put the changelog under `[1.18.2] - TBD` and regenerate the
`.devcontainer` mirror. Keep the consumer root changelog template as the
blank skeleton required by its existing smoke-deploy tests.

## Changelog Entry

The hotfix-specific brief requires `[1.18.2] - TBD` instead of
Unreleased:

- **Promote releases on plan-limited private repositories**
([#1851](#1851))
- Stop retrying only rulesets plan-limit HTTP 403 responses and require
one approval by default in both promote gates.
- Count distinct current-head approvals from each reviewer's latest
APPROVED, CHANGES_REQUESTED, or DISMISSED review, ignoring COMMENTED and
PENDING and excluding the PR author; keep host retry diagnostics out of
API responses.
- Add `DEVKIT_RELEASE_REQUIRED_APPROVALS` for the 403 fallback; solo
consumers can set 0, while real ruleset requirements retain precedence.

## Testing

Latest combined check: 434 passed, exit 0:

```text
nix develop -c uv run --with pytest-xdist pytest tests/test_promote_rules_fallback.py tests/test_vig_os_manifest.py tests/test_scaffold_drift.py tests/test_promote_release.py tests/test_github_expression.py tests/test_workflow_replay.py tests/test_flake_pin_lockstep.py tests/test_install_direnv_host.py tests/test_changelog_unreleased_typos.py tests/test_release_time_changelog.py -n 2 --basetemp=$HOME/.cache/devkit-pytest/1851-carry-r4
```

Rebased onto `d1888f82` (`origin/release/1.18.2`, including #2008).
Preserve both carry entries under one `### Fixed` list and regenerate
the changelog mirror. All 16 checks are green on
`ce50566e792c05113421c052c635ba5ab67a6820`, including Test Summary ([CI
run](https://github.com/vig-os/devkit/actions/runs/41629525265)). `gh pr
checks 2009 --watch` exited 0.

- [x] Targeted tests pass locally (364 passed, exit 0):

```text
nix develop -c uv run --with pytest-xdist pytest tests/test_promote_rules_fallback.py tests/test_vig_os_manifest.py tests/test_scaffold_drift.py tests/test_promote_release.py tests/test_github_expression.py tests/test_workflow_replay.py -n 2 --basetemp=$HOME/.cache/devkit-pytest/1851-carry-r3
```

- Pre-change proof: initial fallback/manifest tests produced 18 failures
and 37 passes (exit 1) before implementation.
- Before the authorized omissions, helper tests produced 7 dev-shape
failures and 208 passes (exit 1).
- Follow-up replay and scaffold-drift tests: 48 passed, exit 0 (`nix
develop -c uv run --with pytest-xdist pytest
tests/test_scaffold_drift.py tests/test_workflow_replay.py -n 2
--basetemp=$HOME/.cache/devkit-pytest/1851-carry-r3-final`).
- Targeted BATS smoke-deploy checks: 3 passed, exit 0 (`nix develop -c
bats --filter 'smoke deploy (preserves|bootstraps)'
tests/bats/init-workspace.bats`).
- Initial CI exposed release history in the consumer skeleton
(BATS/integration) and the missing `1.18.0` tag prerequisite (project
tests). Restore the blank skeleton and carry dev's tag-fetch step; both
root causes are addressed without changing helper behavior.
- `git diff --check` and byte comparison of both helper implementations
against `origin/dev`: exit 0.
- All commits made in `nix develop` with hooks enabled. Cherry-pick
attribution retained above the final `Refs:` line as required by commit
validation.

### Manual Testing Details

Reviewed all carried runtime files against `origin/dev`; differences are
release-baseline features intentionally outside this carry:

| File | Every remaining difference from dev |
| --- | --- |
| `release-required-approvals.sh` | None; byte-identical. |
| `promote-release.yml` | Existing legacy resolve runner variable and
root sparse checkout; no `.devkit-resolve` path/working-directory or
runner-class inputs/outputs; existing hosted downstream job runners.
Approval behavior matches dev. These belong to #1860, #1863 and the
runner-class changes. |
| `setup-devkit-toolchain/action.yml` | Retry helper matches dev.
Existing host Nix setup lacks dev's ambient configuration
preservation/validation, credential masking, extended experimental
features and collision-safe export delimiter (#1907). |
| `resolve-toolchain/action.yml` | Approval knob logic matches dev.
Existing resolver lacks dev's runner-class
inputs/outputs/environment/context, lane handling, diagnostics and
migration, plus sparse-checkout working-directory support (#1860, #1927
and runner-class work). No dev-only lane-size key carried. |
| `.vig-os` template | Approval knob matches dev. Only existing runner
documentation and omitted lane-size settings differ; #1856 is now in the
base. |
| `init-workspace.sh` | Approval knob read/preserve/write logic matches
dev. Existing differences concern Rust tool configs, language
seeding/preview/notices and Rust flake detection (#1496, #1831);
untracked-upgrade preflight and shared gitignore helpers (#1826);
managed security/commit documentation (#1910); runner-lane validation
and legacy key/hook migration (#1927, #1929). #1856 is now in the base.
|

## Checklist

- [x] My code follows the project's style guidelines
- [x] I have performed a self-review of my code
- [x] Documentation updated where required
- [x] CHANGELOG updated under the explicitly required hotfix section
- [x] Tests prove the fix and pass locally
- [x] Required test infrastructure included

## Additional Notes

Target is `release/1.18.2`. No merge or release dispatch is part of this
carry. Container and nix-eval suites are left to CI, as required by the
carry brief. Isolated local pytest directories are removed after use.

Refs: #1851
@gerchowl
gerchowl marked this pull request as ready for review November 3, 2026 12:21
@gerchowl
gerchowl requested a review from c-vigo as a code owner November 3, 2026 12:21
Set release date to 2026-11-03 and regenerate release docs.

Refs: #2007

@gerchowl gerchowl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved by the owner for release 1.18.2.

@vig-os-release-app
vig-os-release-app Bot merged commit 9017991 into main Nov 4, 2026
20 checks passed
@vig-os-release-app
vig-os-release-app Bot deleted the release/1.18.2 branch November 4, 2026 00:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant