Skip to content

fix: support multiple dependency git mappings - #475

Merged
milyin merged 2 commits into
eclipse-zenoh:mainfrom
ZettaScaleLabs:merge-release-branch
Aug 25, 2026
Merged

fix: support multiple dependency git mappings#475
milyin merged 2 commits into
eclipse-zenoh:mainfrom
ZettaScaleLabs:merge-release-branch

Conversation

@diogomatsubara

@diogomatsubara diogomatsubara commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

The 1.10.0 release introduced zenoh-flat as dependency for zenoh-flat-jni repo. This PR updates set-git-branch action to allow the correct url/branch to be set to the right repository.

Fix https://github.com/eclipse-zenoh/ci/actions/runs/32243126985/job/96105227398.

As seen in https://github.com/eclipse-zenoh/ci/actions/runs/32243126985/job/96105227398
when set-git-branch action tries to update zenoh-flat-jni dependencies,
it should skip zenoh-flat and leave it unchanged.
@diogomatsubara
diogomatsubara marked this pull request as draft August 25, 2026 08:54
@diogomatsubara diogomatsubara changed the title chore: don't update git url for zenoh-flat fix: support multiple dependency git mappings Aug 25, 2026
@diogomatsubara
diogomatsubara marked this pull request as ready for review August 25, 2026 09:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the set-git-branch GitHub Action to support multiple dependency regex → git URL/branch mappings, enabling correct rewriting when a workspace depends on more than one zenoh-related repository (e.g., zenoh and zenoh-flat).

Changes:

  • Replace single deps-* inputs with multiline lists and parse them into aligned dependency mappings.
  • Apply each mapping when scanning Cargo.toml files (loop over mappings per manifest).
  • Add unit tests for dependency mapping parsing and update the merge workflow to provide two mappings (zenoh* and zenoh-flat).

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/set-git-branch.ts Introduces Dependency[] parsing and applies multiple mappings while updating Cargo manifests.
set-git-branch/action.yml Documents the deps-* inputs as multiline lists.
dist/set-git-branch-main.mjs Updates the bundled action output to match the new multiline parsing logic.
.github/workflows/merge-release-branch.yml Switches workflow inputs to provide two dependency mappings for zenoh and zenoh-flat.
__tests__/set-git-branch.test.ts Adds tests for parseDependencies.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/set-git-branch.ts
Comment thread __tests__/set-git-branch.test.ts
@milyin
milyin merged commit 3b0b37b into eclipse-zenoh:main Aug 25, 2026
3 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.

3 participants