Revert "gtest IT: print logs to stderr unconditionally"#469
Conversation
This reverts commits: - 6b9b545, - 2db8a26, - 7ffd093. Rationale: CI got unstable because two tests that issue many requests (~4000) now timeout every time, because stderr logging (unbuffered!) of each request is too slow. I'm unable to think of a better way to capture logs in CI, so I'm reverting the change for now and will look into a more robust solution later.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThis pull request makes two minor adjustments to the test logger implementation ( 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 Infer (1.2.0)tests/src/integration/logger.cppIn file included from tests/src/integration/logger.cpp:17: ... [truncated 1189 characters] ... ll/lib/clang/18/include" Comment |
There was a problem hiding this comment.
Pull request overview
This PR reverts prior changes that printed integration-test driver logs to stderr unconditionally, restoring the previous behavior of writing logs only to the per-test log file. This is intended to address CI instability/timeouts caused by unbuffered stderr output during very high request-volume tests.
Changes:
- Remove unconditional
stderrlogging (including TTY color detection and UTC timestamp formatting) from the integration test logger callback. - Remove now-unneeded platform-specific macros/includes used solely for
stderrTTY detection and UTC formatting.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This reverts commits that introduced unconditional logging to stderr in gtest integration tests:
Rationale:
CI got unstable because two tests that issue many requests (~4000) now timeout every time, because stderr logging (unbuffered!) of each request is too slow.
I'm unable to think of a better way to capture logs in CI, so I'm reverting the change for now and will hopefully look into a more robust solution later.
Pre-review checklist
[ ] I have implemented Rust unit tests for the features/changes introduced.[ ] I have enabled appropriate tests inMakefilein{SCYLLA,CASSANDRA}_(NO_VALGRIND_)TEST_FILTER.[ ] I added appropriateFixes:annotations to PR description.