Repository navigation
refactor(sns): NNS1-3207: Use NeuronRecipes in SNS Swap - #629
Merged
Merged
Conversation
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
4 times, most recently
from
July 26, 2024 02:54
fd4af6d to
4328a29
Compare
anchpop
force-pushed
the
@anchpop/NNS1-3207
branch
2 times, most recently
from
July 26, 2024 15:21
1b3a950 to
194bcfc
Compare
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
3 times, most recently
from
July 26, 2024 17:46
eea0ce9 to
43e73e7
Compare
anchpop
force-pushed
the
@anchpop/NNS1-3207
branch
from
July 26, 2024 17:47
194bcfc to
ab60c3c
Compare
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
3 times, most recently
from
July 26, 2024 21:24
e3afc60 to
51319f0
Compare
anchpop
force-pushed
the
@anchpop/NNS1-3207
branch
from
July 29, 2024 16:02
ab60c3c to
4e9dce6
Compare
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
5 times, most recently
from
July 29, 2024 19:21
aa4e3f4 to
e3d0da6
Compare
anchpop
force-pushed
the
@anchpop/NNS1-3207
branch
from
July 29, 2024 20:49
4e9dce6 to
faeb3a6
Compare
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
from
July 30, 2024 15:20
e3d0da6 to
be272ad
Compare
anchpop
force-pushed
the
@anchpop/NNS1-3207
branch
from
July 30, 2024 15:38
faeb3a6 to
b1b8d65
Compare
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
2 times, most recently
from
July 30, 2024 16:15
b61bdd6 to
923f0a3
Compare
anchpop
marked this pull request as ready for review
July 30, 2024 16:39
anchpop
marked this pull request as draft
July 30, 2024 16:39
anchpop
force-pushed
the
@anchpop/neuron-recipies-refactor
branch
from
July 30, 2024 17:42
923f0a3 to
634c864
Compare
anchpop
force-pushed
the
@anchpop/NNS1-3207
branch
from
July 30, 2024 21:54
b1b8d65 to
82db927
Compare
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
aterga
reviewed
Aug 5, 2024
anchpop
commented
Aug 5, 2024
anchpop
commented
Aug 5, 2024
aterga
approved these changes
Aug 5, 2024
anchpop
force-pushed
the
@anchpop/NNS1-3207
branch
2 times, most recently
from
August 5, 2024 19:11
b31f7ed to
b4b4d62
Compare
aterga
force-pushed
the
@anchpop/NNS1-3207
branch
from
August 5, 2024 20:25
b4b4d62 to
70c90b8
Compare
anchpop
enabled auto-merge
August 5, 2024 20:45
github-merge-queue Bot
pushed a commit
that referenced
this pull request
Aug 6, 2024
…ecycle tests (#705) This PR adds the newly expected hotkeys from NNS neurons of Neurons' Fund participants as SNS neuron permissions of SNS neurons created after a successful swap with Neurons' Fund participation. Additionally, the code is slightly refactored so that the test can reuse the algorithm for picking subsets of hotkeys (in cases when there are too many of them on the NNS side). < [Previous PR](#629) | --------- Co-authored-by: Andre Popovitch <[email protected]>
| ERROR, | ||
| "Missing neuron_attributes information for neuron recipe {:?}", | ||
| recipe, | ||
| // Here we convert the SnsNeuronRecipe (a Swap concept) to an SnsNeuronRecipe (an SNS |
8 of 9 tasks
AleDema
pushed a commit
to AleDema/ic
that referenced
this pull request
Oct 18, 2026
…dfinity#11828) ## Summary Resolves the 8 open cargo Dependabot alerts, which are filed against `Cargo.lock` and `Cargo.Bazel.toml.lock`. | Crate | Old → New | Alerts closed | |---|---|---| | rustls | 0.23.37 (Cargo) / 0.23.27 (Bazel) → 0.23.45 | dfinity#630, dfinity#634 (GHSA-2mjx-qc3c-rqvc) | | hickory-resolver, hickory-net, hickory-proto | 0.26.1 → 0.26.3 | dfinity#627-dfinity#629, dfinity#631-dfinity#633 (GHSA-5j98-2g5x-46v6, GHSA-6w6g-hm98-mhgm, GHSA-6f2x-v7q7-m7m5) | The new versions force these transitive bumps: - rustls ≥ 0.23.44 requires aws-lc-rs ^1.18. That moves aws-lc-rs 1.17.3 → 1.18.1, aws-lc-sys 0.43.0 → 0.45.0 (AWS-LC 5.7.0) and rustls-webpki 0.103.13 → 0.103.15. - Bazel lock only: hickory 0.26.3 requires resolv-conf ^0.7.6 and ipnet ^2.11. That moves resolv-conf 0.7.0 → 0.7.6 and ipnet 2.10.1 → 2.12.2, and drops hostname 0.3.1 and match_cfg. Notes: - **The version floors are raised in both `Cargo.toml` and `bazel/rust.MODULE.bazel`.** This keeps the two builds aligned and stops them from regressing into the vulnerable ranges. - The Bazel lock had been on rustls 0.23.27 since dfinity#5114, while the Cargo lock moved to 0.23.37 in dfinity#9330. Production (Bazel) binaries therefore jump 18 rustls releases, which is why this PR runs with `CI_ALL_BAZEL_TARGETS`. - **hickory 0.26.3 instead of the advisories' first patched version, 0.26.2.** 0.26.2 declares `hickory-net ^0.26.0` but does not compile against hickory-net 0.26.1 (hickory-dns/hickory-dns#3881). `cargo update --precise 0.26.2` keeps hickory-net at 0.26.1. - **PocketIC DNSSEC opt-out.** - Since 0.26.2, hickory returns an error for answers that fail DNSSEC validation. That is the GHSA-5j98 fix; 0.26.1 returned such answers as `Ok`. - 0.26.2 and 0.26.3 also have an open regression, hickory-dns/hickory-dns#3963, introduced by the GHSA-6w6g fix. Validated lookups fail when two or more nameservers return truncated replies. That is routine for the DNSKEY sets of .io, .org, .systems and .network. - ic-bn-lib validates by default. As a result, a PocketIC HTTP gateway created with `forward_to: Replica("https://icp-api.io")` hung in `POST /http_gateway`, because `setup_router(...).unwrap()` panicked in the spawned task. - The gateway resolver now passes `--dns-dnssec-disabled`. That matches the previous effective behaviour, since bogus results were ignored. A TODO tracks dropping the flag once a hickory release includes hickory-dns/hickory-dns#4062. - Nothing else in the repo validates DNSSEC: - the replica's nns_delegation_manager and reqwest's hickory resolver run without validation; - ic-boundary resolves through the registry; - the GuestOS ic-gateway sidecar is not launched, and its `IC_URL` is an IP literal. ## How regenerated ``` cargo update -p rustls --precise 0.23.45 ./bin/bazel-pin.sh rustls=0.23.45 cargo update -p hickory-resolver --precise 0.26.3 ./bin/bazel-pin.sh hickory-resolver=0.26.3 ``` `./bin/bazel-pin.sh <crate>=<version>` runs `cargo update --package <crate> --precise <version>`. The script's `<crate>@<version>` form is only a package-ID spec, not `--precise`. ## Test plan - [x] `cargo update --workspace && ./bin/bazel-pin.sh` is a no-op ("Locking 0 packages", "Nothing to repin."). This mirrors CI's lock-generate. - [x] `cargo check --all-targets --all-features -p pocket-ic-server`, `cargo fmt` and `./ci/scripts/rust-lint.sh` - [x] `bazel run //bazel:buildifier.check` - [x] `bazel build //... --nobuild`: clean except the known host-only `@libvirt` repo - [x] `bazel build //rs/pocket_ic_server:pocket-ic-server`: the first build of aws-lc-sys 0.45.0 under the hermetic toolchain - [x] `bazel test //rs/http_endpoints/nns_delegation_manager:nns_delegation_manager_test //rs/crypto:integration_suite_tests/tls_handshake_test` - [x] PocketIC HTTP gateway with `forward_to: Replica("https://icp-api.io")`: - with this PR, `GET /api/v2/status` through the gateway returns HTTP 200; - with the hickory bump but without the opt-out, `POST /http_gateway` hangs and the server panics with "unable to fetch IC root key ... client error (Connect)". Both results reproduced 2/2. - [x] CI passes with `CI_ALL_BAZEL_TARGETS`. This covers Bazel Test All over `//...` including long and system tests, arm64-linux, arm64-darwin and PocketIC Lint/Tests on Windows (aws-lc-sys 0.45 on MSVC). Build Determinism compared 62k execlog lines with no mismatches. - [ ] Dependabot closes the alerts listed above after merge. The `Cargo.Bazel.toml.lock` ones close once `bazel-dependency-submission` has run on master. ## Follow-ups - Drop the PocketIC `--dns-dnssec-disabled` flag (the TODO in `state.rs`) once we upgrade to a hickory-dns release that includes hickory-dns/hickory-dns#4062. - A panic in PocketIC's spawned HTTP gateway setup task leaves `POST /http_gateway` waiting on `listening()` forever. `setup_router(...).await.unwrap()` is one such panic, and it is how the DNSSEC failure surfaced. Propagating setup errors back to the caller would turn hangs like this into errors. This is pre-existing and left to the PocketIC owners. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#596 added
NeuronRecipesinClaimSwapNeuronsRequest, a replacement forNeuronParameters. This PR uses it in SNS Swap| Next PR >