prep for ubuntu 24.04 (#32307)

* update to ubuntu 24.04

* latest

* revert those

* fix that

* vla

* try that

* fix uid

* keep 20.04 support

* just prep for now
old-commit-hash: a44add160e
pull/32199/head
Adeeb Shihadeh 1 year ago committed by GitHub
parent cc71b0876a
commit cec27f9db5
  1. 2
      .github/ISSUE_TEMPLATE/pc_bug_report.yml
  2. 2
      .github/workflows/badges.yaml
  3. 2
      .github/workflows/docs.yaml
  4. 2
      .github/workflows/prebuilt.yaml
  5. 2
      .github/workflows/release.yaml
  6. 4
      .github/workflows/repo-maintenance.yaml
  7. 26
      .github/workflows/selfdrive_tests.yaml
  8. 6
      .github/workflows/tools_tests.yaml
  9. 1
      SConstruct
  10. 13
      tools/install_ubuntu_dependencies.sh

@ -24,7 +24,7 @@ body:
id: os-version id: os-version
attributes: attributes:
label: OS Version label: OS Version
placeholder: Ubuntu 20.04 placeholder: Ubuntu 24.04
validations: validations:
required: true required: true

@ -12,7 +12,7 @@ env:
jobs: jobs:
badges: badges:
name: create badges name: create badges
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
if: github.repository == 'commaai/openpilot' if: github.repository == 'commaai/openpilot'
permissions: permissions:
contents: write contents: write

@ -20,7 +20,7 @@ env:
jobs: jobs:
docs: docs:
name: build docs name: build docs
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
timeout-minutes: 45 timeout-minutes: 45
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4

@ -11,7 +11,7 @@ env:
jobs: jobs:
build_prebuilt: build_prebuilt:
name: build prebuilt name: build prebuilt
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
if: github.repository == 'commaai/openpilot' if: github.repository == 'commaai/openpilot'
env: env:
PUSH_IMAGE: true PUSH_IMAGE: true

@ -12,7 +12,7 @@ jobs:
ImageOS: ubuntu20 ImageOS: ubuntu20
container: container:
image: ghcr.io/commaai/openpilot-base:latest image: ghcr.io/commaai/openpilot-base:latest
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
if: github.repository == 'commaai/openpilot' if: github.repository == 'commaai/openpilot'
permissions: permissions:
checks: read checks: read

@ -8,7 +8,7 @@ on:
jobs: jobs:
bump_submodules: bump_submodules:
name: bump_submodules name: bump_submodules
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
container: container:
image: ghcr.io/commaai/openpilot-base:latest image: ghcr.io/commaai/openpilot-base:latest
if: github.repository == 'commaai/openpilot' if: github.repository == 'commaai/openpilot'
@ -34,7 +34,7 @@ jobs:
labels: bot labels: bot
package_updates: package_updates:
name: package_updates name: package_updates
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
container: container:
image: ghcr.io/commaai/openpilot-base:latest image: ghcr.io/commaai/openpilot-base:latest
if: github.repository == 'commaai/openpilot' if: github.repository == 'commaai/openpilot'

@ -26,7 +26,7 @@ env:
jobs: jobs:
build_release: build_release:
name: build release name: build release
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
env: env:
STRIPPED_DIR: /tmp/releasepilot STRIPPED_DIR: /tmp/releasepilot
steps: steps:
@ -71,7 +71,7 @@ jobs:
((github.repository == 'commaai/openpilot') && ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') || ((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && '["x86_64", "aarch64"]' || '["x86_64"]' ) }} (github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && '["x86_64", "aarch64"]' || '["x86_64"]' ) }}
runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-20.04' }} runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-latest' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -87,7 +87,7 @@ jobs:
strategy: strategy:
matrix: matrix:
arch: ${{ fromJson( (github.repository == 'commaai/openpilot') && '["x86_64", "aarch64"]' || '["x86_64"]' ) }} arch: ${{ fromJson( (github.repository == 'commaai/openpilot') && '["x86_64", "aarch64"]' || '["x86_64"]' ) }}
runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-20.04' }} runs-on: ${{ (matrix.arch == 'aarch64') && 'namespace-profile-arm64-2x8' || 'ubuntu-latest' }}
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -104,7 +104,7 @@ jobs:
docker_push_multiarch: docker_push_multiarch:
name: docker push multiarch tag name: docker push multiarch tag
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot' if: github.ref == 'refs/heads/master' && github.event_name != 'pull_request' && github.repository == 'commaai/openpilot'
needs: [docker_push] needs: [docker_push]
steps: steps:
@ -123,7 +123,7 @@ jobs:
name: static analysis name: static analysis
runs-on: ${{ ((github.repository == 'commaai/openpilot') && runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') || ((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }} (github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -136,7 +136,7 @@ jobs:
valgrind: valgrind:
name: valgrind name: valgrind
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -156,7 +156,7 @@ jobs:
name: unit tests name: unit tests
runs-on: ${{ ((github.repository == 'commaai/openpilot') && runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') || ((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }} (github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -187,7 +187,7 @@ jobs:
name: process replay name: process replay
runs-on: ${{ ((github.repository == 'commaai/openpilot') && runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') || ((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }} (github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -234,7 +234,7 @@ jobs:
regen: regen:
name: regen name: regen
runs-on: 'ubuntu-20.04' runs-on: 'ubuntu-latest'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -259,7 +259,7 @@ jobs:
test_modeld: test_modeld:
name: model tests name: model tests
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@ -294,7 +294,7 @@ jobs:
name: cars name: cars
runs-on: ${{ ((github.repository == 'commaai/openpilot') && runs-on: ${{ ((github.repository == 'commaai/openpilot') &&
((github.event_name != 'pull_request') || ((github.event_name != 'pull_request') ||
(github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-20.04' }} (github.event.pull_request.head.repo.full_name == 'commaai/openpilot'))) && 'namespace-profile-amd64-8x16' || 'ubuntu-latest' }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
@ -329,7 +329,7 @@ jobs:
car_docs_diff: car_docs_diff:
name: PR comments name: PR comments
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -383,7 +383,7 @@ jobs:
create_ui_report: create_ui_report:
name: Create UI Report name: Create UI Report
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:

@ -22,7 +22,7 @@ env:
jobs: jobs:
plotjuggler: plotjuggler:
name: plotjuggler name: plotjuggler
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
timeout-minutes: 45 timeout-minutes: 45
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -39,7 +39,7 @@ jobs:
simulator: simulator:
name: simulator name: simulator
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
if: github.repository == 'commaai/openpilot' if: github.repository == 'commaai/openpilot'
timeout-minutes: 45 timeout-minutes: 45
steps: steps:
@ -85,7 +85,7 @@ jobs:
notebooks: notebooks:
name: notebooks name: notebooks
runs-on: ubuntu-20.04 runs-on: ubuntu-latest
if: false && github.repository == 'commaai/openpilot' if: false && github.repository == 'commaai/openpilot'
timeout-minutes: 45 timeout-minutes: 45
steps: steps:

@ -193,6 +193,7 @@ env = Environment(
"-Wno-c99-designator", "-Wno-c99-designator",
"-Wno-reorder-init-list", "-Wno-reorder-init-list",
"-Wno-error=unused-but-set-variable", "-Wno-error=unused-but-set-variable",
"-Wno-vla-cxx-extension",
] + cflags + ccflags, ] + cflags + ccflags,
CPPPATH=cpppath + [ CPPPATH=cpppath + [

@ -81,7 +81,7 @@ function install_ubuntu_common_requirements() {
valgrind valgrind
} }
# Install Ubuntu 22.04 LTS packages # Install Ubuntu 24.04 LTS packages
function install_ubuntu_lts_latest_requirements() { function install_ubuntu_lts_latest_requirements() {
install_ubuntu_common_requirements install_ubuntu_common_requirements
@ -108,10 +108,7 @@ function install_ubuntu_focal_requirements() {
if [ -f "/etc/os-release" ]; then if [ -f "/etc/os-release" ]; then
source /etc/os-release source /etc/os-release
case "$VERSION_CODENAME" in case "$VERSION_CODENAME" in
"jammy") "jammy" | "kinetic" | "noble")
install_ubuntu_lts_latest_requirements
;;
"kinetic")
install_ubuntu_lts_latest_requirements install_ubuntu_lts_latest_requirements
;; ;;
"focal") "focal")
@ -124,10 +121,10 @@ if [ -f "/etc/os-release" ]; then
if [[ ! $REPLY =~ ^[Yy]$ ]]; then if [[ ! $REPLY =~ ^[Yy]$ ]]; then
exit 1 exit 1
fi fi
if [ "$UBUNTU_CODENAME" = "jammy" ] || [ "$UBUNTU_CODENAME" = "kinetic" ]; then if [ "$UBUNTU_CODENAME" = "focal" ]; then
install_ubuntu_lts_latest_requirements
else
install_ubuntu_focal_requirements install_ubuntu_focal_requirements
else
install_ubuntu_lts_latest_requirements
fi fi
esac esac
else else

Loading…
Cancel
Save