Skip to content

Commit 5d10f5e

Browse files
Replace snok/install-poetry with pip install through JFrog
The hardened runners block direct access to install.python-poetry.org, causing snok/install-poetry to fail with SSL errors. Replace it with `pip install poetry==2.2.1` which routes through the JFrog PyPI proxy. New step ordering: checkout → setup-python → Setup JFrog (OIDC + PIP_INDEX_URL) → pip install poetry → Configure Poetry for JFrog → poetry install. Co-authored-by: Isaac Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
1 parent 2387c20 commit 5d10f5e

File tree

4 files changed

+74
-82
lines changed

4 files changed

+74
-82
lines changed

.github/workflows/code-coverage.yml

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@ jobs:
3232
with:
3333
python-version: "3.10"
3434
#----------------------------------------------
35+
# ----- configure JFrog PyPI proxy -----
36+
#----------------------------------------------
37+
- name: Setup JFrog
38+
uses: ./.github/actions/setup-jfrog
39+
#----------------------------------------------
3540
# ----- install system dependencies -----
3641
#----------------------------------------------
3742
- name: Install system dependencies
@@ -42,17 +47,11 @@ jobs:
4247
# ----- install & configure poetry -----
4348
#----------------------------------------------
4449
- name: Install Poetry
45-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
46-
with:
47-
version: "2.2.1"
48-
virtualenvs-create: true
49-
virtualenvs-in-project: true
50-
installer-parallel: true
51-
#----------------------------------------------
52-
# ----- configure JFrog PyPI proxy -----
53-
#----------------------------------------------
54-
- name: Setup JFrog
55-
uses: ./.github/actions/setup-jfrog
50+
run: |
51+
pip install poetry==2.2.1
52+
poetry config virtualenvs.create true
53+
poetry config virtualenvs.in-project true
54+
poetry config installer.parallel true
5655
- name: Configure Poetry for JFrog
5756
run: |
5857
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple

.github/workflows/code-quality-checks.yml

Lines changed: 36 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,19 @@ jobs:
3636
with:
3737
python-version: ${{ matrix.python-version }}
3838
#----------------------------------------------
39-
# ----- install & configure poetry -----
40-
#----------------------------------------------
41-
- name: Install Poetry
42-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
43-
with:
44-
version: "2.2.1"
45-
virtualenvs-create: true
46-
virtualenvs-in-project: true
47-
installer-parallel: true
48-
#----------------------------------------------
4939
# ----- configure JFrog PyPI proxy -----
5040
#----------------------------------------------
5141
- name: Setup JFrog
5242
uses: ./.github/actions/setup-jfrog
43+
#----------------------------------------------
44+
# ----- install & configure poetry -----
45+
#----------------------------------------------
46+
- name: Install Poetry
47+
run: |
48+
pip install poetry==2.2.1
49+
poetry config virtualenvs.create true
50+
poetry config virtualenvs.in-project true
51+
poetry config installer.parallel true
5352
- name: Configure Poetry for JFrog
5453
run: |
5554
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
@@ -132,20 +131,19 @@ jobs:
132131
with:
133132
python-version: ${{ matrix.python-version }}
134133
#----------------------------------------------
135-
# ----- install & configure poetry -----
136-
#----------------------------------------------
137-
- name: Install Poetry
138-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
139-
with:
140-
version: "2.2.1"
141-
virtualenvs-create: true
142-
virtualenvs-in-project: true
143-
installer-parallel: true
144-
#----------------------------------------------
145134
# ----- configure JFrog PyPI proxy -----
146135
#----------------------------------------------
147136
- name: Setup JFrog
148137
uses: ./.github/actions/setup-jfrog
138+
#----------------------------------------------
139+
# ----- install & configure poetry -----
140+
#----------------------------------------------
141+
- name: Install Poetry
142+
run: |
143+
pip install poetry==2.2.1
144+
poetry config virtualenvs.create true
145+
poetry config virtualenvs.in-project true
146+
poetry config installer.parallel true
149147
- name: Configure Poetry for JFrog
150148
run: |
151149
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
@@ -222,20 +220,19 @@ jobs:
222220
with:
223221
python-version: ${{ matrix.python-version }}
224222
#----------------------------------------------
225-
# ----- install & configure poetry -----
226-
#----------------------------------------------
227-
- name: Install Poetry
228-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
229-
with:
230-
version: "2.2.1"
231-
virtualenvs-create: true
232-
virtualenvs-in-project: true
233-
installer-parallel: true
234-
#----------------------------------------------
235223
# ----- configure JFrog PyPI proxy -----
236224
#----------------------------------------------
237225
- name: Setup JFrog
238226
uses: ./.github/actions/setup-jfrog
227+
#----------------------------------------------
228+
# ----- install & configure poetry -----
229+
#----------------------------------------------
230+
- name: Install Poetry
231+
run: |
232+
pip install poetry==2.2.1
233+
poetry config virtualenvs.create true
234+
poetry config virtualenvs.in-project true
235+
poetry config installer.parallel true
239236
- name: Configure Poetry for JFrog
240237
run: |
241238
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
@@ -287,20 +284,19 @@ jobs:
287284
with:
288285
python-version: ${{ matrix.python-version }}
289286
#----------------------------------------------
290-
# ----- install & configure poetry -----
291-
#----------------------------------------------
292-
- name: Install Poetry
293-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
294-
with:
295-
version: "2.2.1"
296-
virtualenvs-create: true
297-
virtualenvs-in-project: true
298-
installer-parallel: true
299-
#----------------------------------------------
300287
# ----- configure JFrog PyPI proxy -----
301288
#----------------------------------------------
302289
- name: Setup JFrog
303290
uses: ./.github/actions/setup-jfrog
291+
#----------------------------------------------
292+
# ----- install & configure poetry -----
293+
#----------------------------------------------
294+
- name: Install Poetry
295+
run: |
296+
pip install poetry==2.2.1
297+
poetry config virtualenvs.create true
298+
poetry config virtualenvs.in-project true
299+
poetry config installer.parallel true
304300
- name: Configure Poetry for JFrog
305301
run: |
306302
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple

.github/workflows/daily-telemetry-e2e.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,22 +42,20 @@ jobs:
4242
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
4343
with:
4444
python-version: "3.10"
45-
46-
#----------------------------------------------
47-
# ----- install & configure poetry -----
48-
#----------------------------------------------
49-
- name: Install Poetry
50-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
51-
with:
52-
version: "2.2.1"
53-
virtualenvs-create: true
54-
virtualenvs-in-project: true
55-
installer-parallel: true
5645
#----------------------------------------------
5746
# ----- configure JFrog PyPI proxy -----
5847
#----------------------------------------------
5948
- name: Setup JFrog
6049
uses: ./.github/actions/setup-jfrog
50+
#----------------------------------------------
51+
# ----- install & configure poetry -----
52+
#----------------------------------------------
53+
- name: Install Poetry
54+
run: |
55+
pip install poetry==2.2.1
56+
poetry config virtualenvs.create true
57+
poetry config virtualenvs.in-project true
58+
poetry config installer.parallel true
6159
- name: Configure Poetry for JFrog
6260
run: |
6361
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple

.github/workflows/integration.yml

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,20 +34,19 @@ jobs:
3434
with:
3535
python-version: "3.10"
3636
#----------------------------------------------
37-
# ----- install & configure poetry -----
38-
#----------------------------------------------
39-
- name: Install Poetry
40-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
41-
with:
42-
version: "2.2.1"
43-
virtualenvs-create: true
44-
virtualenvs-in-project: true
45-
installer-parallel: true
46-
#----------------------------------------------
4737
# ----- configure JFrog PyPI proxy -----
4838
#----------------------------------------------
4939
- name: Setup JFrog
5040
uses: ./.github/actions/setup-jfrog
41+
#----------------------------------------------
42+
# ----- install & configure poetry -----
43+
#----------------------------------------------
44+
- name: Install Poetry
45+
run: |
46+
pip install poetry==2.2.1
47+
poetry config virtualenvs.create true
48+
poetry config virtualenvs.in-project true
49+
poetry config installer.parallel true
5150
- name: Configure Poetry for JFrog
5251
run: |
5352
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple
@@ -103,21 +102,21 @@ jobs:
103102
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
104103
with:
105104
python-version: "3.10"
106-
- name: Install system dependencies
107-
run: |
108-
sudo apt-get update
109-
sudo apt-get install -y libkrb5-dev
110-
- name: Install Poetry
111-
uses: snok/install-poetry@76e04a911780d5b312d89783f7b1cd627778900a # v1
112-
with:
113-
virtualenvs-create: true
114-
virtualenvs-in-project: true
115-
installer-parallel: true
116105
#----------------------------------------------
117106
# ----- configure JFrog PyPI proxy -----
118107
#----------------------------------------------
119108
- name: Setup JFrog
120109
uses: ./.github/actions/setup-jfrog
110+
- name: Install system dependencies
111+
run: |
112+
sudo apt-get update
113+
sudo apt-get install -y libkrb5-dev
114+
- name: Install Poetry
115+
run: |
116+
pip install poetry==2.2.1
117+
poetry config virtualenvs.create true
118+
poetry config virtualenvs.in-project true
119+
poetry config installer.parallel true
121120
- name: Configure Poetry for JFrog
122121
run: |
123122
poetry config repositories.jfrog https://databricks.jfrog.io/artifactory/api/pypi/db-pypi/simple

0 commit comments

Comments
 (0)