Skip to content

fix(artifact): downgrade zero-byte upload warning to debug#2412

Open
jjoseph456 wants to merge 1 commit into
actions:mainfrom
jjoseph456:fix/artifact-zero-byte-warning
Open

fix(artifact): downgrade zero-byte upload warning to debug#2412
jjoseph456 wants to merge 1 commit into
actions:mainfrom
jjoseph456:fix/artifact-zero-byte-warning

Conversation

@jjoseph456
Copy link
Copy Markdown

Problem

When uploading a zero-byte file with skipArchive: true, a warning is emitted even though the upload completes successfully:

Warning: No data was uploaded to blob storage. Reported upload byte count is 0.

Zero-byte files are a valid use case (marker files, lock files, empty placeholders) and the upload finalizes correctly with size: 0.

Fix

Downgrade core.warning() to core.debug() so the message remains available for troubleshooting but doesn't pollute workflow output for legitimate zero-byte uploads.

Related

Fixes #2333
Related: actions/upload-artifact#777

When uploading a zero-byte file with skipArchive:true, a spurious warning
is emitted even though the upload completes successfully. Zero-byte files
are a valid use case (e.g. marker files, lock files) and the upload is
finalized correctly with size 0.

Downgrade from core.warning() to core.debug() so the message is still
available for troubleshooting but doesn't pollute workflow output.

Fixes actions#2333

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 18, 2026 20:10
@jjoseph456 jjoseph456 requested a review from a team as a code owner May 18, 2026 20:10
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.

[artifact] uploadArtifact({skipArchive:true}) warns when uploading zero-byte file

1 participant