-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
ci: provide arm64 image build #83907
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
Based on the Sentry-ARM commit: getsentry@0572d2f Co-authored-by: Vita Chumakova <[email protected]>
Ping so this won't get lost @hubertdeng123 @BYK @bc-sentry |
Since we are exclusively on Docker Compose 2 now, I think we should use this as an opportunity to get rid of And guessing for |
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.
@aldy505 While arm64 runners are in beta, the global pool of runners is severely constrained and will result in job queuing. We would like to wait to add the arm64 image until runners is prod and sufficient capacity exists. Thanks.
slightly easier patch woudl be to install them from apt instead of curl anyway |
@aldy505 While arm64 runners are in beta, the global pool of runners is severely constrained and will result in job queuing. We would like to wait to add the arm64 image until runners is prod and sufficient capacity exists. Thanks. |
.github/workflows/self-hosted.yml
Outdated
- run: docker login --username '${{ github.actor }}' --password-stdin ghcr.io <<< "$GHCR_TOKEN" | ||
env: | ||
GHCR_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
if: github.event_name != 'pull_request' | ||
- run: docker login --username '${{ github.actor }}' --password '${{ github.token }}' ghcr.io | ||
if: github.ref_name == 'master' && github.event_name != 'pull_request' |
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.
don't change things that are unnecessary to change. for instance this is worse than before since the password ends up in pslogs and you get a new warning
publish-dockerhub: | ||
needs: [assemble] | ||
runs-on: ubuntu-latest | ||
if: ${{ (github.ref_name == 'master') }} |
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.
No pull_request
limitation?
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.
No need, the assemble itself already has this guard:
if: ${{ github.ref_name == 'master' && github.event_name != 'pull_request' }}
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.
Then why this check at all?
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.
Double guard :)
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.
Err, no please. Either have it full or none. No in between stuff.
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.
Have 2 questions, other than that this looks good!
We should probably extract the cross-arch build stuff into its own action as we keep repeating the same pattern across repos at this point.
self-hosted/Dockerfile
Outdated
&& chmod +x /usr/local/bin/tini \ | ||
&& apt-get purge -y --auto-remove $buildDeps | ||
|
||
SHELL ["/bin/sh", "-c"] |
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.
Do we need this?
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.
This was taken from here master...Sentry-ARM:sentry:arm64
cc @ezhevita
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.
No, it's not necessary, I've added this to restore the default shell just to be safe, in practice there should be no behavioural differences and you should be able to run the rest of the dockerfile in bash
Very old review. Will revert or limit if arm64 runners become and issue.
In order to make #83907 works, we met a failing PR caused by rspack. The issue is here (web-infra-dev/rspack#10118), and it's fixed since 1.3.11. I'm bumping it to 1.3.15 just to make it as latest as possible. ### Legal Boilerplate Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
@@ -19,8 +19,17 @@ env: | |||
|
|||
jobs: | |||
self-hosted: | |||
runs-on: ubuntu-latest |
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.
I believe this change is causing ci builds to fail for the 25.6.0 release:
https://github.com/getsentry/publish/actions/runs/15688973336/job/44199206790
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.
followed up #93640
Follow up to #83907 publish is still failing: https://github.com/getsentry/publish/actions/runs/15717244959/job/44289929012
In order to make #83907 works, we met a failing PR caused by rspack. The issue is here (web-infra-dev/rspack#10118), and it's fixed since 1.3.11. I'm bumping it to 1.3.15 just to make it as latest as possible. ### Legal Boilerplate Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
Effort for getsentry/self-hosted#1585 See the GHA results here: https://github.com/getsentry/sentry/actions/runs/12928078209?pr=83907 ### Legal Boilerplate Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. --------- Co-authored-by: Vita Chumakova <[email protected]> Co-authored-by: Burak Yigit Kaya <[email protected]>
In order to make #83907 works, we met a failing PR caused by rspack. The issue is here (web-infra-dev/rspack#10118), and it's fixed since 1.3.11. I'm bumping it to 1.3.15 just to make it as latest as possible. ### Legal Boilerplate Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.
Effort for getsentry/self-hosted#1585 See the GHA results here: https://github.com/getsentry/sentry/actions/runs/12928078209?pr=83907 ### Legal Boilerplate Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. --------- Co-authored-by: Vita Chumakova <[email protected]> Co-authored-by: Burak Yigit Kaya <[email protected]>
Follow up to #83907
Follow up to #83907 publish is still failing: https://github.com/getsentry/publish/actions/runs/15717244959/job/44289929012
Effort for getsentry/self-hosted#1585
See the GHA results here: https://github.com/getsentry/sentry/actions/runs/12928078209?pr=83907
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.