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 1818jobs :
1919 analyze :
2020 name : Analyze
21- runs-on : ubuntu-latest
21+ runs-on : ubuntu-22.04
2222
2323 strategy :
2424 fail-fast : false
3131
3232 # Initializes the CodeQL tools for scanning.
3333 - name : Initialize CodeQL
34- uses : github/codeql-action/init@v2
34+ uses : github/codeql-action/init@v3
3535 with :
3636 languages : ${{ matrix.language }}
3737
3838 - 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 99jobs :
1010 tests :
1111 # Ubuntu latest no longer installs Python 3.9 by default so install it
12- runs-on : ubuntu-latest
12+ runs-on : ubuntu-22.04
1313 steps :
1414 - name : Checkout
1515 uses : actions/checkout@v4
2626 # key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
2727 # restore-keys: |
2828 # ${{ 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
2933
3034 - name : Set up Python 3.8
3135 uses : actions/setup-python@v5
Original file line number Diff line number Diff line change 77
88jobs :
99 release :
10- runs-on : ubuntu-latest
10+ runs-on : ubuntu-22.04
1111 environment : release
1212 permissions :
1313 # Used to authenticate to PyPI via OIDC and sign the release's artifacts with sigstore-python.
1919 - name : Checkout
2020 uses : actions/checkout@v4
2121
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+
2227 - name : Set up Python 3.8
2328 uses : actions/setup-python@v5
2429 with :
Original file line number Diff line number Diff line change 33## Change History
44All notable changes to the Databricks Labs Data Generator will be documented in this file.
55
6+ ### unreleased
7+
8+ #### Fixed
9+ * Updated build scripts to use Ubuntu 22.04 to correspond to environment in Databricks runtime
10+
611### Version 0.4.0 Hotfix 2
712
813#### 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
158158with a lower case letter rather than underscores following Pyspark coding conventions.
159159
160160See 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