Repository navigation
Description
Problem
The version is written by hand in four places, and nothing checks that they agree with each other or with the release tag:
| Location | Form |
|---|---|
library.properties |
version=X.Y.Z |
library.json |
"version": "X.Y.Z" |
src/FastLED.h |
#define FASTLED_VERSION XYYYZZZ (1 + 3 + 3 digits) |
release_notes.md |
first heading, FastLED X.Y.Z (optionally (Next Release)) |
They drifted without anything noticing. Before #4443, master had library.properties = 3.10.4, library.json = 3.10.3 and FASTLED_VERSION = 3010004 while 3.10.5 was already published. Tag 3.10.4 itself shipped with library.json still saying 3.10.3. An Arduino UNO Q user who installed master correctly saw "3.10.4" in the IDE, concluded the install had not worked, and the Library Manager offered to "update" them back to a broken release.
Proposed check
1. Consistency (runs in bash lint, every PR). Parse the four locations and fail unless they all encode the same X.Y.Z, including the integer encoding of FASTLED_VERSION. Report every location and its value on failure. This is a cross-file structural check, so per agents/docs/linter-architecture.md it belongs on the Python side, not in the Rust per-file linter.
2. Not behind the latest release (same check). The shared version must be strictly greater than the highest X.Y.Z git tag that is an ancestor of HEAD — master is always the next release. Must degrade to a skip with a note, not a failure, when tags are unavailable (shallow CI clones, ZIP downloads); CI jobs that want this enforced need fetch-depth: 0 or fetch-tags.
3. Tag match (runs on tag push). A workflow triggered on X.Y.Z tags fails if the tag name differs from the in-tree version, and if the top release_notes.md heading still says (Next Release). No workflow currently triggers on version tags, so this is a new one.
Acceptance
- Reverting any single hunk of fix(unoq): compile-check the real Zephyr core in CI; move master past 3.10.5 #4443's version bump makes
bash lintfail and name the offending file. - A unit test covers the parser for each of the four formats plus the integer encoding (e.g.
3.10.6↔3010006). - Pushing a tag that disagrees with the tree fails the tag workflow.
Open question
Whether to go further and generate three of the four from one source of truth instead of linting them. Linting is the smaller change and catches the same drift; library.properties and library.json must exist as static files for the Arduino and PlatformIO registries either way.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Sep 19, 2026
Rule change for check 2 ("not behind the latest release"), after looking at how the PlatformIO registry picks up FastLED.
Its legacy crawler publishes whatever version
library.json/library.propertiesshow on the default branch; no tag or release triggers it. So master must not be ahead of the newest tag either, or unreleased master gets published under that number. #4449 moved master back to 3.10.5 for this reason.Revised rule, implemented as
bash release checkin #4448:FASTLED_VERSIONagree and equal the newest reachable tag;release_notes.mdmay open with the next version only if marked(Next Release)--releasing): exactly one step past the newest tag, notes heading finalRemaining for this issue: call that check from
bash lint, add the tag-push workflow, and cover the two sites the check does not read yet (docs/DoxyfilePROJECT_NUMBER= 3.10.3, and theFASTLED_SHOW_VERSIONmessage insrc/FastLED.h= 3.010.003).feat(lint): release_version stage -- version strings agree and master…
feat(release): bash release -- status, check, and registry publish
feat(lint): release_version stage -- version strings agree and master…
feat(release): bash release -- status, check, and registry publish
feat(lint): release_version stage -- version strings agree and master…
feat(release): bash release -- status and a crawler-aware version che…
feat(lint): tag-push workflow -- an X.Y.Z tag must name the tree's ve…
zackees commentedon Sep 22, 2026
All acceptance criteria are now met:
bash lint—release_versionstage (landed via feat(release): bash release -- status and a crawler-aware version check #4448): reverting any single hunk of fix(unoq): compile-check the real Zephyr core in CI; move master past 3.10.5 #4443's version bump fails lint and names the offending file.bash release check(feat(release): bash release -- status and a crawler-aware version check #4448): master's version must equal the newest reachable tag..github/workflows/check_tag.ymlrunsci/release.py check-tagonX.Y.Ztag pushes; fails when the tag disagrees with any in-tree site or the notes still say(Next Release). Non-canonical tags (3.09.1) rejected so the report can't contradict itself. Checkout usespersist-credentials: false— the tagged tree's own code runs, and it only needs to read files.ci/tests/test_release.pycover all version-string formats (includingdocs/DoxyfileandFASTLED_SHOW_VERSION), the3.10.6 ↔ 3010006integer encoding, drift, tag mismatch, and the canonical-tag guard.The two extra sites from the triage comment (
docs/DoxyfilePROJECT_NUMBER,FASTLED_SHOW_VERSIONmessage) are read by the check and covered by tests.🤖 Generated with Claude Code