Skip to content

Let release-developer publish the version the sources already name (#539) - #541

Merged
ambroise-leclerc merged 1 commit into
developfrom
539-release-sources-version
Nov 11, 2026
Merged

ambroise-leclerc merged 1 commit into
developfrom
539-release-sources-version

Conversation

@ambroise-leclerc

Copy link
Copy Markdown
Collaborator

Why

A pull request that changes the developer environment must advance distribution.json ahead of the pin (the wf-package check compares the header only when both name the same version). release-developer then refused that very version, because it required a version strictly greater than the one of distribution.json: after #540, develop names 0.9.1 and 0.9.1 could not be released.

What

  • js/developer/tools/check-release-version.sh <requested> <sources> <pinned>: the requested version must be greater than the published pin of DeveloperReleaseData.hpp and not lower than the sources. A published version stays refused.
  • The workflow calls the script instead of its inline comparison.
  • PUBLISHING.md states the rule.

Tests

  • ReleaseDeveloperWorkflow requires the workflow to compare the version with the sources and the pin; ReleaseDeveloperWorkflowRegression mutates that call and runs the rule on seven cases (the sources' version ahead of the pin is accepted; the published version, a version below the sources or below the pin, and a malformed one are refused).
  • Run locally as the two CMake scripts; the full suite is left to CI.

)

A pull request that changes the environment advances distribution.json ahead of the pin, and the workflow then refused
that very version. The requested version must now be greater than the published pin and not lower than the sources.
@coderabbitai

coderabbitai Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Le workflow de publication utilise un script pour valider la version demandée par rapport à la version des sources et à la version publiée. La documentation et les tests décrivent et vérifient ces contrôles.

Changes: Validation de version de publication

Layer / File(s) Summary
Règles de validation de version
js/developer/tools/check-release-version.sh
Le script vérifie le format MAJOR.MINOR.PATCH des trois versions. Il refuse une version demandée inférieure à celle des sources ou égale ou inférieure à celle publiée.
Intégration au workflow de publication
.github/workflows/ReleaseDeveloper.yml, js/developer/tools/PUBLISHING.md
Le workflow appelle le script avec la version demandée, celle des sources et celle publiée. La description de l’entrée et la documentation indiquent les contraintes de version.
Vérification de l’appel et des règles
test/cmake/CheckReleaseWorkflow.cmake, test/cmake/CheckReleaseWorkflowTests.cmake
Les vérifications exigent l’appel au script dans le workflow et testent les cas acceptés et refusés. Les tests du script sont ignorés si bash est absent.

Estimated code review effort: 2 (Simple) | ~12 minutes

Change: Bug fix

Possibly related PRs

Suggested reviewers: am-l

Merge Risk: Minimal · up to da51e

The release workflow now accepts a version already named by the sources when it is ahead of the published pin, and it still refuses published, lower or malformed versions. No actionable merge risk remains.

Pre-merge checks: Passed 5

Check name Status Explanation
Title check Passed Le titre décrit clairement le changement principal : permettre à release-developer de publier la version déjà indiquée par les sources.
Description check Passed La description est directement liée aux changements. Elle explique la nouvelle règle de version, le script ajouté, la mise à jour du workflow, la documentation et les tests.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (4 skipped: 4 unsupported.)

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 36e84bbf-384d-4a80-bdab-24b00704e59c
Commits

Reviewing files that changed from the base of the PR and between 3e2569c and da51e15.

Files selected for processing: 5

  • .github/workflows/ReleaseDeveloper.yml
  • js/developer/tools/PUBLISHING.md
  • js/developer/tools/check-release-version.sh
  • test/cmake/CheckReleaseWorkflow.cmake
  • test/cmake/CheckReleaseWorkflowTests.cmake

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@ambroise-leclerc
ambroise-leclerc merged commit 844eeb3 into develop Nov 11, 2026
23 of 25 checks passed
@ambroise-leclerc
ambroise-leclerc deleted the 539-release-sources-version branch November 11, 2026 13:04
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.

2 participants