Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement canisterSubnet primitive #4857

Merged
merged 16 commits into from
Mar 17, 2025
Merged

Conversation

ggreif
Copy link
Contributor

@ggreif ggreif commented Jan 20, 2025

This PR adds the primitive to get the current actor's subnet. Potentially the subnet the actor is residing in may change over time.


Depends-on dfinity/ic#3637. (On main, but not labeled/proposed/adopted yet.)

Needs https://github.com/dfinity/ic/releases/tag/release-2025-02-06_12-26-base in subnets

@ggreif ggreif added feature New feature or request canisters Language or compiler support for canister functionality DO-NOT-MERGE labels Jan 20, 2025
@ggreif ggreif self-assigned this Jan 20, 2025
@ggreif ggreif force-pushed the gabor/canister-subnet branch 4 times, most recently from 6b7aa86 to eb2dc94 Compare March 11, 2025 00:02
Copy link

github-actions bot commented Mar 11, 2025

Comparing from a3cbe28 to 85b540f:
In terms of gas, no changes are observed in 5 tests.
In terms of size, 5 tests regressed and the mean change is +0.0%.

@ggreif ggreif force-pushed the gabor/canister-subnet branch from ccd2589 to af7ac0b Compare March 11, 2025 09:05
nix/sources.json Outdated
@@ -26,10 +26,10 @@
"homepage": "",
"owner": "luc-blaeser",
"repo": "ic",
"rev": "01c8dfda47126bb5f688302e0161f17c2c0cfe6f",
"sha256": "16h037xagxwf00k13y3h0gvfs7f3c45z2ml0j1pgvzg2fx5pzahy",
"rev": "ec8add504e63f97a2bc7f470d1b64dca550235af",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

N.B.: I tried

$ git show origin/gabor/latest-drun
commit 12fec30a322fa5c39d97ea9385f2cdcaa22f6696 (origin/gabor/latest-drun)
Merge: d4820bfd4c 6e64281a8e
Author: Gabor Greif <gabor@dfinity.org>
Date:   Tue Mar 11 09:37:32 2025 +0100

    Merge tag 'release-2025-02-27_03-09-base' into gabor/latest-drun

too, but it generates strange cycle count failures.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

See #4951.

@ggreif ggreif force-pushed the gabor/canister-subnet branch from 768b7ba to 1f32f4d Compare March 14, 2025 17:55
@ggreif ggreif marked this pull request as ready for review March 14, 2025 18:39
@ggreif ggreif requested a review from a team as a code owner March 14, 2025 18:39
Copy link
Contributor

@Kamirus Kamirus left a comment

Choose a reason for hiding this comment

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

LGTM, but my expertise is still limited -- maybe @crusso or @luc-blaeser could take a look as well?

@ggreif ggreif added the automerge-squash When ready, merge (using squash) label Mar 17, 2025
@mergify mergify bot merged commit 68675da into master Mar 17, 2025
12 checks passed
@mergify mergify bot deleted the gabor/canister-subnet branch March 17, 2025 13:44
@mergify mergify bot removed the automerge-squash When ready, merge (using squash) label Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
canisters Language or compiler support for canister functionality feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants