-
Notifications
You must be signed in to change notification settings - Fork 302
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
Clarify --include-retries docs and fixes #1341
base: main
Are you sure you want to change the base?
Conversation
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.
Liking this change! Got a couple of little bits of feedback on the words (which are mostly my own from the other day 😇)
By default, only artifacts from the most recent job in a chain of retried jobs are downloaded. | ||
To include artifacts from previous retried jobs, use the "--include-retried-jobs" flag: |
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.
I wonder if this makes it clearer? “Retried” really feels like it does double duty here:
By default, only artifacts from the most recent job in a chain of retried jobs are downloaded. | |
To include artifacts from previous retried jobs, use the "--include-retried-jobs" flag: | |
By default, only artifacts from the last job in a chain of retried jobs are downloaded. | |
To include artifacts from superseded jobs, use the "--include-retried-jobs" flag: |
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.
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.
I’m just not sure “previous jobs” conveys “previous tries of this step” though, it seems ambiguous whether this means “prior jobs in the build” or something else
Co-authored-by: Jessica Stokes <[email protected]>
You can also use the step's job id (provided by the environment variable $BUILDKITE_JOB_ID) | ||
|
||
By default, only artifacts from the most recent job in a chain of retried jobs are downloaded. | ||
To include artifacts from previous retried jobs, use the "--include-retried-jobs" flag: |
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 agree. How about
To include artifacts from previous retried jobs, use the "--include-retried-jobs" flag: | |
To include artifacts also from all retried jobs belonging to this step, use the "--include-retried-jobs" flag: |
"Also", to make clear that it is as well as the last one. What do you reckon?
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.
CC @ticky
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.
I’m not sure this solves for the ambiguity in “retried,” and do we otherwise expose the step/job dichotomy to users?
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.
Good point. I'll ponder and reword tomorrow.
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.
We expose step just a couple of lines above, on line 35. But if we're not specifying a job ID, we're just using the artifact path, right, so this flag is just saying "get all the stuff, not just the most recent stuff", so mentioning the step isn't helpful. This might be better:
To include artifacts from previous retried jobs, use the "--include-retried-jobs" flag: | |
To include matching artifacts also from previous retried jobs as well as the most recent, use the "--include-retried-jobs" flag: |
CC: @jayco