test: Health v2 Integration — e2e v2 pipeline + CLI --filter paused - #74
Merged
Conversation
- tests/test_integration_v2.py (new): in-tree fixture root of real git repos (alloc-pipeline -> stranded, deepseek-deharness -> paused, gamma -> dead) asserting the composed discover -> assess -> classify_health_v2(read_gitstate(...)) -> render_portfolio pipeline, the Git column, and the filter-to-stranded logic; plus a live-root self-consistency smoke test that skips when ~/AI is absent. - tests/test_cli.py: test_cli_status_filter_paused (the paused branch of the v2 filter) + pin the v1/v2 Health-column divergence. - tickets: TICKET-064..067 (064/067 in scope; 065/066 deferred design decisions). Test-only cycle; no fleet/ source change.
This was referenced Aug 20, 2026
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.
Cycle 17 (Health v2: Integration). Ties the three v2 links together as one composed path: discover -> assess -> classify_health_v2(read_gitstate(...)) -> render_portfolio(healths, git_states).
Test-only cycle; no fleet/ source change (the capability is already merged in Cycles 14-16).
What's added
test_integration_v2_pipeline_stranded_paused_dead— an in-tree fixture root of real git repos carrying the Build-Order canary shapes (alloc-pipeline -> stranded: unmerged build42 branch + 2 unpushed commits; deepseek-deharness -> paused: clean main; gamma -> dead: no git repo). Asserts the composed pipeline yields the three v2 classes and the exact 7-column table (Git column:unmerged:build42/model-persistence-rebalance,unpushed:2/-/-).test_integration_v2_filter_stranded— mirrors the CLI--filter strandedlogic; selecting the v2 stranded class yields exactlyalloc-pipeline.test_integration_live_root_self_consistent— a live-root smoke test over~/AIthat asserts the pipeline runs and every reported class is one of the four valid classes. It does not hard-assert stranded/paused (the live canary repos usemasterwith nomain, soread_gitstateyields EMPTY_STATE and the pinned classes are not reproducible live). Skips when~/AIis absent.test_cli_status_filter_paused(the previously-untestedpausedbranch of the v2 filter) + pins the v1/v2 Health-column divergence (a v2-filtered row still displays its v1 class).Gate
Closes #72
Closes #73