Skip to content

Commit 3b5b8a6

Browse files
committed
[MINOR][INFRA] Use lsb_release -a to display the container os version
### What changes were proposed in this pull request? Use `lsb_release -a` to display the container os version ### Why are the changes needed? `uname -a` always show the host os version ### Does this PR introduce _any_ user-facing change? no, infra-only ### How was this patch tested? check in `lint` job which is currently based on ubuntu 22.04. ``` uname -a lsb_release -a ``` outputs ``` Linux ffe3f795a8eb 6.11.0-1018-azure #18~24.04.1-Ubuntu SMP Sat Jun 28 04:46:03 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.5 LTS Release: 22.04 Codename: jammy ``` https://github.com/zhengruifeng/spark/actions/runs/21808410627/job/62915850607 ### Was this patch authored or co-authored using generative AI tooling? no Closes #54219 from zhengruifeng/show_container_os. Authored-by: Ruifeng Zheng <[email protected]> Signed-off-by: Ruifeng Zheng <[email protected]>
1 parent eaa3378 commit 3b5b8a6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build_and_test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ jobs:
632632
env: ${{ fromJSON(inputs.envs) }}
633633
shell: 'script -q -e -c "bash {0}"'
634634
run: |
635-
uname -a
635+
lsb_release -a
636636
for py in $(echo $PYTHON_TO_TEST | tr "," "\n")
637637
do
638638
$py --version
@@ -934,6 +934,7 @@ jobs:
934934
- name: List Python packages
935935
shell: 'script -q -e -c "bash {0}"'
936936
run: |
937+
lsb_release -a
937938
if [[ "$BRANCH" == 'branch-3.5' || "$BRANCH" == 'branch-4.0' ]]; then
938939
python3.9 --version
939940
python3.9 -m pip list
@@ -1113,7 +1114,9 @@ jobs:
11131114
run: python3.9 -m pip list
11141115
- name: List Python packages
11151116
if: inputs.branch != 'branch-3.5' && inputs.branch != 'branch-4.0'
1116-
run: python3.11 -m pip list
1117+
run: |
1118+
lsb_release -a
1119+
python3.11 -m pip list
11171120
- name: Install dependencies for documentation generation
11181121
run: |
11191122
# Keep the version of Bundler here in sync with the following locations:

0 commit comments

Comments
 (0)