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

Update artifact actions to v4 #168 #170

Closed

Conversation

javierfreire
Copy link
Contributor

No description provided.

@javierfreire javierfreire force-pushed the artifact-actions-v4 branch 3 times, most recently from 7f3f56f to 5eb944d Compare November 6, 2024 14:53
@javierfreire javierfreire changed the title Update artifact actions to v4 Update artifact actions to v4 #168 Nov 6, 2024
src/action.ts Outdated
if (uploadResult.failedItems.length > 0) {
core.warning(`The following files could not be uploaded: ${uploadResult.failedItems}`)
}
await artifactClient.uploadArtifact(artifactName, artifacts, baseDir)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we keep the other functionality somehow? I mean continuing on errors and warning on failed uploads.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With the v4 all the artifacts are uploaded packed as one file, so that check makes no sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok. I see. We need to check for upload errors then. Right now, I believe a glitch on GitHub uploads does not break the action. But with your change, looking at the client library code, a glitch will show a warning but also bubbles up the error which I presume will make our action to fail.

Can you see if this make sense? If it does, think can we can avoid breaking. Overall, artifact upload is a nice to have, if it fails we still want to have the action succeed.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, I added a try/catch to handle the error

@javierfreire javierfreire force-pushed the artifact-actions-v4 branch 2 times, most recently from 57f9d8c to 1c6497b Compare November 7, 2024 09:37
Signed-off-by: Javier Friere <javier.freire@broadcom.com>
@javierfreire
Copy link
Contributor Author

This PR is replaced by the PR

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