Skip to content

Commit 277e5e1

Browse files
Merge pull request #3833 from SwiftPackageIndex/update-base-image
Update to new base image
2 parents bb55283 + 607665c commit 277e5e1

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM registry.gitlab.com/finestructure/spi-base:2.0.0
1+
FROM registry.gitlab.com/finestructure/spi-base:2.1.0
22

33
# Install SPM build dependencies
44
RUN apt-get update && apt-get install -y curl git make unzip \

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
name: Test
3030
runs-on: ubuntu-latest
3131
container:
32-
image: registry.gitlab.com/finestructure/spi-base:2.0.0
32+
image: registry.gitlab.com/finestructure/spi-base:2.1.0
3333
options: --privileged
3434
steps:
3535
- name: GH Runner bug workaround
@@ -160,7 +160,7 @@ jobs:
160160
name: Release build
161161
runs-on: ubuntu-latest
162162
container:
163-
image: registry.gitlab.com/finestructure/spi-base:2.0.0
163+
image: registry.gitlab.com/finestructure/spi-base:2.1.0
164164
options: --privileged
165165
steps:
166166
- name: GH Runner bug workaround

.github/workflows/query-performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
runs-on: ubuntu-latest
2929
continue-on-error: true
3030
container:
31-
image: registry.gitlab.com/finestructure/spi-base:2.0.0
31+
image: registry.gitlab.com/finestructure/spi-base:2.1.0
3232
steps:
3333
- name: Checkout code
3434
uses: actions/checkout@v4

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# ================================
1919
# Build image
2020
# ================================
21-
FROM registry.gitlab.com/finestructure/spi-base:2.0.0 as build
21+
FROM registry.gitlab.com/finestructure/spi-base:2.1.0 as build
2222

2323
# Set up a build area
2424
WORKDIR /build
@@ -62,7 +62,7 @@ RUN [ -d /build/Resources ] && { mv /build/Resources ./Resources && chmod -R a-w
6262
# ================================
6363
# Run image
6464
# ================================
65-
FROM registry.gitlab.com/finestructure/spi-base:2.0.0
65+
FROM registry.gitlab.com/finestructure/spi-base:2.1.0
6666

6767
# NB sas 2022-09-23: We're not using a dedicated `vapor` user to run the executable, because it
6868
# makes managing the data in the checkouts volume difficult. See

LOCAL_DEVELOPMENT_SETUP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ The trickiest part of this is to ensure the test or app container can connect to
238238
So, in order to run the tests in a Linux container run:
239239

240240
```
241-
docker run --rm -v "$PWD":/host -w /host --add-host=host.docker.internal:host-gateway registry.gitlab.com/finestructure/spi-base:2.0.0 swift test
241+
docker run --rm -v "$PWD":/host -w /host --add-host=host.docker.internal:host-gateway registry.gitlab.com/finestructure/spi-base:2.1.0 swift test
242242
```
243243

244244
Make sure you use the most recent `spi-base` image. You can find the latest image name in the `test-docker` target, which also provides a convenient way to run all all tests in a docker container.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ test-docker:
8989
@# run tests inside a docker container
9090
docker run --rm -v "$(PWD)":/host -w /host \
9191
--add-host=host.docker.internal:host-gateway \
92-
registry.gitlab.com/finestructure/spi-base:2.0.0 \
92+
registry.gitlab.com/finestructure/spi-base:2.1.0 \
9393
make test
9494

9595
test-e2e: db-reset reconcile ingest analyze

Tests/AppTests/QueryPerformanceTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ struct QueryPerformanceTests {
180180
JOIN versions v ON v.package_id = p.id
181181
WHERE v.reference ->> 'branch' = r.default_branch
182182
""")
183-
try await assertQueryPerformance(query, expectedCost: 160_000, variation: 5000)
183+
try await assertQueryPerformance(query, expectedCost: 167_000, variation: 5000)
184184
}
185185
}
186186

0 commit comments

Comments
 (0)