Skip to content

tests: t6050: drop duplicate check cases and source-text scrapes - #622

Merged
RyanTheTide merged 1 commit into
mainfrom
hygiene/trim-t6050-tests
Dec 1, 2026
Merged

RyanTheTide merged 1 commit into
mainfrom
hygiene/trim-t6050-tests

Conversation

@RyanTheTide

Copy link
Copy Markdown
Contributor

What: Shrinks the T6050 host tests that #282 and #281 added during review (audit-merged-20261201 rows 4 and 9). Only exact duplicates and source-text greps go. Every harness that runs the real C stays.

  • test_t6050_tree_shape.py: the dcpext version test re-ran all nine t6050_check_ext_adt()/t6050_check_ext_live() failure cases. test_t6050_external_scanout_darts_resolved already drives each of them. t6050_ext_reject() and t6050_ext_display_dart() both depend on that one boolean, so one representative case (running == 0) is kept. Also removes the asserts that grep src/ for strings (selector/gate text, ATC table literals, the n_tunables line).
  • test_t6050_g17c_fill.py: the three small-table accept cases become one case (13 states, 3 clusters, 12 CS/AFR states); the 16x8x16 case stays. Removes the second stale-leakage-words case: t6050_gpu_leakage() returns 1 for both an unreadable window and a missing window, and both go through the same delete path.

No change under src/.

Tested: no runtime change (tests only). At 52b912189ab3 on the buildbox:

  • python -m pytest -q tests/python/test_t6050_tree_shape.py tests/python/test_t6050_g17c_fill.py: 8 passed (cc); CC=clang gives the same result.
  • python -m pytest -q tests/python/test_t6050*.py: 169 passed.

Risk: two-way · none (no runtime change).

Not yet:

  • Audit row 4 proposed cutting this file to 3-4 golden FDT assertions. I did not do that. Each remaining case runs a separate branch of the real extracted C, including the duplicate-reg, live-DART-root and fail-closed versioning fixes from kboot: T6050: hand off a prewired internal panel and the combo PHY ports the tree takes #282, so cutting them would remove coverage of those fixes.
  • Audit row 9 estimated ~650 trimmable lines in the G17C fill test. Most of that file is the mocked ADT and the refusal cases, and each refusal case hits a separate check in kboot_gpu.c. Rewriting it as a table would move lines around without reducing what is checked, so it is left as is.

test_t6050_tree_shape.py:
- The dcpext version test re-ran every t6050_check_ext_adt() /
  t6050_check_ext_live() failure (segment and pt-region placement,
  uuid, stale TTBR roots, unlocked DART, stopped CPU, unpowered,
  faulted MMIO). Both t6050_ext_reject() and t6050_ext_display_dart()
  gate on that one call, and test_t6050_external_scanout_darts_resolved
  already drives each branch. Keep one representative (running == 0).
- Drop the asserts that grep src/ text (selector/gate strings, the ATC
  table literals, the n_tunables line); the C harnesses execute the
  real functions.

test_t6050_g17c_fill.py:
- Fold the three small-table accept cases into one (13 states, 3
  clusters, 12 CS/AFR states); the 16x8x16 case stays.
- Drop the second stale-leakage-words case: an unreadable window and a
  missing window both return 1 from t6050_gpu_leakage() and take the
  same delete path.

Tests only; no change under src/.

Signed-off-by: Ryan Murray <81541646+RyanTheTide@users.noreply.github.com>
@RyanTheTide
RyanTheTide requested review from a team as code owners December 1, 2026 04:47
@github-actions github-actions Bot added blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot) labels Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Merge readiness at 52b91218: not ready yet

Check Detail
CI at head ok 28 checks passed
Review no needs one approving review from Core or Omarchy Mac (not the author)
Requested changes ok none
Hardware row at head ok not needed: no runtime change
Conflicts ok none
PR text ok Risk: two-way · none (no runtime change).

Areas: none matched in CODEOWNERS

Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels.

@aurora-silicon-review aurora-silicon-review Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: MERGE at 52b912189ab3

Checked: Test-only: drops duplicate T6050 check cases and source-text scrapes in test_t6050_g17c_fill.py / test_t6050_tree_shape.py and updates the PASS counts (82, ext-version cases) to match. Could not run it locally (clone failed here); the host-test job on this PR is the check.

Follow-ups (not blocking): none

@DjDeveloperr DjDeveloperr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes are confined to two host test files. The external-display checks still exercise each rejection in the resolver and retain an end-to-end rejection in the versioning path. The GPU fixture keeps both table sizes and verifies stale data removal. The relevant host checks passed.

@RyanTheTide

Copy link
Copy Markdown
Contributor Author

Merging at 52b912189ab3 (B2 merge train, 12-01 merge bar). Approval at this head: DjDeveloperr,aurora-silicon-review[bot]. Row: not needed: tests only. CI: hosted CI at this head is green. Revert: git revert -m 1 <merge commit>.

@RyanTheTide
RyanTheTide merged commit 54ef935 into main Dec 1, 2026
30 of 31 checks passed
@RyanTheTide
RyanTheTide deleted the hygiene/trim-t6050-tests branch December 1, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blast:none Macs affected, from Merge risk (bot) door:two-way Revertible or not, from Merge risk (bot) needs-review No approving review from Core or Omarchy Mac yet (bot)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants