Repository navigation
test(ci): decouple include-closed scenario from live issue open-state - #141
Merged
Merged
Conversation
The include-closed integration scenario asserted that at least one of its filtered issues (2,17,4,8) was OPEN, then checked with-closed >= open-only. Issues 2 and 17 were closed by the v0.4.0 release, leaving the whole filter closed, so open-only count is 0 and the pre-check fails on every PR — pure fixture drift, not an action regression. Reframe the assertion around the durable state: issues 4 and 8 are stably CLOSED, so include-closed=true must return strictly more issues than include-closed=false (the closed issues are added). This holds regardless of how many filtered issues are currently open, removing the dependency on any issue staying open. Update the file header to drop the false "2,17 must stay open" contract. Refs: #140
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.
Summary
The
Integration Test / Include closedscenario was failing on every PR (observed ondevand on PR #139) due to test-fixture drift, not an action regression.The scenario hardcodes
issues-filter: '2,17,4,8'and its verify step first asserted at least one filtered issue is OPEN (OPEN_COUNT > 0), then checkedwith-closed >= open-only. Issues #2 and #17 were closed by the v0.4.0 release, so all four filtered issues are now CLOSED,open-onlycount is0, and the pre-check fails unconditionally.Fix (approach a — assertion made state-independent)
Rather than chase live issue states, reframe the assertion around the durable invariant: issues 4 and 8 are stably CLOSED ("closed" is the natural attractor state — open issues drift closed over time, the reverse rarely happens). Therefore
include-closed: truemust return strictly more issues thaninclude-closed: false, because at least the closed issues are added while the open-only pass omits them.OPEN_COUNT > 0gate (assumed ≥1 filtered issue stays open).with-closed > open-only(proves closed issues are added) andwith-closed > 0.0defensively.The result holds regardless of how many filtered issues are currently open, so it will not drift again as more issues close.
Traceability
Deliberately kept out of PR #139 (devkit 1.3.1 adoption), which did not touch the integration workflow. This is the dedicated fix.
Long-term
This fully resolves the drift for the include-closed scenario. The broader "self-provisioning fixtures" idea noted in #140 remains a possible future enhancement (a test would create its own issues in known states rather than relying on any repo issue), but is out of scope here.
Refs: #140