Skip to content

Stopped the version pass skipping ports in silence - #786

Merged
fdesbiens merged 1 commit into
eclipse-threadx:devfrom
fdesbiens:harden-version-pass
Sep 28, 2026
Merged

fdesbiens merged 1 commit into
eclipse-threadx:devfrom
fdesbiens:harden-version-pass

Conversation

@fdesbiens

Copy link
Copy Markdown
Contributor

The port stage of prepare_release.sh matched a version only where Version was followed immediately by four dotted numbers. A port writing three numbers, or carrying a stray letter before the first, was passed over and kept its old release — and the pass printed its usual success either way.

ThreadX has one such port. ports/risc-v32/iar/inc/tx_port.h reads Version G6.5.0.202601, and the letter in front of the number has kept it out of every pass since it appeared, so it has advertised 6.5.0.202601 across two releases it was not part of. The version pass for 6.5.2.202603 has already run and did not touch it. Its string now reads the current release.

The pattern now accepts three or four numbers and tolerates a leading letter. More to the point, a check follows it: any port header that names a release other than the one being prepared is listed by path and the pass stops. A port the substitution cannot reach now fails the release rather than shipping a version that misreports itself.

The same gap exists across the suite and is fixed in filex#113, netxduo#458, guix#200 and usbx#288. FileX's Win32 and Win64 ports were about to ship reporting the previous release; NetX Duo's Cortex-R5/GNU port reads Version 6.4.1.

Verified: every ThreadX port header now advertises 6.5.2.202603. Against a FileX tree, a port the substitution cannot reach makes the pass name the file and exit non-zero, and correcting that string lets the pass complete.

The port stage matched a version only where "Version" was followed immediately by
four dotted numbers. A port writing three numbers, or a stray letter before the
first, was passed over and kept its old release, and the pass reported success
either way.

The RISC-V32/IAR port is one of them. It reads "Version G6.5.0.202601", and the
letter in front of the number has kept it out of every pass since, so it has
advertised 6.5.0.202601 across two releases it was not part of. Its string now
reads the current release.

The pattern accepts three or four numbers and tolerates a leading letter. A check
follows it: any port header that names a release other than the one being
prepared is listed and the pass stops, so a port the substitution cannot reach
fails the release instead of shipping a version that misreports itself.

Verified: every ThreadX port header now advertises 6.5.2.202603. Against a FileX
tree, a port the substitution cannot reach makes the pass name the file and exit
non-zero, and correcting that string lets the pass complete.

Assisted-by: Claude Code (Opus 5) <noreply@anthropic.com>
@fdesbiens
fdesbiens merged commit 0a52df8 into eclipse-threadx:dev Sep 28, 2026
15 checks passed
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