Skip to content

Commit c645cb8

Browse files
authored
Merge pull request #7671 from freedomofpress/stg-focals-fond-farewell
Remove code required to support Ubuntu Focal.
2 parents 0249155 + 9da127f commit c645cb8

File tree

83 files changed

+81
-4260
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+81
-4260
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
ubuntu_version:
15-
- focal
1615
- noble
1716
container: ubuntu:${{ matrix.ubuntu_version }}
1817
steps:
@@ -28,9 +27,9 @@ jobs:
2827
build-essential python3-virtualenv python3-dev enchant-2 file apache2-dev jq libarchive-tools
2928
virtualenv .venv
3029
# TODO: this should be one step, but there are too many conflicting dependencies
31-
./.venv/bin/pip install -r securedrop/requirements/${{ matrix.ubuntu_version }}/test-requirements.txt
32-
./.venv/bin/pip install -r securedrop/requirements/${{ matrix.ubuntu_version }}/requirements.txt
33-
./.venv/bin/pip install -r securedrop/requirements/${{ matrix.ubuntu_version }}/develop-requirements.txt
30+
./.venv/bin/pip install -r securedrop/requirements/test-requirements.txt
31+
./.venv/bin/pip install -r securedrop/requirements/requirements.txt
32+
./.venv/bin/pip install -r securedrop/requirements/develop-requirements.txt
3433
- name: Run lint
3534
run: |
3635
git config --global --add safe.directory $GITHUB_WORKSPACE

.github/workflows/demo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ defaults:
99
jobs:
1010
build:
1111
name: Build demo
12-
runs-on: ubuntu-22.04
12+
runs-on: ubuntu-24.04
1313
env:
1414
DOCKERIZE_VERSION: v0.6.1
1515
steps:
@@ -18,7 +18,7 @@ jobs:
1818
persist-credentials: false
1919
- name: Build container
2020
run: |
21-
podman build -t demo -f securedrop/dockerfiles/focal/python3/DemoDockerfile .
21+
podman build -t demo -f securedrop/dockerfiles/noble/python3/DemoDockerfile .
2222
- name: Install dockerize
2323
run: |
2424
wget https://github.com/jwilder/dockerize/releases/download/$DOCKERIZE_VERSION/dockerize-linux-amd64-$DOCKERIZE_VERSION.tar.gz

Cargo.lock

Lines changed: 0 additions & 185 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[workspace]
22

33
members = [
4-
"noble-migration",
54
"redwood",
65
]
76

builder/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
ARG UBUNTU_VERSION=focal
1+
ARG UBUNTU_VERSION=noble
22
FROM ubuntu:${UBUNTU_VERSION}
33

44
ARG DEBIAN_FRONTEND=noninteractive

builder/build-debs-securedrop.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,13 @@ source /etc/os-release
1414
# Make a copy of the source tree since we do destructive operations on it
1515
cp -R /src/securedrop /srv/securedrop
1616
mkdir /srv/rust
17-
cp -R /src/noble-migration /srv/rust/noble-migration
1817
cp -R /src/redwood /srv/rust/redwood
1918
cp /src/Cargo.{toml,lock} /srv/rust/
2019
cd /srv/securedrop/
2120

2221
# Control the version of setuptools used in the default construction of virtual environments
2322
# TODO: get rid of this when we switch to reproducible wheels
24-
pip3 download --no-deps --require-hashes -r requirements/${VERSION_CODENAME}/requirements.txt --dest /tmp/requirements-download
23+
pip3 download --no-deps --require-hashes -r requirements/requirements.txt --dest /tmp/requirements-download
2524
rm -f /usr/share/python-wheels/setuptools-*.whl
2625
mv /tmp/requirements-download/setuptools-*.whl /usr/share/python-wheels/
2726

builder/build-debs.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,10 @@ git status --short
1616

1717
# --- END keep this section in sync. ---
1818

19-
export UBUNTU_VERSION="${UBUNTU_VERSION:-focal}"
19+
export UBUNTU_VERSION="${UBUNTU_VERSION:-noble}"
2020

2121
OCI_RUN_ARGUMENTS="--user=root -v $(pwd):/src:Z -e HOST_UID=$(id -u) -e HOST_GID=$(id -g)"
2222

23-
# Setuptools_scm 8.3.0 breaks focal builds - so let's temporarily constrain it to 8.1.0
24-
TMP_CONSTRAINT="/srv/securedrop/requirements/${UBUNTU_VERSION}/constraints.txt"
25-
if [[ $UBUNTU_VERSION == "focal" ]]; then
26-
OCI_RUN_ARGUMENTS="-e PIP_CONSTRAINT=${TMP_CONSTRAINT} ${OCI_RUN_ARGUMENTS}"
27-
fi
28-
2923
# Default to podman if available
3024
if which podman > /dev/null 2>&1; then
3125
OCI_BIN="podman"

0 commit comments

Comments
 (0)