-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
ci(release): Switch from action-prepare-release to Craft #106005
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
base: master
Are you sure you want to change the base?
Conversation
This PR migrates from the deprecated action-prepare-release to the new Craft GitHub Actions (reusable workflow or composite action). Changes: - Migrate .github/workflows/release.yml to Craft reusable workflow - Update .craft.yml with versioning.policy: calver
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨Aci
Ai Conversations
Alerts
Api
Autofix
Autopilot
Code Review
Dashboards
Dynamic Grouping
Dynamic Groups
Explorer
Grouping
Issues
Occurrences On Eap
Preprod
Projects
Replay
Replays
Search Bar
Seer
Stories
Toolbar
Top Issues
Tracemetrics
Uptime
Other
Bug Fixes 🐛Aci
Alerts
Api
Auth
Billing
Checkout
Code Mappings
Code Review
Codeowners
Dashboards
Escalating Forecast
Explore
Explorer
Github
Grouping
Issues
Preprocessing
Preprod
Security
Seer
Stories
Theme
Tracemetrics
Ui
Uptime
Other
Documentation 📚
Build / dependencies / internal 🔧Aci
Admin
Alerts
Api
Ask Seer
Auth
Billing
Checkout
Code Review
Core
Dashboards
Discover
Dynamic Sampling
Explorer
Grouping
Insights
Issue Search
Layout
Llm Detector
Preprod
Scraps
Seer
Seer Onboarding
Sentry Apps
Settings
Theme
Top Issues
Ui
Unmerge
Uptime
Other
Other
Plus 89 more 🤖 This preview updates automatically when you update the PR. |
.github/workflows/release.yml
Outdated
| version: ${{ github.event.inputs.version }} | ||
| force: ${{ github.event.inputs.force }} | ||
| calver: true | ||
| uses: getsentry/craft/.github/workflows/release.yml@v2 |
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.
Are these release tags immutable? We purposely pin all actions to sha's in sentry
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.
They are not and it is on purpose. This should be okay for Craft.
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.
What's the harm in using the sha? It keeps convention of all the other actions in the repo so that's what I would prefer
The previous migration incorrectly removed the GitHub App token authentication step. This commit restores it by switching to the composite action pattern which preserves the auth flow.
|
|
||
| jobs: | ||
| changelog-preview: | ||
| uses: getsentry/craft/.github/workflows/changelog-preview.yml@v2 |
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.
Craft reusable workflow uses mutable tag instead of SHA (Bugbot Rules)
Medium Severity
The PR discussion explicitly states the team convention to "pin all actions to sha's in sentry." However, the changelog-preview.yml workflow references getsentry/craft/.github/workflows/changelog-preview.yml@v2 using a mutable tag, while release.yml in the same PR correctly SHA-pins the Craft action with @39ee616a6a58dc64797feecb145d66770492b66c. This inconsistency violates the stated team convention and could cause reproducibility issues if the v2 tag changes.
|
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
.github/workflows/acceptance.yml
Outdated
| frontend_all: ${{ steps.changes.outputs.frontend_all }} | ||
| steps: | ||
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.1.7 |
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.
Seems like the commits are changed but the versions are not, is that expected?
.github/workflows/release.yml
Outdated
| app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }} | ||
| private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }} | ||
| - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v2 |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
| - reopened | ||
| - edited | ||
| - labeled | ||
| - unlabeled |
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.
YAML indentation error breaks workflow trigger configuration
High Severity
The - unlabeled entry on line 10 has incorrect indentation. It's at 4 spaces (same level as types:), but needs to be at 6 spaces to be part of the types: list. This creates invalid YAML since you cannot mix a mapping key with a sequence item at the same level. The workflow will either fail to parse or won't trigger on unlabeled events, breaking the changelog preview functionality for that event type.
Summary
This PR migrates from the deprecated
action-prepare-releaseto the new Craft GitHub Actions.Changes
.github/workflows/release.ymlto Craft reusable workflow.craft.ymlwithversioning.policy: calverDocumentation
See https://getsentry.github.io/craft/github-actions/ for more information.