ci(docker): remove build-time nix check and rely on runtime env test
Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
Some checks failed
Mark stable commit / test-unit (push) Has been cancelled
Mark stable commit / test-integration (push) Has been cancelled
Mark stable commit / test-env-virtual (push) Has been cancelled
Mark stable commit / test-env-nix (push) Has been cancelled
Mark stable commit / test-e2e (push) Has been cancelled
Mark stable commit / test-virgin-user (push) Has been cancelled
Mark stable commit / test-virgin-root (push) Has been cancelled
Mark stable commit / mark-stable (push) Has been cancelled
Why: The Dockerfile previously validated `nix --version` during image build, which is environment-sensitive and behaves differently in GitHub Actions vs local/act builds due to PATH and non-login shell differences. The actual contract is runtime availability of Nix, not build-step PATH resolution. This is now reliably enforced by the dedicated `test-env-nix` container test, which validates nix presence and flake execution in the real execution environment. This removes flaky CI behavior while keeping stronger, more accurate coverage of the intended guarantee. https://chatgpt.com/share/693bfbc7-63d8-800f-9ceb-728c7a58e963
This commit is contained in:
@@ -52,11 +52,6 @@ RUN set -e; \
|
|||||||
make install; \
|
make install; \
|
||||||
rm -rf /build
|
rm -rf /build
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
# Show Nix Version
|
|
||||||
# ------------------------------------------------------------
|
|
||||||
RUN command -v nix && nix --version
|
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Runtime working directory and dev entrypoint
|
# Runtime working directory and dev entrypoint
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user