Skip to content

feat(orchestrator): Make Orchestrator's get_replica_version method a thin wrapper...#10857

Merged
daniel-wong-dfinity-org-twin merged 4 commits into
masterfrom
orchestrator-get_replica_version-daniel-wong
Jul 22, 2026
Merged

feat(orchestrator): Make Orchestrator's get_replica_version method a thin wrapper...#10857
daniel-wong-dfinity-org-twin merged 4 commits into
masterfrom
orchestrator-get_replica_version-daniel-wong

Conversation

@daniel-wong-dfinity-org-twin

@daniel-wong-dfinity-org-twin daniel-wong-dfinity-org-twin commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

... around the get_replica_version (same name) method of RegistryClient.

This builds on PR 10840, where we started to become aware of StandardEngineReplicaVersionRecord.

👈 Previous PR | Next PR 👉

@daniel-wong-dfinity-org-twin
daniel-wong-dfinity-org-twin requested a review from a team as a code owner July 21, 2026 19:24
@github-actions github-actions Bot added the feat label Jul 21, 2026
Base automatically changed from do-not-ignore-ReplicaVersion-conversion-error-daniel-wong to master July 21, 2026 19:25
@zeropath-ai

zeropath-ai Bot commented Jul 21, 2026

Copy link
Copy Markdown

🟡 6 security issues detected below the blocking threshold. Reviewed everything up to 9da943a.

The following issues were found:

Security Overview
Detected Code Changes
Change Type Relevant files
Enhancement ► rs/orchestrator/BUILD.bazel
    Add lazy_static test dependency to rust_test configuration
Enhancement ► rs/orchestrator/Cargo.toml
    Add lazy_static as workspace dependency
Enhancement ► rs/orchestrator/src/registry_helper.rs
    Refactor get_replica_version to use registry_client and handle missing/subnet errors; add test module linkage
Enhancement ► rs/orchestrator/src/registry_helper_tests.rs
    Add tests for get_replica_version behavior (direct spec, standard engine path, missing subnet)
Enhancement ► rs/registry/helpers/src/subnet.rs
    Extend get_replica_version logic with detailed error handling and validation for replica_version_id; add comments on edge cases and illegal characters; update related logic to use new str_to_result helper
Enhancement ► rs/registry/helpers/src/subnet.rs (tests block updated/extended within same file)
    Add tests for illegal characters in replica_version_id and resolved standard engine replica version path

@daniel-wong-dfinity-org-twin
daniel-wong-dfinity-org-twin added this pull request to the merge queue Jul 22, 2026
Merged via the queue into master with commit b3369fa Jul 22, 2026
37 checks passed
@daniel-wong-dfinity-org-twin
daniel-wong-dfinity-org-twin deleted the orchestrator-get_replica_version-daniel-wong branch July 22, 2026 07:40
@daniel-wong-dfinity-org-twin

Copy link
Copy Markdown
Contributor Author

Oops. I forgot to rebase after PR 10851 went in (originally, this targetted the branch of that PR). Oops. I should not have set this to merge automatically. DOH! Oh well. I think in the end, the same result resulted. I'm surprised this was able to go in, was not blocked by conflict. I feel like that's usually what happens when you build on another PR, i.e. once the first one goes in, the second one says "CONFLICT! CONFLICT! WEE WOO WEE WOO! CONFLICT! CONFLICT!", but not this time for whatever reason 🤷 Ah, the wonders of git/GitHub. When are they going to learn that people continue working off their own work before it makes it into master???

pull Bot pushed a commit to mikeyhodl/ic that referenced this pull request Jul 22, 2026
…(in their SubnetRecord). (dfinity#10865)

In order for that to be allowed, the following conditions must be met:

1. Primarily, StandardEngineReplicaVersionRecord exists
2. This feature must be enabled via flag.

As per our standard way of doing this, this is currently DISABLED.

The plan is to enable it once all subnets (or maybe, just Cloud Engines)
understand how to handle a blank `replica_version_id` field.

[👈 Previous PR][prev]

[prev]: dfinity#10857

---------

Co-authored-by: Daniel Wong <daniel.wong@dfinity.org>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants