Skip to content

Commit f2b7199

Browse files
authored
fix: re-add tokenserver/spanner scripts to the final docker (#2083)
poetry export doesn't install them, so these still need to be copied over. deployments expect the tokenserver tools in /app/tools/tokenserver the spanner scripts are not in active use yet but adding them back anyway and install cargo nextest via binaries (as building it requires recent stable rustcs) Closes STOR-489
1 parent cc07bb5 commit f2b7199

File tree

5 files changed

+23
-9
lines changed

5 files changed

+23
-9
lines changed

.circleci/config.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,11 @@ commands:
128128
install-test-deps:
129129
steps:
130130
- run:
131-
name: Install test dependencies
132-
command: cargo install --locked cargo-nextest cargo-llvm-cov
131+
name: Install cargo-nextest
132+
command: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
133+
- run:
134+
name: Install cargo-llvm-cov
135+
command: cargo install --locked cargo-llvm-cov
133136

134137
make-test-dir:
135138
steps:

.github/workflows/mysql.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,11 @@ jobs:
6969
"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
7070
> version.json
7171
72-
- name: Install test dependencies
73-
run: cargo install --locked cargo-nextest cargo-llvm-cov
72+
- name: Install cargo-nextest
73+
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
74+
75+
- name: Install cargo-llvm-cov
76+
run: cargo install --locked cargo-llvm-cov
7477

7578
- name: Run unit tests with coverage
7679
run: make test_with_coverage

.github/workflows/postgres.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ jobs:
6767
"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
6868
> version.json
6969
70-
- name: Install test dependencies
71-
run: cargo install --locked cargo-nextest cargo-llvm-cov
70+
- name: Install cargo-nextest
71+
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
72+
73+
- name: Install cargo-llvm-cov
74+
run: cargo install --locked cargo-llvm-cov
7275

7376
- name: Run unit tests with coverage
7477
run: make postgres_test_with_coverage

.github/workflows/spanner.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,11 @@ jobs:
6767
"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
6868
> version.json
6969
70-
- name: Install test dependencies
71-
run: cargo install --locked cargo-nextest cargo-llvm-cov
70+
- name: Install cargo-nextest
71+
run: curl -LsSf https://get.nexte.st/latest/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
72+
73+
- name: Install cargo-llvm-cov
74+
run: cargo install --locked cargo-llvm-cov
7275

7376
- name: Build workspace (spanner feature)
7477
run: |

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ RUN poetry export --no-interaction --without dev --output requirements.txt --wit
8181
fi && \
8282
cd /app
8383

84-
# Build wheels for all Python dependencies so
84+
# Build wheels for all Python dependencies so
8585
RUN mkdir -p /app/wheels && \
8686
pip3 wheel --no-cache-dir -r /app/requirements.txt -w /app/wheels && \
8787
pip3 wheel --no-cache-dir -r /app/tools/integration_tests/requirements.txt -w /app/wheels && \
@@ -154,7 +154,9 @@ RUN pip3 install --break-system-packages --no-cache-dir --no-index --find-links=
154154

155155
COPY --from=builder /app/bin /app/bin
156156
COPY --from=builder /app/version.json /app
157+
COPY --from=builder /app/tools/spanner /app/tools/spanner
157158
COPY --from=builder /app/tools/integration_tests /app/tools/integration_tests
159+
COPY --from=builder /app/tools/tokenserver /app/tools/tokenserver
158160
COPY --from=builder --chmod=0755 /app/scripts/prepare-spanner.sh /app/scripts/prepare-spanner.sh
159161
COPY --from=builder --chmod=0755 /app/scripts/start_mock_fxa_server.sh /app/scripts/start_mock_fxa_server.sh
160162
COPY --from=builder /app/syncstorage-spanner/src/schema.ddl /app/schema.ddl

0 commit comments

Comments
 (0)