Skip to content

dt-checks: compare undocumented properties one by one - #3257

Merged
RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
term-guy:dt-check-per-property
Nov 27, 2026
Merged

RyanTheTide merged 1 commit into
aurora-silicon:mainfrom
term-guy:dt-check-per-property

Conversation

@term-guy

Copy link
Copy Markdown
Contributor

What: dt-checks compares "does not match any of the regexes" warnings one property at a time. A PR that documents one property of a node then no longer shows that node's remaining undocumented properties as a new warning.
Tested: no runtime change. CI script only: apple-dt-check.sh main <linux#2093 head acddceeb> gives 0 new / 8 removed with this change (3 new / 8 removed without it).
Risk: two-way · none (CI check only; no kernel or DT change)
Not yet: nothing

Details

Such a warning lists all of a node's undocumented properties on one line. When a binding documents one of them, that line changes, and the comm line diff counts the shorter list as new even though nothing was added. linux#2093 documents apple,idleoff-standby-timer in apple,agx.yaml, so the t6021-j475c, t6022-j180d and t6022-j475d gpu@406400000 lines show up as 3 new warnings.

The script now runs in the C locale: sort and comm must agree on the order, and under en_US.UTF-8 they do not for these lines (with the split, comm then flags lines that both lists have). After the existing extraction, each such line is split into one line per property (same prefix, same masked regex tail) and sorted again with sort -u, under the same locale as the comm that follows. Every other warning is left as it is. A property that HEAD adds is still a new line. A failure of the split step fails the check, as the other filter steps do.

Evidence

linux#2093 at acddcee against main a851ca0, before this change: base 1192 lines, "new warnings: 3, removed: 8". The 3 new lines differ from their base lines only by the missing apple,idleoff-standby-timer; no property is added. With this change, run end to end on the same pair: base 2153 / head 2145 lines (one per property), "new warnings: 0, removed: 8". dt_binding_check of the changed binding needs ruamel.yaml/yamllint, which CI has.

A "does not match any of the regexes" warning lists every undocumented
property of a node on one line. When a change documents one of them, the
line for that node changes, and the line diff counts the shorter list as
a new warning although nothing was added: documenting
apple,idleoff-standby-timer in apple,agx.yaml reports the t6021-j475c,
t6022-j180d and t6022-j475d GPU nodes as new.

Split such warnings into one line per property before the comparison, so
only a property that HEAD adds is new. Run the script in the C locale:
sort and comm must agree on the order, and in en_US.UTF-8 they do not for
these lines. On linux#2093's head against main that gives 0 new and 8
removed instead of 3 new.

Signed-off-by: termg <[email protected]>
@term-guy
term-guy requested review from a team as code owners November 26, 2026 14: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 Nov 26, 2026
@github-actions

Copy link
Copy Markdown

Merge readiness at 43a28f33: not ready yet

Check Detail
CI at head ok 3 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 (CI check only; no kernel or DT 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 43a28f33c45c014695d9cf6936b71c715e591987

Blockers: None.

Checked: Read the full diff and the existing dtschema filter and warning comparison. Ran the exact-head extraction functions with two grouped warnings where one property disappeared, one persisted, and one was added. The set comparison reported only the added property as new and only the disappeared property as removed. An unrelated type warning remained stable. Shell syntax and the head's dt-checks, host-tests, readiness, and PR-text checks passed. The change is shared CI logic and adds no bindings, board checks, private material, or attribution.

@RyanTheTide RyanTheTide 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.

Verdict at 43a28f33: MERGE. CI script only, no runtime change.

Blockers: none.

Checked

  • Each 'a', 'b' do not match any of the regexes warning is split into one line per property before the base-vs-head comparison. Documenting one property of a node no longer turns its remaining ones into "new" warnings, and a node gaining one new undocumented property shows up as exactly that line.
  • LC_ALL=C makes sort and comm agree on order.
  • A failed split (either side of the pipe) removes the output and fails the check, so it fails closed.
  • Your replay: linux#2093 goes from 3 new / 8 removed to 0 new / 8 removed.

@RyanTheTide
RyanTheTide merged commit 7b54882 into aurora-silicon:main Nov 27, 2026
5 checks passed
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