Skip to content

Conversation

seemethere
Copy link
Owner

Signed-off-by: Eli Uriegas [email protected]

const s3Prefix =
inputs.s3Prefix === ''
? `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${inputs.artifactName}`
? `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${github.context.runNumber}/${inputs.artifactName}`

Choose a reason for hiding this comment

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

Suggested change
? `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${github.context.runNumber}/${inputs.artifactName}`
? `${github.context.repo.owner}/${github.context.repo.repo}/${github.context.runId}/${github.context.runAttempt}/${inputs.artifactName}`

Copy link
Owner Author

Choose a reason for hiding this comment

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

runAttempt doesn't actually exist

Copy link
Owner Author

Choose a reason for hiding this comment

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

This is my PR to actually add it: actions/toolkit#1027

@seemethere seemethere changed the title add runNumber to default s3Prefix add runAttempt to default s3Prefix Mar 22, 2022
@seemethere seemethere merged commit c1c31f5 into main Mar 22, 2022
@seemethere seemethere deleted the add_run_number branch March 22, 2022 19:59
pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Apr 5, 2022
Updates our s3 actions to upload and download artifacts to versions that
include runAttempt in the prefix for the artifact. This change is mostly
to make it so that subsequent re-runs of a workflow do not attempt to
grab artifacts from previous runs

Coincides with:
* seemethere/upload-artifact-s3#4
* seemethere/download-artifact-s3#1

Signed-off-by: Eli Uriegas <[email protected]>

Pull Request resolved: #74576
Approved by: https://github.com/malfet, https://github.com/janeyx99
facebook-github-bot pushed a commit to pytorch/pytorch that referenced this pull request Apr 7, 2022
Summary:
Updates our s3 actions to upload and download artifacts to versions that
include runAttempt in the prefix for the artifact. This change is mostly
to make it so that subsequent re-runs of a workflow do not attempt to
grab artifacts from previous runs

Coincides with:
* seemethere/upload-artifact-s3#4
* seemethere/download-artifact-s3#1

Signed-off-by: Eli Uriegas <[email protected]>

Pull Request resolved: #74576
Approved by: https://github.com/malfet, https://github.com/janeyx99

Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/2ecc59086a5bc896c82f6f309d25569ec2933467

Reviewed By: b0noI

Differential Revision: D35435541

Pulled By: seemethere

fbshipit-source-id: 54ac419c21ded23a9c56c7433edf871150a16653
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants