Skip to content

fix(flows): preserve frontend entry points with test-only callers - #1241

Open
azizur100389 wants to merge 1 commit into
tirth8205:stagingfrom
azizur100389:codex/tsx-test-caller-flows
Open

azizur100389 wants to merge 1 commit into
tirth8205:stagingfrom
azizur100389:codex/tsx-test-caller-flows

Conversation

@azizur100389

@azizur100389 azizur100389 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Linked issue

Refs #882. This covers one reproducible cause of missing React flows in the Action report.

What & why

A component's flow can disappear when a test becomes its only indexed caller. Use the existing production-caller check for JavaScript, TypeScript, and TSX, so a test render leaves the component's flow visible. The Action guide explains where runtime wiring still limits flow detection.

How it was tested

  • On staging, the parsed TSX fixture returned zero flows. It now returns the component flow in affected-flow results and traces from the outer component once a production caller exists.
  • python -m pytest tests/test_flows.py tests/test_postprocessing.py tests/test_js_wrapped_functions.py tests/test_action_render.py -q --tb=short — 227 passed. The expanded TSX regression passed on rerun.
  • Ruff passed locally.

Final validation

  • 21 GitHub checks passed at 1d88e66. The Python 3.10–3.13 matrix passed 8,285 tests per version at 88.87–88.90% coverage. The minimum-dependency matrix, browser, native Windows, and Linux/macOS/Windows MCP end-to-end jobs passed.
  • The optional Windows corpus run had two timing outliers. Zod passed on rerun, and the FastAPI overrun also reproduced on untouched staging. The manual upgrade job is skipped on PRs.

@github-actions

Copy link
Copy Markdown

code-review-graph review

Overall risk: 0.55 (MEDIUM) — 2 changed function(s)/class(es), 9 affected flow(s), 0 test gap(s)

Risk-scored changes

Risk Level Symbol Location Tested
0.55 medium code_review_graph/flows.py::detect_entry_points code_review_graph/flows.py:497 yes
0.05 low tests/test_flows.py::test_tsx_test_caller_keeps_component_flow tests/test_flows.py:940 (test)

Affected execution flows

  • benchmark_debug_workflow — criticality 0.74, 810 node(s) across 20 file(s)
  • benchmark_pre_merge_workflow — criticality 0.74, 760 node(s) across 19 file(s)
  • benchmark_architecture_workflow — criticality 0.74, 751 node(s) across 19 file(s)
  • benchmark_onboard_workflow — criticality 0.74, 741 node(s) across 17 file(s)
  • main — criticality 0.72, 1616 node(s) across 59 file(s)
  • ...and 4 more affected flow(s)

Powered by code-review-graph — local-first analysis; no code leaves the CI runner.

This branch has not been deployed

No deployments
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