Skip to content

Conversation

@Paramadon
Copy link
Contributor

Description of the issue

Fixing flaky windows build failures. Currently the windows build is flaky and is causing merging delays as tests needs to be rerun after failure repeatedly until they work - here's an example of a pr with 4 windows test failures where each run takes 20-25+ min... - https://github.com/aws/amazon-cloudwatch-agent/actions/runs/18954707387/job/54203959187?pr=1930.

It seems like the issue is that we are setting up watcher when follow (follow true just means basically like tail -f vs false is like a cat) is false which should not happen and the watch is deadlocking.

Description of changes

Make sure to only set up watcher if tail.Follow is true.

License

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Tests

Describe what tests you have done.

@Paramadon Paramadon requested a review from a team as a code owner October 31, 2025 16:22
@Paramadon Paramadon added the ready for testing Indicates this PR is ready for integration tests to run label Oct 31, 2025
@Paramadon Paramadon changed the title Fixing windows build deadlock Fixing windows build flakiness Oct 31, 2025
tail.Killf("Error watching for changes on %s: %s", tail.Filename, err)
return
// Only set up file watchers if we're following the file
if tail.Follow {
Copy link
Contributor

Choose a reason for hiding this comment

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

@Paramadon Paramadon force-pushed the paramadon/windowsBuildFix branch from 944d6c4 to 684921b Compare November 3, 2025 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for testing Indicates this PR is ready for integration tests to run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants