-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Compare versions by name and version number with the nomad history command #23889
Open
philrenaud
wants to merge
19
commits into
23846-nomad-job-tag-cli-command-scaffolding
Choose a base branch
from
23879-nomad-job-plan-version-flag
base: 23846-nomad-job-tag-cli-command-scaffolding
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.
Open
Compare versions by name and version number with the nomad history command #23889
philrenaud
wants to merge
19
commits into
23846-nomad-job-tag-cli-command-scaffolding
from
23879-nomad-job-plan-version-flag
Conversation
This file contains 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
* TaggedVersion information in structs, rather than job_endpoint * Test for taggedVersion description length * Some API plumbing
philrenaud
force-pushed
the
23879-nomad-job-plan-version-flag
branch
from
August 29, 2024 18:48
247e670
to
0e6233a
Compare
philrenaud
force-pushed
the
23879-nomad-job-plan-version-flag
branch
from
August 29, 2024 23:26
f331d39
to
16b4b26
Compare
philrenaud
force-pushed
the
23879-nomad-job-plan-version-flag
branch
from
September 4, 2024 14:17
6089729
to
967fc86
Compare
philrenaud
force-pushed
the
23879-nomad-job-plan-version-flag
branch
from
September 4, 2024 14:32
967fc86
to
c579b96
Compare
tgross
reviewed
Sep 4, 2024
philrenaud
commented
Sep 6, 2024
tgross
reviewed
Sep 6, 2024
tgross
reviewed
Sep 6, 2024
philrenaud
force-pushed
the
23879-nomad-job-plan-version-flag
branch
from
September 6, 2024 19:58
6b57647
to
4251ea8
Compare
… eye toward making them a new top-level CLI command soon
tgross
reviewed
Sep 9, 2024
philrenaud
changed the title
Compare versions by name with nomad plan and nomad history
Compare versions by name and version number with the nomad history command
Sep 9, 2024
tgross
approved these changes
Sep 9, 2024
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.
LGTM!
I've left some suggestions to improve the tests but nothing blocking once you've got those resolved.
philrenaud
requested review from
gulducat
and removed request for
Juanadelacuesta
September 17, 2024 20:17
@philrenaud I added the |
philrenaud
force-pushed
the
23846-nomad-job-tag-cli-command-scaffolding
branch
from
September 20, 2024 14:55
21ec042
to
7568f47
Compare
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.
Adds
diff_tag
anddiff_version
flags for the nomad job versions API endpoint,and for theandnomad job plan
nomad job history
commands.Adds
Tag
info tonomad job history
outputUsage:
(Prerequisite tag a version of your job with
nomad job tag apply
, per #23863)### Diff against a specific tagN.B.: Decided against this, as
plan
implies "looking to change things against currently-running. To implement later:nomad job diff
CLI command.### Diff against a specific version, whether tagged or notN.B.: Decided against this, as
plan
implies "looking to change things against currently-running. To implement later:nomad job diff
CLI command.See history including tag info, with diffs
(each version will show a diff to its predecessor, except for version 0 / first non-GC'd version, which has no known predecessor)
See history with diffs against a specific tag
See history with diffs against a specific version, whether tagged or not
Resolves #23879