Repository navigation
[CTX-0504] chore(deps): break bitty-term-state<->bitty-ui dev cycle; verify bitty-app->bitty-perf edge - #833
Merged
Merged
Conversation
Move crates/bitty-term-state/tests/resize_scrollback.rs to crates/bitty-ui/tests/ and drop the test-only bitty-ui dev-dependency (ses_fb7edd547 low #3 exception), restoring the strict DAG required by ADR-0003 rule 1 ("No cycles, including dev-dependency cycles"). The 13 View+State composition tests keep identical names and coverage; bitty-ui already depends on bitty-term-state and bitty-vt. Cargo.lock only loses the bitty-term-state -> bitty-ui edge. The compat resize baseline path is updated. Verification: bitty-app -> bitty-perf is a real production edge, not compose/tests-only. main.rs declares `mod dev` unconditionally and the shipped `bitty dev trace` executors call bitty_perf::startup/latency (dev.rs), covered end-to-end by tests/cli_dev.rs. Removing it requires relocating PB-1/PB-4 measurement ownership into bitty-runtime or splitting the CLI, so it is recorded as residual instead of changed silently. Refs #832
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.
Priority: P1 | Area: tooling | Labels: chore,P1,area:tooling | Milestone: v0.1.0 | RFC: n/a | Task: CTX-0504
Closes #832
Summary
Restore ADR-0003 rule 1 ("The graph is a strict DAG. No cycles, including
dev-dependency cycles.") by moving the one View+State composition test from the
state core to the UI crate, and record the verified status of the
bitty-app -> bitty-perfedge.Dev-dependency cycle broken
bitty-term-statedev-depbitty-ui(CTX-0058 exception)bitty-uigit mv crates/bitty-term-state/tests/resize_scrollback.rs crates/bitty-ui/tests/resize_scrollback.rscargo tree -p bitty-term-state -e devafter:proptestonlyCargo.lockdiff: exactly one line ("bitty-ui"removed from thebitty-term-statedependency list); no packages added or removedtests/compat/resize/README.mdbaseline path updatedbitty-app -> bitty-perfverified as a real production edgecrates/bitty-app/src/main.rs:198declaresmod dev;unconditionally.crates/bitty-app/src/dev.rs:1159/:1216callbitty_perf::startup::measure_headless_startup/bitty_perf::latency::measure_latency(plusPB1_*/PB4_*budgets) for theshipped
bitty dev tracesurface.crates/bitty-app/tests/cli_dev.rsexercises that surface end-to-end.measurement ownership into a crate bitty-app already depends on
(
bitty-runtime) or splitting the dev-trace CLI into its own binary — botharchitectural changes outside this chore. Recorded as residual.
Verification evidence
just check(fmt-check + clippy-D warnings+ workspace tests + gates +actionlint + markdownlint): exit 0
cargo check --workspace --all-targets --locked: exit 0cargo check --target x86_64-pc-windows-gnu --workspace --all-targets --locked: exit 0cargo test -p bitty-ui --test resize_scrollback -- --list: 13 tests, namesbyte-identical to the pre-move set (
TEST-SET-IDENTICAL)act -n -W .github/workflows/ci.yml: all jobs succeededResidual
bitty-app -> bitty-perf: see verification above; needs a design decision onPB ownership or CLI surface before it can be removed.