Repository navigation
Fix flaky multi-part AOF manifest tests - #4491
Conversation
The tests counted cumulative error messages in a shared stdout file. Restrict the matches to the current server PID so port retry log truncation does not affect the expected count. Fixes valkey-io#4484 Fixes valkey-io#4485 Fixes valkey-io#4486 Signed-off-by: quanyeyang <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review. 📝 WalkthroughWalkthroughThe integration tests clear server stdout before selected invalid AOF manifest cases. They also match invalid-format messages without requiring a PID prefix and retain a single expected error count. ChangesAOF manifest test expectations
Estimated code review effort: 1 (Trivial) | ~3 minutes Merge Risk: ⚪ Minimal · up to This localized test-only change prevents stale log output from affecting multi-part AOF manifest assertions, with no production behavior impact; no actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Signed-off-by: quanyeyang <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## unstable #4491 +/- ##
============================================
+ Coverage 78.76% 78.82% +0.05%
============================================
Files 170 170
Lines 89805 89805
============================================
+ Hits 70739 70786 +47
+ Misses 19066 19019 -47 🚀 New features to boost your workflow:
|
zuiderkwast
left a comment
There was a problem hiding this comment.
I guess it's OK to truncate the log file if each server is independent. If we ever want to debug and keep the log file (as with runtest --dont-clean) we could instead count the log lines before and after and compare the difference, or count the log lines only after a certain line - the length of the log file before starting the server. This is done in some other test suites using the helper functions count_log_lines {srv_idx} (executes wc -l) count_message_lines {file pattern}, verify_log_message {srv_idx pattern from_line}, etc.
But I think in this case, truncating is fine. 👍 Thanks.
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484 Fixes #4485 Fixes #4486 The tests counted cumulative error messages in a shared stdout file. Clear the shared server stdout before each affected test so log assertions only count messages produced by the current server instance. This avoids cumulative-count flakes and works with all supported log formats. --------- Signed-off-by: quanyeyang <[email protected]> Backport-Source-PR: 4491
Fixes #4484
Fixes #4485
Fixes #4486
The tests counted cumulative error messages in a shared stdout file.
Clear the shared server stdout before each affected test so log assertions
only count messages produced by the current server instance. This avoids
cumulative-count flakes and works with all supported log formats.