File tree Expand file tree Collapse file tree 5 files changed +38
-5
lines changed Expand file tree Collapse file tree 5 files changed +38
-5
lines changed Original file line number Diff line number Diff line change 18
18
jobs :
19
19
analyze :
20
20
name : Analyze
21
- runs-on : ubuntu-latest
21
+ runs-on : ubuntu-22.04
22
22
23
23
strategy :
24
24
fail-fast : false
31
31
32
32
# Initializes the CodeQL tools for scanning.
33
33
- name : Initialize CodeQL
34
- uses : github/codeql-action/init@v2
34
+ uses : github/codeql-action/init@v3
35
35
with :
36
36
languages : ${{ matrix.language }}
37
37
38
38
- name : Perform CodeQL Analysis
39
- uses : github/codeql-action/analyze@v2
39
+ uses : github/codeql-action/analyze@v3
Original file line number Diff line number Diff line change 9
9
jobs :
10
10
tests :
11
11
# Ubuntu latest no longer installs Python 3.9 by default so install it
12
- runs-on : ubuntu-latest
12
+ runs-on : ubuntu-22.04
13
13
steps :
14
14
- name : Checkout
15
15
uses : actions/checkout@v4
26
26
# key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
27
27
# restore-keys: |
28
28
# ${{ runner.os }}-go-
29
+ - name : Set Java 8
30
+ run : |
31
+ sudo update-alternatives --set java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java
32
+ java -version
29
33
30
34
- name : Set up Python 3.8
31
35
uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
release :
10
- runs-on : ubuntu-latest
10
+ runs-on : ubuntu-22.04
11
11
environment : release
12
12
permissions :
13
13
# Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python.
19
19
- name : Checkout
20
20
uses : actions/checkout@v4
21
21
22
+ - name : Set Java 8
23
+ run : |
24
+ sudo update-alternatives --set java /usr/lib/jvm/temurin-8-jdk-amd64/bin/java
25
+ java -version
26
+
22
27
- name : Set up Python 3.8
23
28
uses : actions/setup-python@v5
24
29
with :
Original file line number Diff line number Diff line change 3
3
## Change History
4
4
All notable changes to the Databricks Labs Data Generator will be documented in this file.
5
5
6
+ ### unreleased
7
+
8
+ #### Fixed
9
+ * Updated build scripts to use Ubuntu 22.04 to correspond to environment in Databricks runtime
10
+
6
11
### Version 0.4.0 Hotfix 2
7
12
8
13
#### Fixed
Original file line number Diff line number Diff line change @@ -158,3 +158,22 @@ Basically it follows the Python PEP8 coding conventions - but method and argumen
158
158
with a lower case letter rather than underscores following Pyspark coding conventions.
159
159
160
160
See https://legacy.python.org/dev/peps/pep-0008/
161
+
162
+ # Github expectations
163
+ When running the unit tests on Github, the environment should use the same environment as the latest Databricks
164
+ runtime latest LTS release. While compatibility is preserved on LTS releases from Databricks runtime 10.4 onwards,
165
+ unit tests will be run on the environment corresponding to the latest LTS release.
166
+
167
+ Libraries will use the same versions as the earliest supported LTS release - currently 10.4 LTS
168
+
169
+ This means for the current build:
170
+
171
+ - Use of Ubuntu 22.04 for the test runner
172
+ - Use of Java 8
173
+ - Use of Python 3.11
174
+
175
+ See the following resources for more information
176
+ = https://docs.databricks.com/en/release-notes/runtime/15.4lts.html
177
+ - https://docs.databricks.com/en/release-notes/runtime/10.4lts.html
178
+ - https://github.com/actions/runner-images/issues/10636
179
+
You can’t perform that action at this time.
0 commit comments