From 16f9ba57ae15417f34657b2ac0a8bcf496c5c4bd Mon Sep 17 00:00:00 2001 From: healthy-pod Date: Tue, 23 May 2023 13:37:15 -0700 Subject: [PATCH] =?UTF-8?q?ci:=C2=A0ensure=C2=A0logictests=C2=A0generated?= =?UTF-8?q?=C2=A0code=C2=A0is=C2=A0up=C2=A0to=C2=A0date?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This code change ensures that generated BUILD files for logictests are always up to date. Epic: none Release note: None --- build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh b/build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh index 05a06b38fb77..f15a745f5c25 100755 --- a/build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh +++ b/build/teamcity/cockroach/ci/tests/check_generated_code_impl.sh @@ -39,5 +39,8 @@ check_workspace_clean 'dev_generate' "Run \`./dev generate\` to automatically re # docs. bazel run @go_sdk//:bin/go --ui_event_filters=-DEBUG,-info,-stdout,-stderr --noshow_progress mod tidy check_workspace_clean 'go_mod_tidy' "Run \`go mod tidy\` to automatically regenerate these." +# Run `generate-logictest` and ensure nothing changes. +bazel run //pkg/cmd/generate-logictest -- -out-dir="$PWD" +check_workspace_clean 'generate_logictest' "Run \`./dev gen testlogic\` to automatically regenerate these." end_check_generated_code_tests