From 71774a76bbe43420e66b07a129dd7e433fd4c479 Mon Sep 17 00:00:00 2001 From: Cory Francis Myers Date: Wed, 27 Sep 2023 11:42:40 -0700 Subject: [PATCH] [WIP] ci(lint): verify machine objects Adapted from freedomofpress/securedrop-client#6fcd4ddc4ac6aaf034aa841bbd5651c8ac703737. Here we do treat "make verify-mo" as a linter, to avoid running it (over n languages) n times in each of n "translation-tests" jobs. --- .circleci/config.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 5707f8ade97..607bc62a400 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -94,6 +94,13 @@ jobs: DOCKER_BUILD_ARGUMENTS="--cache-from securedrop-test-focal-py3:${fromtag:-latest}" securedrop/bin/dev-shell \ bash -c "/opt/venvs/securedrop-app-code/bin/pip3 install --require-hashes -r requirements/python3/develop-requirements.txt && make -C .. lint" + - run: + name: Check that translation machine objects are reproducible + command: | + fromtag=$(docker images |grep securedrop-test-focal-py3 |head -n1 |awk '{print $2}') + DOCKER_BUILD_ARGUMENTS="--cache-from securedrop-test-focal-py3:${fromtag:-latest}" securedrop/bin/dev-shell \ + bash -c "/opt/venvs/securedrop-app-code/bin/pip3 install --require-hashes -r requirements/python3/develop-requirements.txt && make -C .. verify-mo" + rust: # Keep version in sync with rust-toolchain.toml docker: