Skip to content

Commit c7a87ea

Browse files
Merge branch 'main' into fix-codeowners
2 parents 972387d + eeef4b9 commit c7a87ea

24 files changed

+532
-121
lines changed

.github/workflows/build_test.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,18 @@ jobs:
156156
image_name: windows-11-arm
157157
download_name: win_arm64
158158
python-version: "3.10"
159+
- os:
160+
image_name: windows-11-arm
161+
download_name: win_arm64
162+
python-version: "3.11"
163+
- os:
164+
image_name: windows-11-arm
165+
download_name: win_arm64
166+
python-version: "3.12"
167+
- os:
168+
image_name: windows-11-arm
169+
download_name: win_arm64
170+
python-version: "3.13"
159171

160172
steps:
161173
- uses: actions/checkout@v4
@@ -184,9 +196,9 @@ jobs:
184196
- name: Setup private key file
185197
shell: bash
186198
env:
187-
PYTHON_PRIVATE_KEY_SECRET: ${{ secrets.PYTHON_PRIVATE_KEY_SECRET }}
199+
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
188200
run: |
189-
gpg --quiet --batch --yes --decrypt --passphrase="$PYTHON_PRIVATE_KEY_SECRET" \
201+
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
190202
.github/workflows/parameters/public/rsa_keys/rsa_key_python_${{ matrix.cloud-provider }}.p8.gpg > test/rsa_key_python_${{ matrix.cloud-provider }}.p8
191203
- name: Download wheel(s)
192204
uses: actions/download-artifact@v4
@@ -262,9 +274,9 @@ jobs:
262274
- name: Setup private key file
263275
shell: bash
264276
env:
265-
PYTHON_PRIVATE_KEY_SECRET: ${{ secrets.PYTHON_PRIVATE_KEY_SECRET }}
277+
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
266278
run: |
267-
gpg --quiet --batch --yes --decrypt --passphrase="$PYTHON_PRIVATE_KEY_SECRET" \
279+
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
268280
.github/workflows/parameters/public/rsa_keys/rsa_key_python_${{ matrix.cloud-provider }}.p8.gpg > test/rsa_key_python_${{ matrix.cloud-provider }}.p8
269281
- name: Upgrade setuptools, pip and wheel
270282
run: python -m pip install -U setuptools pip wheel
@@ -330,9 +342,9 @@ jobs:
330342
- name: Setup private key file
331343
shell: bash
332344
env:
333-
PYTHON_PRIVATE_KEY_SECRET: ${{ secrets.PYTHON_PRIVATE_KEY_SECRET }}
345+
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
334346
run: |
335-
gpg --quiet --batch --yes --decrypt --passphrase="$PYTHON_PRIVATE_KEY_SECRET" \
347+
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
336348
.github/workflows/parameters/public/rsa_keys/rsa_key_python_${{ matrix.cloud-provider }}.p8.gpg > test/rsa_key_python_${{ matrix.cloud-provider }}.p8
337349
- name: Download wheel(s)
338350
uses: actions/download-artifact@v4
@@ -390,9 +402,9 @@ jobs:
390402
- name: Setup private key file
391403
shell: bash
392404
env:
393-
PYTHON_PRIVATE_KEY_SECRET: ${{ secrets.PYTHON_PRIVATE_KEY_SECRET }}
405+
PARAMETERS_SECRET: ${{ secrets.PARAMETERS_SECRET }}
394406
run: |
395-
gpg --quiet --batch --yes --decrypt --passphrase="$PYTHON_PRIVATE_KEY_SECRET" \
407+
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETERS_SECRET" \
396408
.github/workflows/parameters/public/rsa_keys/rsa_key_python_${{ matrix.cloud-provider }}.p8.gpg > test/rsa_key_python_${{ matrix.cloud-provider }}.p8
397409
- name: Download wheel(s)
398410
uses: actions/download-artifact@v4
-510 Bytes
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

DESCRIPTION.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ https://docs.snowflake.com/
77
Source code is also available at: https://github.com/snowflakedb/snowflake-connector-python
88

99
# Release Notes
10+
- v3.17.2(TBD)
11+
- Fixed a bug where platform_detection was retrying failed requests with warnings to non-existent endpoints.
12+
- Added disabling endpoint-based platform detection by setting `platform_detection_timeout_seconds` to zero.
13+
1014
- v3.17.1(August 17,2025)
1115
- Added `infer_schema` parameter to `write_pandas` to perform schema inference on the passed data.
1216
- Namespace `snowlake` reverted back to non-module.

Jenkinsfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ timestamps {
3333
string(name: 'client_git_commit', value: scmInfo.GIT_COMMIT),
3434
string(name: 'client_git_branch', value: scmInfo.GIT_BRANCH),
3535
string(name: 'parent_job', value: env.JOB_NAME),
36-
string(name: 'parent_build_number', value: env.BUILD_NUMBER)
36+
string(name: 'parent_build_number', value: env.BUILD_NUMBER),
37+
string(name: 'USE_PASSWORD', value: 'true')
3738
]
3839
parallel(
3940
'Test': {

ci/test_darwin.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ export JUNIT_REPORT_DIR=${SF_REGRESS_LOGS:-$CONNECTOR_DIR}
1414
export COV_REPORT_DIR=${CONNECTOR_DIR}
1515

1616
# Decrypt parameters file
17-
PARAMS_FILE="${PARAMETERS_DIR}/jenkins_test_parameters.py.gpg"
17+
PARAMS_FILE="${PARAMETERS_DIR}/parameters_aws.py.gpg"
1818
[ ${cloud_provider} == azure ] && PARAMS_FILE="${PARAMETERS_DIR}/parameters_azure.py.gpg"
1919
[ ${cloud_provider} == gcp ] && PARAMS_FILE="${PARAMETERS_DIR}/parameters_gcp.py.gpg"
2020
gpg --quiet --batch --yes --decrypt --passphrase="${PARAMETERS_SECRET}" ${PARAMS_FILE} > test/parameters.py
2121

22+
# Decrypt private key file
23+
gpg --quiet --batch --yes --decrypt --passphrase="${PARAMETERS_SECRET}" "${CONNECTOR_DIR}/.github/workflows/parameters/public/rsa_keys/rsa_key_python_${cloud_provider}.p8.gpg" > "test/rsa_key_python_${cloud_provider}.p8"
24+
2225
rm -rf venv
2326
python3.12 -m venv venv
2427
. venv/bin/activate

ci/test_docker.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ docker run --network=host \
4545
-e JENKINS_HOME \
4646
-e is_old_driver \
4747
-e GITHUB_ACTIONS \
48+
-e USE_PASSWORD=true \
4849
--mount type=bind,source="${CONNECTOR_DIR}",target=/home/user/snowflake-connector-python \
4950
${CONTAINER_NAME}:1.0 \
5051
/home/user/snowflake-connector-python/ci/test_linux.sh ${PYTHON_ENV}

ci/test_fips.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
#!/bin/bash -e
22
#
3-
# Test Snowflake Connector
4-
# Note this is the script that test_docker.sh runs inside of the docker container
3+
# Test Snowflake Connector (FIPS)
4+
# Note this is the script that test_fips_docker.sh runs inside of the docker container
55
#
6+
7+
# Export USE_PASSWORD only on Jenkins (not on GitHub Actions)
8+
# Jenkins FIPS tests run against mocked Snowflake with password auth
9+
# GitHub Actions FIPS tests run against real Snowflake with key-pair auth
10+
if [[ "${JENKINS_HOME}" != "false" && -n "${JENKINS_HOME}" ]]; then
11+
export USE_PASSWORD=true
12+
echo "[Info] Jenkins detected: Using password authentication for FIPS tests"
13+
else
14+
echo "[Info] GitHub Actions detected: Using key-pair authentication for FIPS tests"
15+
fi
16+
617
THIS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
718
# shellcheck disable=SC1090
819
CONNECTOR_DIR="$( dirname "${THIS_DIR}")"

0 commit comments

Comments
 (0)