Draft
ci: reduce log verbosity to surface real test failures#575
Conversation
Agent-Logs-Url: https://github.com/pact-foundation/pact-go/sessions/239364e1-edbd-4d31-a6ed-653a85eb22c3 Co-authored-by: mefellows <53900+mefellows@users.noreply.github.com>
Agent-Logs-Url: https://github.com/pact-foundation/pact-go/sessions/239364e1-edbd-4d31-a6ed-653a85eb22c3 Co-authored-by: mefellows <53900+mefellows@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update CI logs to use error-level logging
ci: reduce log verbosity to surface real test failures
May 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI logs were flooded with plugin gRPC shutdown and h2
GoAwaydebug noise, making it hard to identify the actual failing test in PR runs.Change
.github/workflows/test.yml: dropLOG_LEVELfromdebug→errorOriginal prompt
Update pull request #573 in repository
pact-foundation/pact-goto reduce noisy CI logs so the real failing test is easier to identify.Context:
.github/workflows/test.yml.LOG_LEVEL: debugin the top-levelenvblock.LOG_LEVEL: ERRORinstead.Acceptance criteria:
.github/workflows/test.ymlis updated so the workflow runs with error-level logging instead of debug-level logging.The following is the prior conversation context from the user's chat exploration (may be truncated):
User: Please find a solution for this failing job. Use the logs, job definition, and any referenced files where the failure occurred. Keep your response focused on the solution and include code suggestions when appropriate.
Assistant: The failure is in the
pacttarget, not in the protobuf-message test itself.Root cause
The log shows:
--- PASS: TestPluginMessageConsumerFAILmake: *** [Makefile:124: pact] Error 1That points to the command at
Makefile:124:Immediately after that, the
pacttarget runsmake publishand then provider tests atMakefile:125andMakefile:126:The repeated
GoAway(... NO_ERROR ...)andfailed serving connection: connection errorlines are debug noise from the protobuf plugin shutdown, because the workflow setsLOG_LEVEL: debugin.github/workflows/test.yml:25. They are not the actual test failure.Why this job is failing
On Ubuntu, the workflow runs full
makefrom.github/workflows/test.yml:47-49:And the default target is
cifromMakefile:4, which includespactatMakefile:14:So the likely failure is one of:
make publishfailing because branch/tag metadata is bad for PRs,examples/...failing even thoughprotobuf-messagepassed.Best fix
Use the same PR-safe behavior in CI that already exists in
pact_local: skip publish during PR validation.Current
pacttarget:Suggested replacement:
Workflow-side improvement
For pull requests, explicitly skip publish in the Ubuntu job:
at
.github/workflows/test.yml:47-49.If you wan...
This pull request was created from Copilot chat.