-
Notifications
You must be signed in to change notification settings - Fork 391
DO NOT MERGE - based on composite-proposal branch. Once that goes in, rebase from 5b07908e013864631779c9a2abde0d6f40eadaa4 feat(ic-admin): Added --snapshot-before to upgrades. #10004
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
Open
daniel-wong-dfinity-org
wants to merge
4
commits into
composite-proposal-daniel-wong
Choose a base branch
from
snapshot-on-upgrade-ic-admin-daniel-wong
base: composite-proposal-daniel-wong
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+250
−42
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
5b07908
Added --snapshot-before flag to ic-admin, specifically to its propose…
daniel-wong-dfinity-org 7dd984d
Support replacing a previous snpashot when upgrding. with test.
daniel-wong-dfinity-org 2891446
Swtiched from `--foo bar` to `--foo=bar` in snapshot tests. That way,…
daniel-wong-dfinity-org d2aedae
--snapshot-before test inspects success_value.
daniel-wong-dfinity-org File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: would it make sense to add an additional flag
--replace_snapshot, to be consistent with the TakeSnapshot proposal? I think the complexity from having an additional format ("replace=...") isn't worth the benefit of having one fewer argument.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I thought about that originally. What I don't want is for people to HAVE to supply both. I guess one way is to make
--snapshot-beforeoptional (but not banned either) when--replace-snapshotis used. So, supplying both would be supported, but not required.Another approach is
--snapshot-before=without-replacement(instead of just--snapshot-before) vs.--snapshot-before=replace=${ID}(same as what I sent out originally)Then, it is more symmetrical. WDYT?
I just kind of hate how
--snapshot-beforeand--replace-snapshotheavily overlap (e.g. when using--replace-snapshot, is--snapshot-beforeREQUIRED??).OTOH, I understand how
replace=${ID}(which results in having two=in oneargvelement) is a bit ugly; OTOH, that's not unheard of. E.g. inbazelthere's--test_env=ENV=VALUE.FWIW,
--snapshot-before replace=${ID}is equivalent to--snapshot-before=replace=${ID}, so at least you do not see two=in oneargv.