Skip to content

Upgrade dawidd6/action-download-artifact to v20 and filter by name#47

Merged
mahangu merged 1 commit into
trunkfrom
fix/increase-ctrf-retention
Apr 6, 2026
Merged

Upgrade dawidd6/action-download-artifact to v20 and filter by name#47
mahangu merged 1 commit into
trunkfrom
fix/increase-ctrf-retention

Conversation

@mahangu
Copy link
Copy Markdown
Contributor

@mahangu mahangu commented Apr 6, 2026

Summary

  • Upgrade dawidd6/action-download-artifact from v11 to v20 (pinned by SHA)
  • Add name: test-output-* filter to skip build cache artifacts
  • Fix workflow_dispatch payload handling so the workflow can be tested manually. Previously only repository_dispatch payloads were parsed; workflow_dispatch inputs were ignored.

Context

The Report workflow has been failing at artifact download since ~April 3, which caused the Cleanup workflow to progressively delete all CTRF files from S3 (2-day retention), breaking the downstream Airflow ETL (qualityops.e2e_test_results).

Root cause: Automattic/jetpack#47415 (merged March 8) upgraded to actions/upload-artifact@v7, which introduced archive: false for build cache artifacts (.tar.xz files). dawidd6@v11 could not handle the mix of zipped and non-zipped artifacts, causing the download step to fail.

Fix: Upgrade to dawidd6@v20 (uses @actions/artifact@6.2.1) and add a name filter so only test output artifacts are downloaded, skipping the build cache.

Test plan

  • Triggered workflow_dispatch on this branch with Jetpack e2e run 24003101758 (successful run)
  • Artifact download succeeds (5 test-output artifacts downloaded, 2 build cache artifacts skipped)
  • CTRF report files uploaded to S3
  • Allure reports generated

🤖 Generated with Claude Code

@mahangu mahangu requested a review from alopezari April 6, 2026 04:02
@mahangu mahangu force-pushed the fix/increase-ctrf-retention branch from 6f2eeaf to 31fd514 Compare April 6, 2026 04:19
Automattic/jetpack#47415 upgraded to actions/upload-artifact@v7, which
introduced archive: false for build cache artifacts. dawidd6 v11 could
not handle the mix of zipped and non-zipped artifacts when downloading
all artifacts from a run.

Upgrade to v20 (which uses @actions/artifact@6.2.1) and add a name
filter (test-output-*) to only download the test output artifacts the
report generation needs.

Also fix workflow_dispatch payload handling so the workflow can be
triggered manually for testing.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@mahangu mahangu force-pushed the fix/increase-ctrf-retention branch from 31fd514 to 7948812 Compare April 6, 2026 05:39
@mahangu mahangu self-assigned this Apr 6, 2026
Copy link
Copy Markdown

@alopezari alopezari left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this @mahangu! LGTM.

@mahangu mahangu merged commit 34f4bd8 into trunk Apr 6, 2026
3 checks passed
@mahangu mahangu deleted the fix/increase-ctrf-retention branch April 6, 2026 07:04
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