Skip to content

Suppress raw JSON logs in Complement CI when debug disabled.#19745

Open
reivilibre wants to merge 3 commits into
developfrom
rei/cpl_less_unwieldy
Open

Suppress raw JSON logs in Complement CI when debug disabled.#19745
reivilibre wants to merge 3 commits into
developfrom
rei/cpl_less_unwieldy

Conversation

@reivilibre
Copy link
Copy Markdown
Contributor

I was trying to debug some flakes and the webUI to get the logs was just so sluggish.

I tried to download the log file and the download got interrupted, presumably because of the size.
Multiple attempts did not help and it was not resumable.

I don't like the ugly JSON logs (they don't seem useful to me); I'm somewhat sympathetic with it being nice
to see that it's doing something but from memory this is a vanishingly rare requirement for me.

If you need to see it, the best proposal I have is for you to re-run the workflow whilst ticking the 'debug mode' box,
which is what this PR suggests as the mechanism to get the live-streamed JSON log dump.

Open to alternative suggestions.

@reivilibre reivilibre marked this pull request as ready for review April 29, 2026 19:23
@reivilibre reivilibre requested a review from a team as a code owner April 29, 2026 19:23
Copy link
Copy Markdown
Contributor

@MadLittleMods MadLittleMods left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(didn't review change, only comment)

@@ -122,12 +123,26 @@ jobs:
# -json: Output JSON format so that gotestfmt can parse it.
#
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My vote would be to leave it as-is.

Although, I don't run into problems when viewing the logs now that the formatted view only shows failures.

And re-running with debug logging is another step when I want to see the output which I've wanted to multiple times recently:

On top of it generally being useful of the CI job making progress.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, happy to leave it in if this is something you rely on, by all means this PR was just a convenient place to put that question.

Would be curious if there are other ideas to make this less unbearable.

Suppose we could upload the formatted fail-only logs as a downloadable artifact? Feels like 'a workaround' but one I'm happy to take. Thoughts?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was trying to debug some flakes and the webUI to get the logs was just so sluggish.

Viewing this page is laggy? (with only the Formatted Complement test logs (only failing are shown) section expanded) https://github.com/element-hq/synapse/actions/runs/25128863747/job/73673674666

You can expand the ❌ section to see the logs for the test.

GitHub's fake scroll doesn't help with being able to copy-paste everything easily but I don't experience any problems outside of that. The failed section is 19k lines by itself (55k lines total for the entire raw log of the CI job) which is a lot to manage regardless of what we do.

Perhaps some GitHub extension you're using is making it worse than usual?

I tried to download the log file and the download got interrupted, presumably because of the size.
Multiple attempts did not help and it was not resumable.

The raw logs also download fine for me. It's only 16.5MB. You can see that I also did that when figuring out why gotestfmt was failing to archive the logs

upload the formatted fail-only logs as a downloadable artifact

Additionally having GitHub workflow artifacts of whatever logs sounds fine to me.

Comment on lines +137 to +138
# To see the full build log, start a re-run with
# the debug mode enabled in the GitHub UI.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To make this more clear, to accomplish this, when viewing a CI job, Re-run all jobs -> Scroll down to Enable debug logging and check it -> Re-run jobs

@MadLittleMods MadLittleMods requested a review from a team April 29, 2026 19:34
@MadLittleMods MadLittleMods removed request for a team and MadLittleMods May 7, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants