Skip to content

feat: build multiarch pgrx image#153

Merged
kemingy merged 6 commits into
supervc-stack:mainfrom
kemingy:pgrx_multiarch
Dec 27, 2024
Merged

feat: build multiarch pgrx image#153
kemingy merged 6 commits into
supervc-stack:mainfrom
kemingy:pgrx_multiarch

Conversation

@kemingy

@kemingy kemingy commented Dec 26, 2024

Copy link
Copy Markdown
Contributor
  • sqllogictest-rs doesn't have Linux ARM64 release, tracked here
  • add rust-toolchain channel to image tag
  • use arm64 runner for clippy/build & release

Signed-off-by: Keming <kemingyang@tensorchord.ai>
Signed-off-by: Keming <kemingyang@tensorchord.ai>
@kemingy
kemingy requested a review from Copilot December 26, 2024 04:38

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • docker/pgrx.Dockerfile: Language not supported
Comments suppressed due to low confidence (2)

.github/workflows/pgrx.yml:50

  • Ensure that the channel parameter is correctly passed and utilized in the build-args and tags. Add tests to verify the behavior with different channel values.
TOOLCHAIN_CHANNEL=${{ github.event.inputs.channel }}

.github/workflows/pgrx.yml:47

  • Verify that the platforms parameter is correctly formatted and ensure that the multi-architecture build works as expected. Add tests to cover the behavior for different platforms.
platforms: "linux/amd64,linux/arm64"

Signed-off-by: Keming <kemingyang@tensorchord.ai>
Signed-off-by: Keming <kemingyang@tensorchord.ai>
@kemingy
kemingy requested review from VoVAllen and usamoi December 26, 2024 05:18
Comment thread docker/pgrx.Dockerfile Outdated
Comment thread docker/pgrx.Dockerfile Outdated
Comment thread docker/pgrx.Dockerfile Outdated
Comment thread .github/workflows/release.yml Outdated
matrix:
version: ["14", "15", "16", "17"]
arch: ["x86_64", "aarch64"]
runner: ["ubicloud-standard-4", "ubicloud-standard-4-arm"]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
runner: ["ubicloud-standard-4", "ubicloud-standard-4-arm"]
arch: ["x86_64", "aarch64"]


build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.runner }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
runs-on: ${{ matrix.runner }}
runs-on: ${{ matrix.arch == 'x86_64' && 'ubicloud-standard-4' || 'ubicloud-standard-4-arm' }}

@usamoi

usamoi commented Dec 26, 2024

Copy link
Copy Markdown
Contributor
  • sqllogictest-rs doesn't have Linux ARM64 release, tracked here

We could fork and cross compile it.

@kemingy

kemingy commented Dec 26, 2024

Copy link
Copy Markdown
Contributor Author
  • sqllogictest-rs doesn't have Linux ARM64 release, tracked here

We could fork and cross compile it.

Will fork it if they have no response in 24h.

Signed-off-by: Keming <kemingyang@tensorchord.ai>
Signed-off-by: Keming <kemingyang@tensorchord.ai>
@kemingy
kemingy merged commit 01835f0 into supervc-stack:main Dec 27, 2024
@kemingy
kemingy deleted the pgrx_multiarch branch December 27, 2024 04:06
spenc-r pushed a commit to spenc-r/VectorChord that referenced this pull request May 22, 2026
- `sqllogictest-rs ` doesn't have Linux ARM64 release, tracked
[here](risinglightdb/sqllogictest-rs#240)
- add rust-toolchain channel to image tag
- use arm64 runner for clippy/build & release

---------

Signed-off-by: Keming <kemingyang@tensorchord.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants