Commit fbdcd32
authored
Migrate CI to protected runners and JFrog PyPI proxy (#770)
* Migrate CI to databricks-protected runners and route PyPI through JFrog
Protected runners are required for Databricks OSS repos. Add a
setup-jfrog composite action (OIDC-based, matching databricks-odbc) that
sets PIP_INDEX_URL so all pip/poetry installs go through the JFrog PyPI
proxy. Every workflow now runs on the databricks-protected-runner-group
with id-token: write for the OIDC exchange.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
* Add Poetry JFrog source configuration to all workflows
The previous commit only set PIP_INDEX_URL, but Poetry uses its own
resolver and needs explicit source configuration. Add a
"Configure Poetry for JFrog" step after poetry install in every job
that sets up the JFrog repository and credentials, then adds it as
the primary source for the project.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
* Fix step ordering: move JFrog setup after poetry install
The snok/install-poetry action uses pip internally to install poetry.
When PIP_INDEX_URL was set before this step, the installer tried to
route through JFrog and failed with an SSL error. Move the JFrog OIDC
token + PIP_INDEX_URL + poetry source configuration to run after
Install Poetry but before poetry install.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
* 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>
* Add poetry lock --no-update after source add to fix lock mismatch
poetry source add modifies pyproject.toml, which makes poetry refuse
to install from the existing lock file. Running poetry lock --no-update
regenerates the lock file metadata without changing dependency versions.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
* Fix poetry lock flag and YAML indentation
Poetry 2.x doesn't have --no-update flag, use poetry lock instead.
Also fix indentation of poetry lock in the arrow test job.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
* Move JFrog setup before setup-python, matching sqlalchemy pattern
Follow the proven pattern from databricks/databricks-sqlalchemy#59:
checkout → Setup JFrog → setup-python → pip install poetry → poetry
source add + poetry lock → poetry install.
The hardened runners block pypi.org at the network level, so JFrog
must be configured before actions/setup-python (which upgrades pip).
Also simplified workflows by removing verbose section comments.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
* Extract setup-poetry composite action to remove duplication
Create .github/actions/setup-poetry that bundles JFrog setup,
setup-python, poetry install via pip, JFrog source config, cache,
and dependency install into a single reusable action with inputs
for python-version, install-args, cache-path, and cache-suffix.
All workflows now call setup-poetry instead of repeating these steps,
matching the pattern from databricks/databricks-sqlalchemy#59.
Co-authored-by: Isaac
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>
---------
Signed-off-by: Vikrant Puppala <vikrant.puppala@databricks.com>1 parent e056275 commit fbdcd32
File tree
7 files changed
+196
-394
lines changed- .github
- actions
- setup-jfrog
- setup-poetry
- workflows
7 files changed
+196
-394
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
10 | | - | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
37 | 29 | | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
| 30 | + | |
| 31 | + | |
43 | 32 | | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 33 | + | |
| 34 | + | |
76 | 35 | | |
77 | 36 | | |
78 | 37 | | |
| |||
83 | 42 | | |
84 | 43 | | |
85 | 44 | | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | 45 | | |
91 | 46 | | |
92 | 47 | | |
93 | | - | |
94 | 48 | | |
95 | 49 | | |
96 | 50 | | |
97 | 51 | | |
98 | 52 | | |
99 | 53 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | 54 | | |
105 | 55 | | |
106 | 56 | | |
| |||
116 | 66 | | |
117 | 67 | | |
118 | 68 | | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 69 | | |
123 | 70 | | |
124 | 71 | | |
| |||
127 | 74 | | |
128 | 75 | | |
129 | 76 | | |
130 | | - | |
131 | | - | |
132 | 77 | | |
133 | 78 | | |
134 | 79 | | |
135 | | - | |
136 | 80 | | |
137 | 81 | | |
138 | 82 | | |
139 | | - | |
140 | 83 | | |
141 | 84 | | |
142 | | - | |
143 | | - | |
144 | 85 | | |
145 | 86 | | |
146 | 87 | | |
147 | 88 | | |
148 | 89 | | |
149 | 90 | | |
150 | 91 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 92 | | |
156 | 93 | | |
157 | 94 | | |
158 | 95 | | |
159 | 96 | | |
160 | 97 | | |
161 | | - | |
| 98 | + | |
162 | 99 | | |
163 | 100 | | |
164 | | - | |
| 101 | + | |
165 | 102 | | |
166 | | - | |
0 commit comments