Skip to content

Conversation

@codegen-sh
Copy link
Contributor

@codegen-sh codegen-sh bot commented Jun 29, 2025

Problem

The v0.56.1 release failed with "No files found to publish" error during PyPI upload. Investigation revealed a configuration race condition between the build and release jobs.

Root Cause

  • Build job uploads artifact with name: wheels
  • Release job downloads with pattern: wheels-*
  • Pattern mismatch: wheelswheels-*
  • Result: 0 artifacts downloaded → PyPI upload fails

Evidence from Failed Run

Found 1 artifact(s)
Filtering artifacts by pattern 'wheels-*'
Filtered from 1 to 0 artifacts
Total of 0 artifact(s) downloaded
error: No files found to publish

Solution

Update the artifact download pattern to match the actual artifact name:

# Before
pattern: wheels-*

# After  
pattern: wheels

Testing

This change will allow the release job to properly download the wheel artifacts created by the build job, enabling successful PyPI uploads.

Related


💻 View my workAbout Codegen

@codegen-sh codegen-sh bot requested review from a team and codegen-team as code owners June 29, 2025 22:47
@codecov
Copy link

codecov bot commented Jun 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

In commit d4e84fd, the build system was changed from cibuildwheel to uv build:
- Before: cibuildwheel created multiple platform-specific wheels with names like 'wheels-ubuntu-latest-3.12'
- After: uv build creates a single pure Python wheel uploaded as 'wheels'

However, the release job still used the old pattern 'wheels-*' which no longer matches
the new artifact name 'wheels', causing 0 artifacts to be downloaded and PyPI upload
to fail with 'No files found to publish'.

Changes:
- Update artifact download pattern from 'wheels-*' to 'wheels' to match new build system
- This fixes the v0.56.1 release failure and aligns with the pure Python wheel approach

Fixes: https://github.com/codegen-sh/codegen/actions/runs/15960085099
@codegen-sh codegen-sh bot force-pushed the codegen-bot/fix-release-artifact-pattern-mismatch-1751237199 branch from b27f8f3 to 98cce0d Compare June 29, 2025 22:50
@kopekC kopekC merged commit b28f1a5 into develop Jun 29, 2025
20 checks passed
@kopekC kopekC deleted the codegen-bot/fix-release-artifact-pattern-mismatch-1751237199 branch June 29, 2025 22:53
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