Skip to content

Conversation

@aldy505
Copy link
Collaborator

@aldy505 aldy505 commented Oct 24, 2025

Similar stuff to how snuba's ci.yml works.

@aldy505 aldy505 requested a review from a team as a code owner October 24, 2025 00:49
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
if: ${{ github.event_name == 'pull_request' }}
with:
name: taskbroker-${{ matrix.platform }}
Copy link
Member

Choose a reason for hiding this comment

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

What happens if there are two pull requests open at the same time? Could they conflict over this name?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope. Github artifact is unique per commit run.

dockerfile_path: './Dockerfile'
build_args: TASKBROKER_GIT_REVISION=${{ github.sha }}
ghcr: true
ghcr: ${{ github.event_name != 'pull_request' }}
Copy link
Member

Choose a reason for hiding this comment

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

We use the images built from pull requests to do testing in non-production sandboxes. It would be good to keep that workflow available for staff.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ah that's a bit hard. I'll see what I can do tomorrow.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

And done!

@aldy505 aldy505 requested a review from markstory November 2, 2025 11:04
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3.10.0

- name: Create multiplatform manifests
if: ${{ (github.ref_name == 'main' || startsWith(github.ref_name, 'releases/')) && github.event_name != 'pull_request' }}
Copy link
Member

Choose a reason for hiding this comment

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

Won't we run the first two steps in this workflow all the time now?

@markstory markstory merged commit 836026f into getsentry:main Nov 3, 2025
17 checks passed
@aldy505 aldy505 deleted the fix/ci-for-external-contrib branch November 3, 2025 22:57
@evanh
Copy link
Member

evanh commented Nov 6, 2025

I'm going to revert this because builds are failing for my branches after this change. https://github.com/getsentry/taskbroker/actions/runs/19141787824/job/54709177819

@sentry-taskbroker-fast-revert-bot

PR reverted: 5521341

sentry-taskbroker-fast-revert-bot bot pushed a commit that referenced this pull request Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants