fix(ci): include acceptance scripts in backend checks
Development CI / check-and-build (push) Successful in 2m38s
GitHub Git mirror / mirror (push) Successful in 6s
Development CI / deploy-development (push) Failing after 7s

Supply repository scripts as a named build context for the backend check stage so containerized regression tests can import the same acceptance helpers as local tests. Keep operator scripts out of the runtime image.
This commit is contained in:
eezd committed 2026-11-04 12:13:08 +08:00
1 parent 4929a32a0a
commit 201f22596f
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ COPY . .
RUN uv sync --locked --no-dev RUN uv sync --locked --no-dev
FROM base AS check FROM base AS check
COPY --from=project-scripts . /scripts/
RUN uv sync --locked && uv run pytest && uvx ruff==0.14.14 check --select F,E9,B src tests RUN uv sync --locked && uv run pytest && uvx ruff==0.14.14 check --select F,E9,B src tests
FROM base AS browser-download FROM base AS browser-download
+2 -1
View File
@@ -216,7 +216,8 @@ def check():
save(ROOT / 'build.json', build) save(ROOT / 'build.json', build)
for part in IMAGES: for part in IMAGES:
print('Checking ' + part, flush=True) print('Checking ' + part, flush=True)
run('docker', 'build', '--provenance=false', '--platform', 'linux/amd64', '--target', 'check', contexts = ['--build-context', f'project-scripts={ROOT / "scripts"}'] if part == 'backend' else []
run('docker', 'build', *contexts, '--provenance=false', '--platform', 'linux/amd64', '--target', 'check',
'-f', ROOT / f'deploy/Dockerfile.{part}', ROOT / part) '-f', ROOT / f'deploy/Dockerfile.{part}', ROOT / part)
reused = existing_image(part, build) reused = existing_image(part, build)
local = reused or 'alphapulse-ci:' + label + '-' + part local = reused or 'alphapulse-ci:' + label + '-' + part