Skip to content

Commit 7e0ce0c

Browse files
committed
[SPARK-54080] Use Swift 6.2 as the minimum supported version
### What changes were proposed in this pull request? This PR aims to use Swift 6.2 as the minimum supported version. ### Why are the changes needed? Swift 6.2 is more stable and has more features. ### Does this PR introduce _any_ user-facing change? Yes, but this is still 0.x version and this helps users to be up-to-date with the Swift language. ### How was this patch tested? Pass the CIs. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #257 from dongjoon-hyun/SPARK-54080. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: Dongjoon Hyun <[email protected]>
1 parent 2fdba1d commit 7e0ce0c

File tree

14 files changed

+24
-64
lines changed

14 files changed

+24
-64
lines changed

.github/workflows/build_and_test.yml

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -40,28 +40,6 @@ jobs:
4040
with:
4141
config: .github/.licenserc.yaml
4242

43-
build-macos-15-swift60:
44-
runs-on: macos-15
45-
timeout-minutes: 20
46-
steps:
47-
- uses: actions/checkout@v5
48-
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
49-
with:
50-
swift-version: "6.0"
51-
- name: Build
52-
run: swift build -c release
53-
54-
build-macos-15-swift61:
55-
runs-on: macos-15
56-
timeout-minutes: 20
57-
steps:
58-
- uses: actions/checkout@v5
59-
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
60-
with:
61-
swift-version: "6.1"
62-
- name: Build
63-
run: swift build -c release
64-
6543
build-macos-26-swift62:
6644
runs-on: macos-26
6745
timeout-minutes: 20
@@ -129,15 +107,12 @@ jobs:
129107
docker run --add-host=host.docker.internal:host-gateway -v $PWD:/spark -w /spark -e SPARK_REMOTE='sc://host.docker.internal:15003' swift:6.2 swift test --no-parallel -c release
130108
131109
integration-test-mac-spark41:
132-
runs-on: macos-15
110+
runs-on: macos-26
133111
timeout-minutes: 20
134112
env:
135113
SPARK_LOCAL_IP: localhost
136114
steps:
137115
- uses: actions/checkout@v5
138-
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
139-
with:
140-
swift-version: "6.1"
141116
- name: Build
142117
run: swift test --filter NOTHING -c release
143118
- name: Test
@@ -151,15 +126,12 @@ jobs:
151126
swift test --no-parallel -c release
152127
153128
integration-test-mac:
154-
runs-on: macos-15
129+
runs-on: macos-26
155130
timeout-minutes: 20
156131
env:
157132
SPARK_LOCAL_IP: localhost
158133
steps:
159134
- uses: actions/checkout@v5
160-
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
161-
with:
162-
swift-version: "6.1"
163135
- name: Build
164136
run: swift test --filter NOTHING -c release
165137
- name: Test
@@ -173,16 +145,13 @@ jobs:
173145
swift test --no-parallel -c release
174146
175147
integration-test-token:
176-
runs-on: macos-15
148+
runs-on: macos-26
177149
timeout-minutes: 20
178150
env:
179151
SPARK_LOCAL_IP: localhost
180152
SPARK_CONNECT_AUTHENTICATE_TOKEN: ${{ github.run_id }}-${{ github.run_attempt }}
181153
steps:
182154
- uses: actions/checkout@v5
183-
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
184-
with:
185-
swift-version: "6.1"
186155
- name: Build
187156
run: swift test --filter NOTHING -c release
188157
- name: Test
@@ -196,15 +165,12 @@ jobs:
196165
swift test --no-parallel -c release
197166
198167
integration-test-mac-spark3:
199-
runs-on: macos-15
168+
runs-on: macos-26
200169
timeout-minutes: 20
201170
env:
202171
SPARK_LOCAL_IP: localhost
203172
steps:
204173
- uses: actions/checkout@v5
205-
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
206-
with:
207-
swift-version: "6.1"
208174
- name: Install Java
209175
uses: actions/setup-java@v4
210176
with:
@@ -223,16 +189,13 @@ jobs:
223189
swift test --no-parallel -c release
224190
225191
integration-test-mac-spark3-iceberg:
226-
runs-on: macos-15
192+
runs-on: macos-26
227193
timeout-minutes: 20
228194
env:
229195
SPARK_LOCAL_IP: localhost
230196
SPARK_ICEBERG_TEST_ENABLED: "true"
231197
steps:
232198
- uses: actions/checkout@v5
233-
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
234-
with:
235-
swift-version: "6.1"
236199
- name: Install Java
237200
uses: actions/setup-java@v4
238201
with:
@@ -252,16 +215,13 @@ jobs:
252215
swift test --filter IcebergTest -c release
253216
254217
integration-test-mac-spark4-iceberg:
255-
runs-on: macos-15
218+
runs-on: macos-26
256219
timeout-minutes: 20
257220
env:
258221
SPARK_LOCAL_IP: localhost
259222
SPARK_ICEBERG_TEST_ENABLED: "true"
260223
steps:
261224
- uses: actions/checkout@v5
262-
- uses: swift-actions/setup-swift@d10500c1ac8822132eebbd74c48c3372c71d7ff5
263-
with:
264-
swift-version: "6.1"
265225
- name: Install Java
266226
uses: actions/setup-java@v4
267227
with:

Examples/app/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
FROM swift:6.1 AS builder
17+
FROM swift:6.2 AS builder
1818

1919
WORKDIR /app
2020

2121
COPY . .
2222

2323
RUN swift build -c release
2424

25-
FROM swift:6.1-slim
25+
FROM swift:6.2-slim
2626

2727
ARG SPARK_UID=185
2828

Examples/app/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 6.2
22
//
33
// Licensed to the Apache Software Foundation (ASF) under one
44
// or more contributor license agreements. See the NOTICE file

Examples/pi/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
FROM swift:6.1 AS builder
17+
FROM swift:6.2 AS builder
1818

1919
WORKDIR /app
2020

2121
COPY . .
2222

2323
RUN swift build -c release
2424

25-
FROM swift:6.1-slim
25+
FROM swift:6.2-slim
2626

2727
ARG SPARK_UID=185
2828

Examples/pi/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 6.2
22
//
33
// Licensed to the Apache Software Foundation (ASF) under one
44
// or more contributor license agreements. See the NOTICE file

Examples/spark-sql/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
FROM swift:6.1 AS builder
17+
FROM swift:6.2 AS builder
1818

1919
WORKDIR /app
2020

2121
COPY . .
2222

2323
RUN swift build -c release
2424

25-
FROM swift:6.1-slim
25+
FROM swift:6.2-slim
2626

2727
ARG SPARK_UID=185
2828

Examples/spark-sql/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 6.2
22
//
33
// Licensed to the Apache Software Foundation (ASF) under one
44
// or more contributor license agreements. See the NOTICE file

Examples/stream/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
FROM swift:6.1 AS builder
17+
FROM swift:6.2 AS builder
1818

1919
WORKDIR /app
2020

2121
COPY . .
2222

2323
RUN swift build -c release
2424

25-
FROM swift:6.1-slim
25+
FROM swift:6.2-slim
2626

2727
ARG SPARK_UID=185
2828

Examples/stream/Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// swift-tools-version: 6.0
1+
// swift-tools-version: 6.2
22
//
33
// Licensed to the Apache Software Foundation (ASF) under one
44
// or more contributor license agreements. See the NOTICE file

Examples/web/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
# See the License for the specific language governing permissions and
1515
# limitations under the License.
1616
#
17-
FROM swift:6.1 AS builder
17+
FROM swift:6.2 AS builder
1818

1919
WORKDIR /app
2020

2121
COPY . .
2222

2323
RUN swift build -c release
2424

25-
FROM swift:6.1-slim
25+
FROM swift:6.2-slim
2626

2727
ARG SPARK_UID=185
2828

0 commit comments

Comments
 (0)