From d08d390294c9a26dbadab45c629696fc9c596a3a Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Wed, 29 Apr 2026 19:35:33 +0100 Subject: [PATCH 1/3] Make Complement CI output less unwieldy --- .github/workflows/complement_tests.yml | 37 +++++++++++++++++++++++--- 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/.github/workflows/complement_tests.yml b/.github/workflows/complement_tests.yml index 41b7be61925..6ed467799df 100644 --- a/.github/workflows/complement_tests.yml +++ b/.github/workflows/complement_tests.yml @@ -98,6 +98,7 @@ jobs: # real-time. run: | set -o pipefail + COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh --in-repo -p 1 -json -run 'TestSynapseVersion/Synapse_version_matches_current_git_checkout' 2>&1 | tee /tmp/gotest-sanity-check-complement.log shell: bash env: @@ -122,12 +123,26 @@ jobs: # -json: Output JSON format so that gotestfmt can parse it. # # tee /tmp/gotest-complement.log: We tee the output to a file so that we can re-process it - # later on for better formatting with gotestfmt. But we still want the command + # later on for better formatting with gotestfmt. + # But we still want the ability for the command # to output to the terminal as it runs so we can see what's happening in # real-time. + # When not running in pipeline debug mode, we only show the last 50 lines + # of the JSON output from the build log because it is not human-readable, + # the extreme volume makes it very unwieldy to access in the web UI + # and the resultant log download extremely large. run: | set -o pipefail - COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -p 1 -json 2>&1 | tee /tmp/gotest-complement.log + + # To see the full build log, start a re-run with + # the debug mode enabled in the GitHub UI. + if [ "$RUNNER_DEBUG" = "1" ]; then + debug_pipe="cat" + else + debug_pipe="tail -n 50" + fi + + COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -p 1 -json 2>&1 | tee /tmp/gotest-complement.log | $debug_pipe shell: bash env: POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }} @@ -151,12 +166,26 @@ jobs: # are underpowered and don't like running tons of Synapse instances at once. # -json: Output JSON format so that gotestfmt can parse it. # - # tee /tmp/gotest-in-repo-complement.log: We tee the output to a file so that we can re-process it - # later on for better formatting with gotestfmt. But we still want the command + # tee /tmp/gotest-complement.log: We tee the output to a file so that we can re-process it + # later on for better formatting with gotestfmt. + # But we still want the ability for the command # to output to the terminal as it runs so we can see what's happening in # real-time. + # When not running in pipeline debug mode, we only show the last 50 lines + # of the JSON output from the build log because it is not human-readable, + # the extreme volume makes it very unwieldy to access in the web UI + # and the resultant log download extremely large. run: | set -o pipefail + + # To see the full build log, start a re-run with + # the debug mode enabled in the GitHub UI. + if [ "$RUNNER_DEBUG" = "1" ]; then + debug_pipe="cat" + else + debug_pipe="tail -n 50" + fi + COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh --in-repo -p 1 -json 2>&1 | tee /tmp/gotest-in-repo-complement.log shell: bash env: From 16ed294d0bdec170a3f213e3b81aff93359f8e49 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Wed, 29 Apr 2026 19:39:22 +0100 Subject: [PATCH 2/3] Newsfile Signed-off-by: Olivier 'reivilibre --- changelog.d/19745.misc | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog.d/19745.misc diff --git a/changelog.d/19745.misc b/changelog.d/19745.misc new file mode 100644 index 00000000000..a50c13d1653 --- /dev/null +++ b/changelog.d/19745.misc @@ -0,0 +1 @@ +Suppress raw JSON logs in Complement CI when debug disabled. \ No newline at end of file From edf5953d227d928492952f7b4d0bf2e902a15e81 Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Wed, 29 Apr 2026 19:49:40 +0100 Subject: [PATCH 3/3] Add complement_tests.yml to Complement trigger --- .github/workflows/tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2d548a38832..5a7f3942ca3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -62,6 +62,7 @@ jobs: - '.ci/**' - 'scripts-dev/complement.sh' - '.github/workflows/tests.yml' + - '.github/workflows/complement_tests.yml' linting: - 'synapse/**'