-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
feat(ci): run self-hosted upgrade test #113388
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?
Changes from all commits
bd84e1c
8e7b684
16d82d4
019a423
d12be93
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -75,3 +75,33 @@ jobs: | |
| with: | ||
| githubToken: ${{ secrets.GITHUB_TOKEN }} | ||
| migration: ${{ steps.file.outputs.added }} | ||
|
|
||
| upgrade-test: | ||
| name: Upgrade Test | ||
| runs-on: ubuntu-24.04 | ||
| timeout-minutes: 30 | ||
| needs: did-migration-change | ||
| if: ${{ needs.did-migration-change.outputs.modified == 'true' || needs.did-migration-change.outputs.added == 'true' }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Upgrade test never triggers for modified migrationsMedium Severity The Reviewed by Cursor Bugbot for commit d12be93. Configure here. |
||
| steps: | ||
| - name: Get latest release tag | ||
| id: latest_release | ||
| run: echo "tag=$(gh release list --json tagName,isLatest --jq '.[] | select(.isLatest)|.tagName')" >> "$GITHUB_OUTPUT" | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Missing repo context for
|
||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| ref: ${{ steps.latest_release.outputs.tag }} | ||
| - name: Setup sentry env | ||
| uses: ./.github/actions/setup-sentry | ||
| with: | ||
| mode: migrations | ||
| - name: Apply migrations | ||
| run: | | ||
| sentry upgrade --noinput | ||
| # Checkout the current ref | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| clean: false | ||
| - name: Apply migrations again to test upgrade path | ||
| run: | | ||
| sentry upgrade --noinput | ||


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.
Bug: The
upgrade-testCI job will not run for modified migration files because themigrations_modifiedfilter is not defined in.github/file-filters.yml.Severity: MEDIUM
Suggested Fix
Define the
migrations_modifiedfilter in.github/file-filters.ymlusing themodified:event qualifier, similar to howmigrations_addedis defined. This will ensure thedorny/paths-filteraction correctly detects modified migration files and populates themigrations_modifiedoutput, allowing theupgrade-testjob to trigger as intended.Prompt for AI Agent