Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
105 commits
Select commit Hold shift + click to select a range
e0fdd3f
Merge release into main branch (#517)
github-actions[bot] Jul 2, 2024
e1ab4b4
chore(deps): bump scipy from 0.12.0 to 0.12.1 in /clouds/redshift/lib…
dependabot[bot] Jul 2, 2024
d63d5ff
docs(sf): fix native apps installation doc (#519)
vdelacruzb Aug 8, 2024
501e373
fix(pg): lock numpy to v1.24.4 until pandas supports 2.X.X (#520)
DeanSherwin Aug 20, 2024
259895d
Merge release into main branch (#522)
github-actions[bot] Aug 22, 2024
874ffae
feat(sf): added warehouse option for SF (#524)
volaya Sep 3, 2024
775fb87
chore(bq): increse jest timeout to 30000 (#525)
vdelacruzb Sep 5, 2024
4a2376e
docs(sf): add docs on how to update the analytics toolbox from a nati…
vdelacruzb Sep 18, 2024
05a4bb1
chore(sf): update python version on stored procedures from 3.8 to 3.9…
vdelacruzb Sep 20, 2024
1dfc364
Merge release into main branch (#530)
github-actions[bot] Sep 24, 2024
c0b02a7
chore(bq): fix @google-cloud/bigquery to version 7.9.0 (#531)
vdelacruzb Sep 26, 2024
3bb797a
chore(bq,sf,rs,pg|h3,quadbin): added "geo" aliases for certain functi…
volaya Oct 23, 2024
a72b208
Merge release into main branch (#534)
github-actions[bot] Oct 29, 2024
94532b0
chore(sf): deploy snowflake in CARTO.CARTO when releasing (#536)
vdelacruzb Nov 5, 2024
b5d0edd
chore: update gh actions versions (#537)
Jesus89 Nov 29, 2024
e604e83
chore(bq): add skip dependency tag in bigquery build_modules (#538)
vdelacruzb Dec 11, 2024
f1025de
docs(sf|h3): update h3_polyfill_table docs as it does not support poi…
vdelacruzb Dec 18, 2024
b5649a7
chore(deps): bump jinja2 from 3.1.3 to 3.1.5 in /clouds/databricks/co…
dependabot[bot] Dec 24, 2024
14b2b5c
fix(bq|h3,quadbin): H3_POLYFILL and QUADBIN_POLYFILL functions not wo…
vdelacruzb Jan 23, 2025
a77c453
chores(bq): split JS libraries generation (#541)
vdelacruzb Jan 24, 2025
2da5ee5
chore(bq): allow supporting multiple libraries in one line (#543)
vdelacruzb Jan 27, 2025
c978190
chore(sf): SF_ACCOUNT no longer follows "account.region" format (#544)
vdelacruzb Jan 28, 2025
94dac8d
Merge release into main branch (#546)
github-actions[bot] Jan 30, 2025
531bbae
chore(bq,sf,rs|clustering): ST_CLUSTERKMEANS procedure throwing error…
vdelacruzb Mar 13, 2025
22786e8
fix(rs): set autocommit in run_query function (#552)
Jesus89 Mar 14, 2025
7be7910
chore: update deprecated ubuntu image for ci (#553)
Jesus89 Apr 21, 2025
7f0ffd1
Merge release into main branch (#555)
github-actions[bot] May 6, 2025
257cda4
chore(sf): increase test timeout from 40000 to 50000 (#558)
vdelacruzb Jul 9, 2025
f4b0157
chore(sf): update node version (#559)
vdelacruzb Aug 7, 2025
4743285
chore(sf): allow slow tests in snowflake (#561)
vdelacruzb Sep 11, 2025
2040e59
feat(db): Reimplement ATC/AT Databricks scaffolding [sc-512318] (#562)
Jesus89 Oct 2, 2025
cba3b12
fix(bq,sf): update turf version (#564)
vdelacruzb Oct 23, 2025
6ede632
chore(db): update ci/cd env for databricks (#565)
Jesus89 Oct 23, 2025
0a03821
Release 2025-11-26 (#566)
vdelacruzb Nov 28, 2025
fb01787
chore(sf): update Snowflake authentication to use RSA key pair [sc-52…
Jesus89 Dec 19, 2025
1ee1ab8
fix(db): handle diff modules without tests and fix diff parsing (#569)
vdelacruzb Dec 23, 2025
21f0fc0
chore(bq,sf,rs,pg,db): update get diff version (#570)
vdelacruzb Dec 26, 2025
2100295
feat(rs): python udf deprecation scaffolding (#563)
vdelacruzb Dec 30, 2025
37b1cb0
fix(rs): read GIT_DIFF from environment in deployment logic (#571)
vdelacruzb Dec 30, 2025
d1252ae
fix(fs): add IAM role secrets to deploy-internal job (#572)
vdelacruzb Dec 30, 2025
338d4fe
Merge release into main branch (#574)
github-actions[bot] Dec 31, 2025
999ce37
fix(db): package creation from wrong folder (#575)
vdelacruzb Jan 2, 2026
d92682c
fix(rs): show the right links in the created packages (#576)
vdelacruzb Jan 27, 2026
e1f51ef
fix(rs): local redshift deployment overriding carto.carto (#577)
vdelacruzb Jan 27, 2026
142f0a3
chore(sf): deploy internal in CI (#579)
vdelacruzb Jan 29, 2026
761075a
chore: update root makefile to make it consistent with premium (#581)
vdelacruzb Feb 11, 2026
11c2750
chore(rs): deploy all lambdas if sql changes (#582)
vdelacruzb Feb 18, 2026
26db2f1
fix(rs): force packager to drop_functions and provide port and ssl op…
vdelacruzb Feb 18, 2026
81bd958
feat(ora): add Oracle support (#587)
vdelacruzb Mar 9, 2026
af318d9
feat(db|quadbin): migrate quadbin to databricks (#588)
diego-vicente Mar 10, 2026
73e3976
chore(ora): deploy for production (#589)
vdelacruzb Mar 10, 2026
4fe92f2
chore(deps): bump sqlparse from 0.5.0 to 0.5.4 in /clouds/databricks/…
dependabot[bot] Mar 11, 2026
b73a4fc
chore(deps): bump sqlparse from 0.5.0 to 0.5.4 in /clouds/postgres/co…
dependabot[bot] Mar 11, 2026
c9b9c92
chore(deps): bump sqlparse from 0.4.4 to 0.5.4 in /clouds/redshift/co…
dependabot[bot] Mar 11, 2026
93527ea
docs(bq,sf,rs,pg,db): unify documentation patterns (#590)
vdelacruzb Mar 18, 2026
d683213
fix(bq|s2): S2_TOTOKEN and S2_FROMTOKEN produces non-standard 16-char…
vdelacruzb Mar 23, 2026
74dfcbe
Merge release into main branch (#593)
github-actions[bot] Mar 27, 2026
98ba445
chore: optimize CLAUDE.md (#596)
diego-vicente Apr 14, 2026
dae88f7
fix(bq): split BigQuery modules.sql when exceeding 1MB query limit (#…
vdelacruzb Apr 15, 2026
5fce38b
chore(ora): allow block-comment extra-dependency convention [sc-54741…
vdelacruzb Apr 21, 2026
a09bff4
chore(ora): add drop_table helper to test_utils (#601)
vdelacruzb Apr 22, 2026
78a92fa
chore(ora): codify Oracle typing convention [sc-548140] (#602)
vdelacruzb Apr 23, 2026
2d1f542
chore(ora): clarify NUMBER(1) usage — not allowed in function RETURN …
vdelacruzb Apr 28, 2026
c31a53e
feat(ora|quadbin): add Quadbin spatial indexing module for Oracle (#595)
diego-vicente Apr 30, 2026
80bf75a
feat(ora|h3): add H3 spatial indexing module for Oracle (#594)
diego-vicente May 5, 2026
20fbe3a
chore(ora): simplify build_modules.js, add linting + libs forward-com…
vdelacruzb May 6, 2026
646d084
chore(bq|sf|rs|pg|db|ora|benchmark): cross-cloud spatial-index benchm…
vdelacruzb May 18, 2026
d1de8cb
feat(ora|test_utils): add escape_sql helper (#612)
vdelacruzb May 21, 2026
ed1b641
Merge release into main branch (#614)
github-actions[bot] May 28, 2026
6c9bbf0
chore(ci|pg): bump CI Python to 3.10.13 + update pg deps for compat […
vdelacruzb Jun 10, 2026
ab8cecf
chore(deps): bump redshift-connector from 2.0.884 to 2.1.14 in /cloud…
dependabot[bot] Jun 10, 2026
8111b51
chore(ci): make lint failures fail CI [sc-553755] (#616)
vdelacruzb Jun 11, 2026
9e35407
chore(bq|sf|rs|pg|db|ora|lint): bump sqlfluff to 4.2.2 and harden CI …
vdelacruzb Jun 12, 2026
fc8767e
chore(sf|native_app): bump GET_MODULES_SQL_FROM_STAGE to Python 3.11 …
vdelacruzb Jun 15, 2026
b294a55
fix(bq|accessors,transformations): return NULL in ST_ENVELOPE and ST_…
vdelacruzb Jun 16, 2026
06b01bd
feat(sf,rs,pg,db,ora|h3,quadbin): add H3/QUADBIN_POLYFILL_TABLE proce…
vdelacruzb Jun 18, 2026
807272a
fix(db|quadbin): balance single quotes in __QUADBIN_POLYFILL_GEOJSON …
vdelacruzb Jun 23, 2026
7beecc1
chore(bq): Pin Node version in BigQuery production deploy jobs (#625)
raulvr2 Jun 29, 2026
4e29297
Merge release into main branch (#624)
github-actions[bot] Jun 29, 2026
eb1c62f
chore(bq,sf,rs,pg,ora): pin actions/setup-node to SHA across all work…
vdelacruzb Jun 30, 2026
014a3b5
chore(rs): default Redshift Lambda runtime to python3.12 (Python 3.10…
adriantomas Jul 6, 2026
69e3754
fix(sf): pin @azure/core-paging to 1.6.2 for node 20 CI compatibility…
vdelacruzb Jul 14, 2026
285e12f
chore(ora): source Oracle CD secrets from GCP Secret Manager [sc-5625…
vdelacruzb Jul 17, 2026
5fe728d
chore(bq|sf|rs|pg|db|ora): reliable dedicated/CI env cleanup and unif…
vdelacruzb Aug 4, 2026
e4e3603
fix(bq): install node modules before dedicated env removal [sc-565491…
vdelacruzb Aug 5, 2026
a4a3309
fix(sf): unblock Snowflake CI — pin @azure/storage-common and tolerat…
vdelacruzb Aug 5, 2026
c10307d
chore(bq|sf|rs|pg|db|ora): unify dedicated env PR comments [sc-565493…
vdelacruzb Aug 5, 2026
1e51886
fix(rs): validate function name in gateway deploy CLI (#640)
vdelacruzb Aug 11, 2026
2871abf
feat(rs|clustering): add CREATE_CLUSTERDBSCAN [sc-565418] (#634)
vdelacruzb Aug 11, 2026
3de15a5
Merge release into main branch (#646)
github-actions[bot] Aug 25, 2026
bfe3042
chore(sf): remove the broken h3_fromlonglat JS library entry [sc-5699…
vdelacruzb Aug 26, 2026
29d3155
chore(sf): connect lazily in the Snowflake test harness [sc-570150] (…
vdelacruzb Aug 28, 2026
eb1233a
chore(deps): bump sqlparse from 0.5.4 to 0.6.0 in /clouds/databricks/…
dependabot[bot] Sep 7, 2026
0551da1
chore(deps): bump sqlparse from 0.5.4 to 0.6.0 in /clouds/postgres/co…
dependabot[bot] Sep 7, 2026
4e3e52f
chore(deps): bump sqlparse from 0.5.4 to 0.6.0 in /clouds/redshift/co…
dependabot[bot] Sep 7, 2026
4f59bb8
chore(sf): ship JavaScript source maps in the native app package [sc-…
vdelacruzb Sep 8, 2026
f9e501e
fix(sf,pg,ora,bq): insert every replacement literally when building S…
vdelacruzb Sep 8, 2026
45a81da
refactor: ♻️ migrate gsutil to gcloud storage [sc-574714] (#651)
miguelangelmorenochacon Sep 23, 2026
2b8eeda
chore(ci): 🔒 migrate GitHub Actions auth to WIF (#641)
miguelangelmorenochacon Sep 24, 2026
bfb2946
fix(db): renew the Databricks token instead of minting it once per jo…
vdelacruzb Sep 24, 2026
1f29f3f
Release 2026-09-24
vdelacruzb Sep 24, 2026
77d78a3
Merge stable into release/2026-09-24 (ours)
vdelacruzb Sep 24, 2026
f74f474
chore(sf|ci): migrate the Snowflake CD jobs to key-pair auth [sc-5765…
vdelacruzb Sep 25, 2026
aa64a74
Merge remote-tracking branch 'origin/main' into release/2026-09-24
vdelacruzb Sep 25, 2026
62977b5
chore(sf|ci): note the Snowflake key-pair migration in the changelog
vdelacruzb Sep 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .claude/rules/databricks.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ DB_PREFIX=yourname_ # Schema prefix (e.g., "yourname_" -> "yourname_c
DB_CATALOG=<catalog> # Databricks catalog name
DB_HOST_NAME=<hostname> # SQL Warehouse hostname
DB_HTTP_PATH=<path> # SQL Warehouse HTTP path
DB_TOKEN=<token> # Access token
DB_TOKEN=<token> # Personal access token — wins when set
DB_CLIENT_ID=<client-id> # Service principal, used when DB_TOKEN is unset
DB_CLIENT_SECRET=<secret> # Service principal secret; the token is renewed per job
DB_CONNECTION=<connection> # Databricks connection string
DB_API_BASE_URL=<url> # CARTO API base URL
DB_API_ACCESS_TOKEN=<token> # CARTO API access token
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/bigquery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,6 @@ jobs:
- name: Publish package
run: |
cd clouds/bigquery
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-bigquery-latest.zip
gsutil -h "Content-Type:application/json" -m cp dist/*.json ${{ env.PACKAGE_BUCKET }}/
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/ --content-type=application/zip
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-bigquery-latest.zip --content-type=application/zip
gcloud storage cp dist/*.json ${{ env.PACKAGE_BUCKET }}/ --content-type=application/json
24 changes: 12 additions & 12 deletions .github/workflows/databricks-ded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ jobs:
(github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'dedicated_databricks')) ||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'dedicated_databricks'))
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
pull-requests: write
timeout-minutes: 20
env:
DB_HOST_NAME: ${{ secrets.DB_HOST_NAME_CD }}
Expand All @@ -35,34 +39,30 @@ jobs:
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT_KEY }}
workload_identity_provider: ${{ secrets.CARTO_AT_GH_ACTIONS_WIF_PROVIDER }}
service_account: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT }}
- name: Get Databricks secrets
id: secrets
uses: google-github-actions/get-secretmanager-secrets@v2
with:
secrets: |-
databricks-client-id:${{ secrets.DB_CLIENT_ID_NAME_CD }}
databricks-client-secret:${{ secrets.DB_CLIENT_SECRET_NAME_CD }}
- name: Get Databricks OAuth token
run: |
RESPONSE=$(curl -s -X POST https://$DB_HOST_NAME/oidc/v1/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=${{ steps.secrets.outputs.databricks-client-id }}" \
-d "client_secret=${{ steps.secrets.outputs.databricks-client-secret }}" \
-d "scope=all-apis")
TOKEN=$(echo $RESPONSE | jq -r '.access_token')
echo "::add-mask::$TOKEN"
echo "DB_TOKEN=$TOKEN" >> $GITHUB_ENV
- name: Run deploy
id: deploy
if: github.event.action == 'synchronize' || github.event.action == 'labeled'
env:
DB_CLIENT_ID: ${{ steps.secrets.outputs.databricks-client-id }}
DB_CLIENT_SECRET: ${{ steps.secrets.outputs.databricks-client-secret }}
run: |
cd clouds/databricks
make deploy
- name: Run remove
id: remove
if: github.event.action == 'unlabeled' || github.event.action == 'closed'
env:
DB_CLIENT_ID: ${{ steps.secrets.outputs.databricks-client-id }}
DB_CLIENT_SECRET: ${{ steps.secrets.outputs.databricks-client-secret }}
run: |
cd clouds/databricks
make remove
Expand Down
52 changes: 25 additions & 27 deletions .github/workflows/databricks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:

test:
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
timeout-minutes: 20
env:
DB_PREFIX: ci_${{ github.sha }}_${{ github.run_id }}_${{ github.run_attempt }}_
Expand All @@ -43,39 +46,41 @@ jobs:
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT_KEY }}
workload_identity_provider: ${{ secrets.CARTO_AT_GH_ACTIONS_WIF_PROVIDER }}
service_account: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT }}
- name: Get Databricks secrets
id: secrets
uses: google-github-actions/get-secretmanager-secrets@v2
with:
secrets: |-
databricks-client-id:${{ secrets.DB_CLIENT_ID_NAME_CI }}
databricks-client-secret:${{ secrets.DB_CLIENT_SECRET_NAME_CI }}
- name: Get Databricks OAuth token
run: |
RESPONSE=$(curl -s -X POST https://$DB_HOST_NAME/oidc/v1/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=${{ steps.secrets.outputs.databricks-client-id }}" \
-d "client_secret=${{ steps.secrets.outputs.databricks-client-secret }}" \
-d "scope=all-apis")
TOKEN=$(echo $RESPONSE | jq -r '.access_token')
echo "::add-mask::$TOKEN"
echo "DB_TOKEN=$TOKEN" >> $GITHUB_ENV
- name: Lint code
run: make lint cloud=databricks
- name: Deploy modules
env:
DB_CLIENT_ID: ${{ steps.secrets.outputs.databricks-client-id }}
DB_CLIENT_SECRET: ${{ steps.secrets.outputs.databricks-client-secret }}
run: make deploy cloud=databricks diff="$GIT_DIFF"
- name: Run tests
env:
DB_CLIENT_ID: ${{ steps.secrets.outputs.databricks-client-id }}
DB_CLIENT_SECRET: ${{ steps.secrets.outputs.databricks-client-secret }}
run: make test cloud=databricks diff="$GIT_DIFF"
- name: Cleanup resources
if: always()
env:
DB_CLIENT_ID: ${{ steps.secrets.outputs.databricks-client-id }}
DB_CLIENT_SECRET: ${{ steps.secrets.outputs.databricks-client-secret }}
run: make remove cloud=databricks

deploy-internal:
if: github.ref_name == 'main'
needs: test
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
timeout-minutes: 10
env:
DB_HOST_NAME: ${{ secrets.DB_HOST_NAME_CD }}
Expand All @@ -95,26 +100,19 @@ jobs:
- name: Authenticate with Google Cloud
uses: 'google-github-actions/auth@v2'
with:
credentials_json: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT_KEY }}
workload_identity_provider: ${{ secrets.CARTO_AT_GH_ACTIONS_WIF_PROVIDER }}
service_account: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT }}
- name: Get Databricks secrets
id: secrets
uses: google-github-actions/get-secretmanager-secrets@v2
with:
secrets: |-
databricks-client-id:${{ secrets.DB_CLIENT_ID_NAME_CD }}
databricks-client-secret:${{ secrets.DB_CLIENT_SECRET_NAME_CD }}
- name: Get Databricks OAuth token
run: |
RESPONSE=$(curl -s -X POST https://$DB_HOST_NAME/oidc/v1/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=${{ steps.secrets.outputs.databricks-client-id }}" \
-d "client_secret=${{ steps.secrets.outputs.databricks-client-secret }}" \
-d "scope=all-apis")
TOKEN=$(echo $RESPONSE | jq -r '.access_token')
echo "::add-mask::$TOKEN"
echo "DB_TOKEN=$TOKEN" >> $GITHUB_ENV
- name: Deploy modules
env:
DB_CLIENT_ID: ${{ steps.secrets.outputs.databricks-client-id }}
DB_CLIENT_SECRET: ${{ steps.secrets.outputs.databricks-client-secret }}
run: make deploy cloud=databricks diff="$GIT_DIFF" production=1

publish:
Expand Down Expand Up @@ -151,6 +149,6 @@ jobs:
- name: Publish package to storage
run: |
cd clouds/databricks
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-databricks-latest.zip
gsutil -h "Content-Type:application/json" -m cp dist/*.json ${{ env.PACKAGE_BUCKET }}/
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/ --content-type=application/zip
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-databricks-latest.zip --content-type=application/zip
gcloud storage cp dist/*.json ${{ env.PACKAGE_BUCKET }}/ --content-type=application/json
7 changes: 6 additions & 1 deletion .github/workflows/oracle-ded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,19 @@ jobs:
(github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'dedicated_oracle')) ||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'dedicated_oracle'))
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
pull-requests: write
timeout-minutes: 20
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Auth google
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT_KEY }}
workload_identity_provider: ${{ secrets.CARTO_AT_GH_ACTIONS_WIF_PROVIDER }}
service_account: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT }}
- name: Retrieve secrets (CD)
id: get-gcp-secrets-cd
uses: google-github-actions/get-secretmanager-secrets@v2
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/oracle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:

test:
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
timeout-minutes: 55
env:
ORA_PREFIX: CI_${{ github.run_id }}_${{ github.run_attempt }}_
Expand All @@ -35,7 +38,8 @@ jobs:
- name: Auth google
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT_KEY }}
workload_identity_provider: ${{ secrets.CARTO_AT_GH_ACTIONS_WIF_PROVIDER }}
service_account: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT }}
- name: Retrieve secrets
id: get-gcp-secrets
uses: google-github-actions/get-secretmanager-secrets@v2
Expand Down Expand Up @@ -98,6 +102,9 @@ jobs:
if: github.ref_name == 'main'
needs: test
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
timeout-minutes: 20
strategy:
matrix:
Expand All @@ -110,7 +117,8 @@ jobs:
- name: Auth google
uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT_KEY }}
workload_identity_provider: ${{ secrets.CARTO_AT_GH_ACTIONS_WIF_PROVIDER }}
service_account: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT }}
- name: Retrieve secrets (CI)
if: matrix.target == 'ci'
id: get-gcp-secrets
Expand Down Expand Up @@ -211,6 +219,6 @@ jobs:
- name: Publish package
run: |
cd clouds/oracle
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-oracle-latest.zip
gsutil -h "Content-Type:application/json" -m cp dist/*.json ${{ env.PACKAGE_BUCKET }}/
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/ --content-type=application/zip
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-oracle-latest.zip --content-type=application/zip
gcloud storage cp dist/*.json ${{ env.PACKAGE_BUCKET }}/ --content-type=application/json
6 changes: 3 additions & 3 deletions .github/workflows/postgres.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,6 @@ jobs:
- name: Publish package
run: |
cd clouds/postgres
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-postgres-latest.zip
gsutil -h "Content-Type:application/json" -m cp dist/*.json ${{ env.PACKAGE_BUCKET }}/
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/ --content-type=application/zip
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-postgres-latest.zip --content-type=application/zip
gcloud storage cp dist/*.json ${{ env.PACKAGE_BUCKET }}/ --content-type=application/json
4 changes: 2 additions & 2 deletions .github/workflows/redshift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,5 @@ jobs:
make create-package cloud=redshift production=1
- name: Publish package
run: |
gsutil -h "Content-Type:application/zip" -m cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/
gsutil -h "Content-Type:application/zip" -m cp dist/carto-at-redshift-*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-redshift-latest.zip
gcloud storage cp dist/*.zip ${{ env.PACKAGE_BUCKET }}/ --content-type=application/zip
gcloud storage cp dist/carto-at-redshift-*.zip ${{ env.PACKAGE_BUCKET }}/carto-analytics-toolbox-core-redshift-latest.zip --content-type=application/zip
23 changes: 22 additions & 1 deletion .github/workflows/snowflake-ded.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,31 @@ jobs:
(github.event.action == 'closed' && contains(github.event.pull_request.labels.*.name, 'dedicated_snowflake')) ||
(github.event.action == 'synchronize' && contains(github.event.pull_request.labels.*.name, 'dedicated_snowflake'))
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
pull-requests: write
timeout-minutes: 20
env:
SF_ACCOUNT: ${{ secrets.SF_ACCOUNT_CD }}
SF_DATABASE: ${{ secrets.SF_DATABASE_CD }}
SF_USER: ${{ secrets.SF_USER_CD }}
SF_PASSWORD: ${{ secrets.SF_PASSWORD_CD }}
SF_ROLE: ${{ secrets.SF_ROLE_CD }}
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Auth google
uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ secrets.CARTO_AT_GH_ACTIONS_WIF_PROVIDER }}
service_account: ${{ secrets.CARTO_AT_GH_ACTIONS_SERVICE_ACCOUNT }}
- name: Retrieve RSA secrets
id: get-gcp-secrets
uses: google-github-actions/get-secretmanager-secrets@v2
with:
secrets: |-
SF_RSA_KEY:${{ secrets.SF_RSA_KEY_NAME_CD }}
SF_RSA_KEY_PASSWORD:${{ secrets.SF_RSA_KEY_PASSWORD_NAME_CD }}
- name: Set SF_PREFIX
run: echo "SF_PREFIX=dedicated_core_${{ github.event.pull_request.number }}_" >> $GITHUB_ENV
- name: Setup node
Expand All @@ -34,12 +49,18 @@ jobs:
- name: Run deploy
id: deploy
if: github.event.action == 'synchronize' || github.event.action == 'labeled'
env:
SF_RSA_KEY: ${{ steps.get-gcp-secrets.outputs.SF_RSA_KEY }}
SF_RSA_KEY_PASSWORD: ${{ steps.get-gcp-secrets.outputs.SF_RSA_KEY_PASSWORD }}
run: |
cd clouds/snowflake
make deploy
- name: Run remove
id: remove
if: github.event.action == 'unlabeled' || github.event.action == 'closed'
env:
SF_RSA_KEY: ${{ steps.get-gcp-secrets.outputs.SF_RSA_KEY }}
SF_RSA_KEY_PASSWORD: ${{ steps.get-gcp-secrets.outputs.SF_RSA_KEY_PASSWORD }}
run: |
cd clouds/snowflake
make remove drop-schema=1
Expand Down
Loading
Loading