Skip to content

Add workflows to test upload-artifact 500-file limit#44

Merged
mickeygousset merged 4 commits intomainfrom
copilot/create-multiple-workflow-files
Jan 21, 2026
Merged

Add workflows to test upload-artifact 500-file limit#44
mickeygousset merged 4 commits intomainfrom
copilot/create-multiple-workflow-files

Conversation

Copy link
Contributor

Copilot AI commented Jan 21, 2026

Tests the upload-artifact action's 500-file limitation across three scenarios: exceeding the limit, working around it with split uploads, and working around it with compression.

Workflows Added

  • upload-artifact-test-single-upload.yml: Uploads 501 files in a single upload-artifact step to verify limit behavior
  • upload-artifact-test-split-upload.yml: Splits 501 files across two upload-artifact steps (250 + 251 files) to demonstrate the workaround
  • upload-artifact-test-zipped.yml: Zips 501 files into a single archive before upload, bypassing the per-file limit

All workflows are manually triggered via workflow_dispatch and use actions/upload-artifact@v4.

Implementation Details

Each workflow creates test files dynamically:

- name: Create 501 test files
  run: |
    mkdir -p test-files
    for i in {1..501}; do
      echo "This is test file number $i" > test-files/file-$i.txt
    done

The split upload workflow separates files into distinct directories to ensure accurate partitioning before uploading each set independently.

Original prompt

This section details on the original issue you should resolve

<issue_title>Create multiple workflow files to test the upload limits of the actions/upload-artifact action</issue_title>
<issue_description>The Github actions Upload-artifact (https://github.com/actions/upload-artifact) has a limitation where you can only upload 500 files using it in a single job. https://github.com/actions/upload-artifact?tab=readme-ov-file#breaking-changes

I want to create some workflows to test this.

Workflow 1
This workflow should have a single job in it. It should have a step that creates 501 files, and then uses the upload-artifact action to load all 501 files to the workflow, to see what happens.

Workflow 2
This workflow should have a single job in it. It should have a step that creates 501 files, but this time it uses 2 upload-artifact action steps in the same job. The first one loads files 1-250, the second loads 251 - 501

Workflow 3
This workflow should have a single job in it. It should have a step that creates 501 files. it should then zip those files into a single zip file. And then use the upload-artifact action to load the zip file.

Only create these three worfklow files. Don't go creates any extra soruce code or anything, it should all happen in the workflows themselves.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits January 21, 2026 22:16
Co-authored-by: mickeygousset <20031479+mickeygousset@users.noreply.github.com>
Co-authored-by: mickeygousset <20031479+mickeygousset@users.noreply.github.com>
Co-authored-by: mickeygousset <20031479+mickeygousset@users.noreply.github.com>
Copilot AI changed the title [WIP] Create workflows to test upload limits of upload-artifact action Add workflows to test upload-artifact 500-file limit Jan 21, 2026
Copilot AI requested a review from mickeygousset January 21, 2026 22:20
@mickeygousset mickeygousset marked this pull request as ready for review January 21, 2026 22:26
@mickeygousset mickeygousset merged commit bfec176 into main Jan 21, 2026
@mickeygousset mickeygousset deleted the copilot/create-multiple-workflow-files branch January 22, 2026 00:41
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.

Create multiple workflow files to test the upload limits of the actions/upload-artifact action

2 participants