Skip to content

compat-check: replace board-name heuristic with explicit ignore list - #30

Open
nicksinas wants to merge 1 commit into
mainfrom
nsinas/compat-cleanup
Open

nicksinas wants to merge 1 commit into
mainfrom
nsinas/compat-cleanup

Conversation

@nicksinas

Copy link
Copy Markdown
Collaborator

What

feed_targets filtered non-target keys out of targets.json with a regex heuristic:

NON_BOARD_RE='_|^noarch$|^qcm[0-9]+$'

That rests on "boards never use _". Replaced with IGNORE_TARGETS — an exact-match (grep -vxF) list of the platform/tune keys actually published in 2024/edge.

Why

The heuristic fails silently in the direction that hurts: a future real target whose name contains an underscore gets dropped from the plan, the sweep runs a smaller matrix, and it still goes green. Same failure mode the _fetch rc-1 contract already guards against ("unknown, abort — never treat as empty").

With an explicit list, anything new that is not a real target falls through to install, fails loudly with no avocado-sdk-<name>, and gets added to the list.

Note on icam-540

icam-540 wasn't caught by the old regex, so it was being swept as a top-level target. It's a board of jetson-orin-nx — it's now ignored as a target key and still built as a board via feed_boards. That's the one behavioral change to the matrix.

Trade-off

The list needs a manual edit when the feed adds a tune. Deliberate: the failure mode is a loud red cell instead of a quietly partial sweep.

targets.json lists tune/arch keys alongside real targets. NON_BOARD_RE
filtered them by pattern ("boards never use '_'"), so any future target
whose name matches would be silently dropped and the sweep matrix would
quietly shrink.

Replace it with IGNORE_TARGETS, an exact-match list of the platform/tune
keys actually published in 2024/edge. Anything new that is not a real
target now falls through to install and fails loudly rather than
disappearing from the plan. icam-540 is ignored as a top-level key only;
it is still built as a board of jetson-orin-nx via feed_boards.
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