Repository navigation
dt-checks: compare undocumented properties one by one - #3257
Conversation
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]>
|
Merge readiness at
Areas: none matched in CODEOWNERS Updated by pr-readiness on pushes, edits, reviews and comments, and on a schedule. Rules: merge policy · labels. |
There was a problem hiding this comment.
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
left a comment
There was a problem hiding this comment.
Verdict at 43a28f33: MERGE. CI script only, no runtime change.
Blockers: none.
Checked
- Each
'a', 'b' do not match any of the regexeswarning 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=Cmakessortandcommagree 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.
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
commline diff counts the shorter list as new even though nothing was added. linux#2093 documentsapple,idleoff-standby-timerinapple,agx.yaml, so the t6021-j475c, t6022-j180d and t6022-j475dgpu@406400000lines show up as 3 new warnings.The script now runs in the C locale:
sortandcommmust agree on the order, and underen_US.UTF-8they do not for these lines (with the split,commthen 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 withsort -u, under the same locale as thecommthat 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
maina851ca0, before this change: base 1192 lines, "new warnings: 3, removed: 8". The 3 new lines differ from their base lines only by the missingapple,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_checkof the changed binding needsruamel.yaml/yamllint, which CI has.