Skip to content

Commit 50b5998

Browse files
committed
merge
2 parents 7c56707 + f0e1179 commit 50b5998

File tree

513 files changed

+27414
-86388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

513 files changed

+27414
-86388
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/usr/bin/env bash
22

3-
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETER_PASSWORD" --output tests/parameters.py .github/workflows/parameters/parameters_${CLOUD_PROVIDER}.py.gpg
3+
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETER_PASSWORD" .github/workflows/parameters/rsa_keys/rsa_key_${CLOUD_PROVIDER}.p8.gpg >> tests/rsa_key_${CLOUD_PROVIDER}.p8
4+
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETER_PASSWORD" .github/workflows/parameters/parameters_${CLOUD_PROVIDER}.py.gpg >> tests/parameters.py
45
gpg --quiet --batch --yes --decrypt --passphrase="$PARAMETER_PASSWORD" .github/workflows/parameters/parameters_dbapi.py.gpg >> tests/parameters.py
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# This workflow automatically creates a test branch from a release tag
2+
# For example, when release v1.40.0 is published, it creates test-v1.40.0 branch
3+
4+
name: Create Test Branch from Release
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
permissions:
11+
contents: write
12+
13+
jobs:
14+
create-test-branch:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Extract tag name
19+
id: extract_tag
20+
run: |
21+
TAG_NAME=${{ github.event.release.tag_name }}
22+
TEST_BRANCH_NAME="test-${TAG_NAME}"
23+
24+
echo "tag_name=${TAG_NAME}" >> $GITHUB_OUTPUT
25+
echo "test_branch_name=${TEST_BRANCH_NAME}" >> $GITHUB_OUTPUT
26+
echo "Creating test branch: ${TEST_BRANCH_NAME} from tag: ${TAG_NAME}"
27+
28+
- name: Checkout release tag
29+
uses: actions/checkout@v4
30+
with:
31+
ref: ${{ steps.extract_tag.outputs.tag_name }}
32+
fetch-depth: 0
33+
34+
- name: Configure git
35+
run: |
36+
git config user.name "github-actions[bot]"
37+
git config user.email "github-actions[bot]@users.noreply.github.com"
38+
39+
- name: Create and push test branch
40+
run: |
41+
TEST_BRANCH=${{ steps.extract_tag.outputs.test_branch_name }}
42+
43+
# Check if branch already exists remotely
44+
if git ls-remote --heads origin ${TEST_BRANCH} | grep -q ${TEST_BRANCH}; then
45+
echo "Branch ${TEST_BRANCH} already exists remotely. Skipping creation."
46+
exit 0
47+
fi
48+
49+
# Create and push the test branch
50+
git checkout -b ${TEST_BRANCH}
51+
git push origin ${TEST_BRANCH}
52+
53+
echo "Successfully created and pushed branch: ${TEST_BRANCH}"
54+
55+
- name: Summary
56+
run: |
57+
echo "✅ Test branch created successfully" >> $GITHUB_STEP_SUMMARY
58+
echo "" >> $GITHUB_STEP_SUMMARY
59+
echo "- **Release Tag**: \`${{ steps.extract_tag.outputs.tag_name }}\`" >> $GITHUB_STEP_SUMMARY
60+
echo "- **Test Branch**: \`${{ steps.extract_tag.outputs.test_branch_name }}\`" >> $GITHUB_STEP_SUMMARY
61+
echo "- **Branch URL**: https://github.com/${{ github.repository }}/tree/${{ steps.extract_tag.outputs.test_branch_name }}" >> $GITHUB_STEP_SUMMARY

.github/workflows/daily_precommit.yml

Lines changed: 14 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ jobs:
162162
run: uv pip install -U setuptools pip wheel --system
163163
- name: Install tox
164164
run: uv pip install tox --system
165-
# SNOW-2213578: Re-enable the test for 3.13
166-
- if: ${{ contains('macos', matrix.os.download_name) && matrix.python-version != '3.13' }}
165+
- if: ${{ contains('macos', matrix.os.download_name) }}
167166
name: Run doctests
168167
run: python -m tox -e "py${PYTHON_VERSION}-doctest-notudf-ci"
169168
env:
@@ -174,8 +173,7 @@ jobs:
174173
# Specify SNOWFLAKE_IS_PYTHON_RUNTIME_TEST: 1 when adding >= python3.12 with no server-side support
175174
# For example, see https://github.com/snowflakedb/snowpark-python/pull/681
176175
shell: bash
177-
- if: ${{ matrix.python-version != '3.13' }}
178-
name: Run tests (excluding doctests)
176+
- name: Run tests (excluding doctests)
179177
run: python -m tox -e "py${PYTHON_VERSION/\./}-dailynotdoctest-ci"
180178
env:
181179
PYTHON_VERSION: ${{ matrix.python-version }}
@@ -185,17 +183,13 @@ jobs:
185183
SNOWPARK_PYTHON_API_TEST_BUCKET_PATH: ${{ secrets.SNOWPARK_PYTHON_API_TEST_BUCKET_PATH }}
186184
SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION: ${{ vars.SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION }}
187185
shell: bash
188-
# SNOW-2213578 : Remove the test below and run udf tests for 3.13
189-
- if: ${{ matrix.python-version == '3.13' }}
190-
name: Run tests (excluding udf, doctests)
191-
run: python -m tox -e "py${PYTHON_VERSION/\./}-dailynotdoctestnotudf-ci"
192-
env:
193-
PYTHON_VERSION: ${{ matrix.python-version }}
194-
cloud_provider: ${{ matrix.cloud-provider }}
195-
PYTEST_ADDOPTS: --color=yes --tb=short
196-
TOX_PARALLEL_NO_SPINNER: 1
197-
SNOWPARK_PYTHON_API_TEST_BUCKET_PATH: ${{ secrets.SNOWPARK_PYTHON_API_TEST_BUCKET_PATH }}
198-
SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION: ${{ vars.SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION }}
186+
- name: Install MS ODBC Driver (Ubuntu only)
187+
if: ${{ matrix.os.download_name == 'linux' }}
188+
run: |
189+
curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
190+
curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list
191+
sudo apt-get update
192+
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 unixodbc-dev
199193
shell: bash
200194
- name: Run data source tests
201195
# psycopg2 is not supported on macos 3.9
@@ -600,8 +594,7 @@ jobs:
600594
run: uv pip install -U setuptools pip wheel --system
601595
- name: Install tox
602596
run: uv pip install tox --system
603-
# SNOW-2213578: Re-enable the test for 3.13
604-
- if: ${{ contains('macos', matrix.os.download_name) && matrix.python-version != '3.13' }}
597+
- if: ${{ contains('macos', matrix.os.download_name) }}
605598
name: Run doctests
606599
run: python -m tox -e "py${PYTHON_VERSION}-doctest-notudf-ci"
607600
env:
@@ -610,8 +603,7 @@ jobs:
610603
PYTEST_ADDOPTS: --color=yes --tb=short --disable_cte_optimization
611604
TOX_PARALLEL_NO_SPINNER: 1
612605
shell: bash
613-
- if: ${{ matrix.python-version != '3.13' }}
614-
name: Run tests (excluding doctests)
606+
- name: Run tests (excluding doctests)
615607
run: python -m tox -e "py${PYTHON_VERSION/\./}-dailynotdoctest-ci"
616608
env:
617609
PYTHON_VERSION: ${{ matrix.python-version }}
@@ -621,18 +613,6 @@ jobs:
621613
SNOWPARK_PYTHON_API_TEST_BUCKET_PATH: ${{ secrets.SNOWPARK_PYTHON_API_TEST_BUCKET_PATH }}
622614
SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION: ${{ vars.SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION }}
623615
shell: bash
624-
# SNOW-2213578 : Remove the test below and run udf tests for 3.13
625-
- if: ${{ matrix.python-version == '3.13' }}
626-
name: Run tests (excluding udf, doctests)
627-
run: python -m tox -e "py${PYTHON_VERSION/\./}-dailynotdoctestnotudf-ci"
628-
env:
629-
PYTHON_VERSION: ${{ matrix.python-version }}
630-
cloud_provider: ${{ matrix.cloud-provider }}
631-
PYTEST_ADDOPTS: --color=yes --tb=short --disable_cte_optimization
632-
TOX_PARALLEL_NO_SPINNER: 1
633-
SNOWPARK_PYTHON_API_TEST_BUCKET_PATH: ${{ secrets.SNOWPARK_PYTHON_API_TEST_BUCKET_PATH }}
634-
SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION: ${{ vars.SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION }}
635-
shell: bash
636616
- name: Combine coverages
637617
run: python -m tox -e coverage --skip-missing-interpreters false
638618
shell: bash
@@ -647,7 +627,7 @@ jobs:
647627
.tox/coverage.xml
648628
649629
test-enable-fix-join-alias:
650-
name: Test Fixing Join Alias py-${{ matrix.os }}-${{ matrix.python-version }}
630+
name: Test Fixing Join Alias py-${{ matrix.os }}-${{ matrix.python-version }}-${{ matrix.cloud-provider }}
651631
needs: build
652632
runs-on: ${{ matrix.os }}
653633
strategy:
@@ -699,7 +679,7 @@ jobs:
699679
- name: Install tox
700680
run: uv pip install tox --system
701681
# we only run doctest on macos
702-
- if: ${{ matrix.os == 'macos-latest' && matrix.python-version != '3.12'}}
682+
- if: ${{ matrix.os == 'macos-latest'}}
703683
name: Run doctests
704684
run: python -m tox -e "py${PYTHON_VERSION}-doctest-notudf-ci"
705685
env:
@@ -711,7 +691,7 @@ jobs:
711691
# For example, see https://github.com/snowflakedb/snowpark-python/pull/681
712692
shell: bash
713693
# do not run other tests for macos
714-
- if: ${{ matrix.os != 'macos-latest' && matrix.python-version != '3.12' }}
694+
- if: ${{ matrix.os != 'macos-latest'}}
715695
name: Run tests (excluding doctests)
716696
run: python -m tox -e "py${PYTHON_VERSION/\./}-notdoctest-ci"
717697
env:
@@ -722,18 +702,6 @@ jobs:
722702
SNOWPARK_PYTHON_API_TEST_BUCKET_PATH: ${{ secrets.SNOWPARK_PYTHON_API_TEST_BUCKET_PATH }}
723703
SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION: ${{ vars.SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION }}
724704
shell: bash
725-
- if: ${{ matrix.python-version == '3.12' }}
726-
name: Run tests (excluding doctests and udf tests)
727-
run: python -m tox -e "py${PYTHON_VERSION/\./}-notudfdoctest-ci"
728-
env:
729-
PYTHON_VERSION: ${{ matrix.python-version }}
730-
cloud_provider: ${{ matrix.cloud-provider }}
731-
PYTEST_ADDOPTS: --color=yes --tb=short --join_alias_fix
732-
TOX_PARALLEL_NO_SPINNER: 1
733-
SNOWFLAKE_IS_PYTHON_RUNTIME_TEST: 1
734-
SNOWPARK_PYTHON_API_TEST_BUCKET_PATH: ${{ secrets.SNOWPARK_PYTHON_API_TEST_BUCKET_PATH }}
735-
SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION: ${{ vars.SNOWPARK_PYTHON_API_S3_STORAGE_INTEGRATION }}
736-
shell: bash
737705
- name: Combine coverages
738706
run: python -m tox -e coverage --skip-missing-interpreters false
739707
shell: bash
44 Bytes
Binary file not shown.
50 Bytes
Binary file not shown.
127 Bytes
Binary file not shown.

.github/workflows/parameters/parameters_gcp.py.gpg

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
� ��cWhY�^���q�"�a����n�D!��Ks���W�V�t� ��#�u�/[v����D-������mÊ��6�M���h�u�t�'��yѫ��lwf��/����Ļ�Je�B|v7a�^�:�І�C�7�|,�|8�I���
2-
t�5�)g��2�y��~�&g�ι�� KT�d��F�oH�I0ꕎ��b1�J 8��0���� ��w}
3-
��9��f�'{��NL�G�hX�~�%|�.����G��?+_A'�c.��V�j�>����� 7���z�^��b+l�16ܜVA��8V
1+
� l���r���������`{����ű�W�Y�L�hT�k��ڭ����_� H�
2+
H�5{��쬋�ݙRS�2�I�t�'N9�eMq@�����5H��WNJ����iE�zt��ы�X�X�LG�!,O��;�V9v���WIvEFx��%��0g��-��x��cm�N���mʼn��� &\���5C�'3���f�y����0�<;hp܌����4�<����8�;L���,�+oTv�2��'����X���)�ٖr��yF_����N�js��� �=��'��Z�A��s�u%��ִF�Y���d� ���"�FѲ�m`���f-�X�
3+
�:'H��
4+
���`�^��%�;�{ZJYWl{3�:
2.54 KB
Binary file not shown.
2.54 KB
Binary file not shown.
2.53 KB
Binary file not shown.

0 commit comments

Comments
 (0)