feat: support kubernetes service-accounts #1696
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Spark Integration | |
on: | |
push: | |
branches: | |
- main | |
- 'release-*' | |
pull_request: | |
branches: | |
- main | |
- 'release-*' | |
env: | |
CARGO_TERM_COLOR: always | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | |
cancel-in-progress: true | |
jobs: | |
docker: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Docker info | |
run: docker info | |
- name: Build Docker image (amd64) | |
run: | | |
DOCKER_BUILDKIT=1 docker build -t localhost/iceberg-catalog-local:amd64 \ | |
-f docker/full.Dockerfile . | |
docker save -o /tmp/iceberg-catalog-amd64.tar localhost/iceberg-catalog-local:amd64 | |
- name: Save Docker | |
uses: actions/upload-artifact@v4 | |
with: | |
name: iceberg-catalog-image | |
path: /tmp/*.tar | |
test-pyspark: | |
needs: docker | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Restore binary | |
uses: actions/download-artifact@v4 | |
with: | |
name: iceberg-catalog-image | |
path: artifacts | |
- name: Display structure of downloaded files | |
run: ls -Rlh artifacts | |
- name: Restore Docker image | |
run: | | |
docker load -i artifacts/iceberg-catalog-amd64.tar | |
- name: Test Pyspark | |
run: | | |
cd tests && | |
docker compose run --quiet-pull spark /opt/entrypoint.sh bash -c "cd /opt/tests && bash run_spark.sh" | |
env: | |
LAKEKEEPER_TEST__SPARK_IMAGE: apache/spark:3.5.1-java17-python3 | |
LAKEKEEPER_TEST__SERVER_IMAGE: localhost/iceberg-catalog-local:amd64 | |
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }} | |
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }} | |
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }} | |
AZURE_STORAGE_ACCOUNT_NAME: ${{ secrets.AZURE_STORAGE_ACCOUNT_NAME }} | |
AZURE_STORAGE_FILESYSTEM: ${{ secrets.AZURE_STORAGE_FILESYSTEM }} | |
GCS_CREDENTIAL: ${{ secrets.GCS_CREDENTIAL }} | |
GCS_BUCKET: ${{ secrets.GCS_BUCKET }} | |
- name: Dump docker logs on failure | |
if: failure() | |
uses: jwalton/gh-docker-logs@v2 | |
- name: Dump DB | |
if: always() | |
uses: tj-actions/pg-dump@v3 | |
with: | |
database_url: "postgresql://postgres:postgres@localhost:31102/postgres" | |
postgresql_version: "16" | |
path: dump.sql | |
- name: compress | |
if: always() | |
run: cat dump.sql | gzip -9 > dump.sql.gz | |
- name: Upload dump | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: db-dump.sql.gz | |
path: dump.sql.gz |