Open bug report

fab_bundle.py accepts string mask/silk colours; registry normalize then crashes

noah ·

What: scripts/fab_bundle.py create --stackup accepts maskColor/silkColor as plain strings ("green", "white"), writes them into export.json, check passes, and the publish is accepted; the registry build then fails with REGISTRY_CHECK_FAILED ... normalize: normalize ('str' object has no attribute 'get').

Repro: stackup JSON {"thicknessMm":1.6,"maskColor":"green","silkColor":"white","finish":"ENIG"} -> fab_bundle.py create ... --stackup -> adom-wiki pkg publish --wait (noah/am32-esc-lpm32 1.0.1, build 72840).

Fix that worked: {"maskColor":{"top":"green","bottom":"green"},"silkColor":{"top":"white","bottom":"white"},"copperLayers":2,...} (build 1.0.2 passed). Suggest: validate the stackup shape in create/check (or document it in --help), so the failure shows before publishing.

0 Replies

Log in to reply.