Skip to content

Commit ee5b536

Browse files
committed
Update Swift versions
Updates the Swift version to the latest released Swift version. This ensures that the projects are fuzzed against the latest compiler and runtime versions. Additionally, some projects don't support 5.10 anymore so bumping to 6.2 should give us the latest versions of those projects. Update projects/swift-nio/Dockerfile Co-authored-by: Kleis Auke Wolthuizen <github@kleisauke.nl> Update base os version Update swift deps
1 parent 0fd24a1 commit ee5b536

File tree

7 files changed

+18
-14
lines changed

7 files changed

+18
-14
lines changed

infra/base-images/base-builder/install_swift_ubuntu-24-04.sh

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,30 @@
1919
source /etc/os-release
2020

2121
if [[ "$VERSION_ID" == "20.04" ]]; then
22-
SWIFT_PACKAGES="wget \
23-
binutils \
22+
SWIFT_PACKAGES="binutils \
2423
git \
24+
unzip \
2525
gnupg2 \
2626
libc6-dev \
27-
libcurl4 \
27+
libcurl4-openssl-dev \
2828
libedit2 \
29-
libgcc-9-dev \
30-
libpython2.7 \
29+
libgcc-11-dev \
30+
libpython3-dev \
3131
libsqlite3-0 \
32-
libstdc++-9-dev \
33-
libxml2 \
32+
libstdc++-11-dev \
33+
libxml2-dev \
3434
libz3-dev \
3535
pkg-config \
36+
python3-lldb-13 \
3637
tzdata \
3738
uuid-dev \
3839
zlib1g-dev"
3940
SWIFT_URL="https://download.swift.org/swift-6.1.3-release/ubuntu2004/swift-6.1.3-RELEASE/swift-6.1.3-RELEASE-ubuntu20.04.tar.gz"
4041
SWIFT_DIR="swift-6.1.3-RELEASE-ubuntu20_04"
4142
elif [[ "$VERSION_ID" == "24.04" ]]; then
42-
SWIFT_PACKAGES="wget \
43-
binutils \
43+
SWIFT_PACKAGES="binutils \
4444
git \
45+
unzip \
4546
gnupg2 \
4647
libc6-dev \
4748
libcurl4-openssl-dev \
@@ -58,8 +59,8 @@ elif [[ "$VERSION_ID" == "24.04" ]]; then
5859
zip \
5960
unzip \
6061
zlib1g-dev"
61-
SWIFT_URL="https://download.swift.org/swift-6.1.3-release/ubuntu2404/swift-6.1.3-RELEASE/swift-6.1.3-RELEASE-ubuntu24.04.tar.gz"
62-
SWIFT_DIR="swift-6.1.3-RELEASE-ubuntu24.04"
62+
SWIFT_URL="https://download.swift.org/swift-6.2.3-release/ubuntu2404/swift-6.2.3-RELEASE/swift-6.2.3-RELEASE-ubuntu24.04.tar.gz"
63+
SWIFT_DIR="swift-6.2.3-RELEASE-ubuntu24.04"
6364
else
6465
echo "Unsupported Ubuntu version: $VERSION_ID"
6566
exit 1

projects/grpc-swift/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
################################################################################
1616

17-
FROM gcr.io/oss-fuzz-base/base-builder-swift
17+
FROM gcr.io/oss-fuzz-base/base-builder-swift:ubuntu-24-04
1818

1919
# specific to project
2020
RUN apt-get update && apt-get install -y zlib1g-dev

projects/grpc-swift/project.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ sanitizers:
1111
- address
1212
- thread
1313
main_repo: 'https://github.com/grpc/grpc-swift'
14+
base_os_version: ubuntu-24-04

projects/swift-nio/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
################################################################################
1616

17-
FROM gcr.io/oss-fuzz-base/base-builder-swift
17+
FROM gcr.io/oss-fuzz-base/base-builder-swift:ubuntu-24-04
1818

1919
# specific swift-nio
2020
RUN git clone --depth 1 https://github.com/google/fuzzing

projects/swift-nio/project.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ sanitizers:
1212
- address
1313
- thread
1414
main_repo: 'https://github.com/apple/swift-nio.git'
15+
base_os_version: ubuntu-24-04

projects/swift-protobuf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#
1515
################################################################################
1616

17-
FROM gcr.io/oss-fuzz-base/base-builder-swift
17+
FROM gcr.io/oss-fuzz-base/base-builder-swift:ubuntu-24-04
1818

1919
RUN git clone --depth 1 --recurse-submodules --shallow-submodules https://github.com/apple/swift-protobuf.git
2020
COPY build.sh $SRC

projects/swift-protobuf/project.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ coverage_extra_args: >
1515
-ignore-filename-regex=.*\.pb\.swift
1616
-ignore-filename-regex=.*/\.build/.*
1717
main_repo: 'https://github.com/apple/swift-protobuf.git'
18+
base_os_version: ubuntu-24-04

0 commit comments

Comments
 (0)