Repository navigation
test(gate): install --frozen refuses a declared package the lock lacks - #5012
Merged
Daniel Meppiel (danielmeppiel) merged 3 commits intoNov 23, 2026
Merged
Conversation
The GATE reference expected --frozen to refuse only without a lockfile. install.md (Frozen mode) refuses any declared direct dependency the lock has no row for, which #4912 now enforces; the model was stale. Replays the nightly falsifier (declare, update, declare, audit --ci). Co-authored-by: Copilot App <[email protected]>
# Conflicts: # tests/lifecycle/machines/test_m_gate.py
Daniel Meppiel (danielmeppiel)
requested a review
from Sergio Sisternes (sergio-sisternes-epam)
as a code owner
November 23, 2026 12:28
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues are reported for the test-only update aligning frozen-install expectations with missing lockfile entries.
No open issues 🎉
What changed in this PR
Corrects the GATE lifecycle test model to match install --frozen behavior when a declared dependency is absent from an existing lockfile, addressing the nightly failure reported in #4919. Production behavior is unchanged.
Changes:
- Expect frozen installation to fail when any declared package lacks a lockfile entry.
- Add a regression replay that checks refusal, unchanged lockfile contents, and the newly declared package’s continued absence from the lock.
| File | Description |
|---|---|
tests/lifecycle/machines/test_m_gate.py |
Adds the nightly failure replay and lockfile assertions. |
tests/lifecycle/machines/_gate_kit.py |
Updates frozen-mode expectations to detect missing dependency rows. |
Review effort: Balanced
Daniel Meppiel (danielmeppiel)
deleted the
ql/w2b-gate-frozen-unlocked
branch
November 23, 2026 13:13
Merged
6 of 10 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.
Description
A full-sequence GATE scratch at main 3d03dc9 (run 45142640048) falsified the nightly state machine in both scopes:
declare(hook) -> update -> declare(plugin) -> audit_ci.install --frozenexited 1 where the model expected 0.Classification: stale model (test bug), not a product bug.
reference/cli/install.md:321("Frozen mode") says a--frozeninstall fails when the lockfile is missing a declared direct dependency. Since #4912,--frozenenforces this for a package it could not restore from the lock. The GATE reference (_install_reference) expected a refusal only when no lockfile existed at all. It now also expects exit 1 when any declared kind has no lock row in the lock before the step. Every other frozen expectation is unchanged.Regression test:
test_m_gate.py::test_frozen_refuses_a_declared_package_the_lock_lacksreplays the falsifier. It asserts thatapm.lock.yamlstays byte-identical and still has no row for the newly declared package.Issue and approved scope
Issue: Refs #4919
Human scope-approval comment: QL owns the lifecycle machines (GATE nightly lane, approved by the Quality & Lifecycle VP as a standalone car before tonight's GATE nightly).
Does not close an issue: it keeps the scheduled GATE nightly green after #4912.
Type of change
Testing
Validation (CI only; host under load, rule 17):
gate-machine-nightly.ymlrun 45148566874 (25 random examples per scope plus the replay): GATE3 passed, SPINE3 passed.test_gate_generated_sequences_keep_cross_cutting_laws[project]and[user]withinstall-frozen exited 1, expected 0.Changelog
changelog.d/<pr>.<section>.md, holdingone line: user-visible effect first, 25 words or fewer, ending with
(#PR); breaking changes only under upgrade notes; no Highlights; nonew lines under
## [Unreleased]. Seechangelog.d/README.mdand.github/instructions/changelog.instructions.md.Spec conformance (OpenAPM v0.1)
No
req-XXXbehaviour changes; test model only.