-
-
Notifications
You must be signed in to change notification settings - Fork 2
ci: rename CI workflow to Build and fix artifact filter #229
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
Conversation
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Cli
Other
Bug Fixes 🐛Upgrade
Other
Documentation 📚
Internal Changes 🔧Ci
Other
Other🤖 This preview updates automatically when you update the PR. |
Craft's GitHub artifact provider matches the artifact config keys against the workflow run's name field, not the filename. Our config used `ci.yml` (the filename) but the workflow declared `name: CI`, so no runs matched and artifact retrieval failed after 3 retries. Rename the workflow from `CI` to `Build` which better describes its purpose, and update `.craft.yml` to match.
b12340f to
f0e6150
Compare
Codecov Results 📊✅ Patch coverage is 100.00%. Project has 3871 uncovered lines. Files with missing lines (67)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 69.85% 69.85% —%
==========================================
Files 105 105 —
Lines 12841 12841 —
Branches 0 0 —
==========================================
+ Hits 8970 8970 —
- Misses 3871 3871 —
- Partials 0 0 —Generated by Codecov Action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Craft's GitHubArtifactProvider.filterWorkflowRuns() matches config keys against the workflow's name field, not the filename. The key 'ci.yml' would never match the workflow named 'CI', causing artifact retrieval to fail. Ref: getsentry/cli#229
Summary
Publishing with craft fails because the artifact filter key in
.craft.ymlused the workflow filename (ci.yml) instead of the workflow name field. Craft'sGitHubArtifactProvider.filterWorkflowRuns()matches config keys againstrun.name, so the filterci.yml(regex/^ci\.yml$/) never matched"CI", causing artifact retrieval to fail after 3 retries.Changes
CItoBuild.craft.ymlartifact filter key fromci.ymltoBuild