Skip to content

Retire the legacy VID/PID tables in ci/util now that all 15 literals resolve upstream #3997

Closed

Description

@zackees

Context

Two hand-maintained USB tables remain in ci/:

  • ENVIRONMENT_TO_VCOM_VID_PIDS — ci/util/port_utils.py
  • BOARD_FINGERPRINTS — ci/util/serial_probe.py

#3976 froze both (DO-NOT-EXTEND comments) rather than deleting them, because at the time one literal — FTDI FT232H 0403:6014 — was not published upstream.

That gap is now closed (FastLED/boards#60), and ci/util/audit_usb_registry.py reports 15/15 resolve from FastLED/boards. Nothing in either table is load-bearing any more: every entry is redundant with the registry.

Work

Delete both tables and route their call sites through fbuild, which already resolves identities from the published catalogue.

Not purely mechanical — the two have different roles and different risk:

BOARD_FINGERPRINTS is display/diagnostic only; it labels ports that have already been chosen. fbuild port scan renders the same └─ vendor / product line from the registry, so this one should be a straight deletion.

ENVIRONMENT_TO_VCOM_VID_PIDS is a selection authority — it decides which COM port a run targets. Removing it means the fbuild path must cover every case it covers today, including the LPC845-BRK dual-probe-firmware case that motivated it (#3300): one board, two acceptable VID:PIDs depending on which firmware the onboard probe carries. Verify fbuild handles multi-identity boards before deleting.

Also drop ENVIRONMENT_TO_VCOM_VID_PID (singular), the back-compat shim derived from the plural map, once no in-repo callers remain.

Definition of done

AUDITED_LITERALS in ci/util/audit_usb_registry.py shrinks to empty and the script can be deleted along with the tables — that list exists to track exactly this retirement.

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions