Skip to content

Commit 03fb9f7

Browse files
authored
Merge pull request freedomofpress#7570 from freedomofpress/7565-noble-by-default
Default to Ubuntu Noble in devops scripts and dev-shell
2 parents f438e5d + 4ea863f commit 03fb9f7

File tree

9 files changed

+8
-13
lines changed

9 files changed

+8
-13
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@ jobs:
1919
matrix:
2020
build: [one, two]
2121
versions:
22-
- ubuntu: focal
23-
python: "3.8"
2422
- ubuntu: noble
2523
python: "3.12"
2624
# TODO: change this back to ubuntu-latest once it is consistently 24.04
@@ -50,7 +48,7 @@ jobs:
5048
reproducible-debs:
5149
strategy:
5250
matrix:
53-
ubuntu_version: [focal, noble]
51+
ubuntu_version: [noble]
5452
runs-on: ubuntu-latest
5553
container: debian:bookworm
5654
needs:

.github/workflows/ci.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
ubuntu_version:
47-
- focal
4847
- noble
4948
steps:
5049
- uses: actions/checkout@v4
@@ -63,7 +62,6 @@ jobs:
6362
fail-fast: false
6463
matrix:
6564
ubuntu_version:
66-
- focal
6765
- noble
6866
steps:
6967
- uses: actions/checkout@v4
@@ -82,7 +80,6 @@ jobs:
8280
fail-fast: false
8381
matrix:
8482
ubuntu_version:
85-
- focal
8683
- noble
8784
steps:
8885
- uses: actions/checkout@v4

.github/workflows/staging.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
ubuntu_version: ["focal", "noble"]
15+
ubuntu_version: ["noble"]
1616
runs-on: ubuntu-latest
1717
env:
1818
GOOGLE_CREDENTIALS: ${{ secrets.GOOGLE_CREDENTIALS }}

devops/scripts/boot-strap-venv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
set -eo pipefail
66

7-
UBUNTU_VERSION="${UBUNTU_VERSION:-focal}"
7+
UBUNTU_VERSION="${UBUNTU_VERSION:-noble}"
88

99
# https://peps.python.org/pep-0508/#environment-markers
1010
PYTHON_VERSION="$(python3 -c 'import platform; print(".".join(platform.python_version_tuple()[:2]))')"

devops/scripts/build-debs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set -o pipefail
1111
virtualenv_bootstrap
1212

1313
RUN_TESTS="${1:-test}"
14-
TARGET_PLATFORM="${2:-focal}"
14+
TARGET_PLATFORM="${2:-noble}"
1515
SCENARIO_NAME="builder-${TARGET_PLATFORM}"
1616

1717
case "$RUN_TESTS" in

devops/scripts/create-staging-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ set -o pipefail
1414

1515
. ./devops/scripts/boot-strap-venv.sh
1616

17-
export PLATFORM="${UBUNTU_VERSION:-focal}"
17+
export PLATFORM="${UBUNTU_VERSION:-noble}"
1818

1919
securedrop_staging_scenario="$(./devops/scripts/select-staging-env "${PLATFORM}")"
2020

devops/scripts/select-staging-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ set -o pipefail
1212

1313

1414
# Support overrides for LTS version
15-
securedrop_platform_suffix="-${1:-focal}"
15+
securedrop_platform_suffix="-${1:-noble}"
1616

1717
# Respect explicit choice of Vagrant provider if set.
1818
if [[ -n "${VAGRANT_DEFAULT_PROVIDER:-}" ]] ; then

devops/scripts/test-built-packages.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
set -e
77
set -o pipefail
8-
TARGET_PLATFORM="${1:-focal}"
8+
TARGET_PLATFORM="${1:-noble}"
99
. ./devops/scripts/boot-strap-venv.sh
1010

1111
virtualenv_bootstrap

securedrop/bin/dev-shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ USE_TOR="${USE_TOR:-}"
1313
USE_PODMAN="${USE_PODMAN:-}"
1414
SLIM_BUILD="${SLIM_BUILD:-}"
1515
DOCKER_RUN_ARGUMENTS="${DOCKER_RUN_ARGUMENTS:-}"
16-
UBUNTU_VERSION="${UBUNTU_VERSION:-focal}"
16+
UBUNTU_VERSION="${UBUNTU_VERSION:-noble}"
1717

1818
# Allow opting into using podman with USE_PODMAN=1
1919
if [[ -n "${USE_PODMAN}" ]]; then

0 commit comments

Comments
 (0)