Skip to content

feat: implement syncBuffer for concurrent log writing in tests - #1751

Merged
ramya18101 merged 1 commit into
mainfrom
DXCDT-2749-fix-tail-logs-test-data-race
Nov 4, 2026
Merged

ramya18101 merged 1 commit into
mainfrom
DXCDT-2749-fix-tail-logs-test-data-race

Conversation

@ramya18101

@ramya18101 ramya18101 commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

🔧 Changes

Fixes a data race in the it keeps the log ID cursor when polling with a filter subtest of TestTailLogsCommand (added in #1723), which made go test -race fail intermittently in CI.

Replicated:

📚 References

🔬 Testing

go test -race ./internal/cli/ -run TestTailLogs -count=30

All 30 runs passed with the race detector enabled.

📝 Checklist

  • All new/changed/fixed functionality is covered by tests (or N/A)
  • I have added documentation for all new/changed functionality (or N/A)

@ramya18101
ramya18101 marked this pull request as ready for review November 4, 2026 05:27
@ramya18101
ramya18101 requested a review from a team as a code owner November 4, 2026 05:27
@ramya18101
ramya18101 merged commit c51a2b5 into main Nov 4, 2026
10 checks passed
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.

3 participants