Skip to content

Optimize dockerfile to prevent timeouts #300

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 21, 2025
Merged

Conversation

TravisStark
Copy link
Contributor

@TravisStark TravisStark commented Apr 9, 2025

Description of changes:
Adding a retry to go mod download in the dockerfile.

This should help prevent flakiness in the MakeContainerImage step of the E2E tests

Increases timeout in test: TestAlreadyAutoAnnotatedResourceShouldNotRestart

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

@TravisStark TravisStark force-pushed the tjstark/e2e-dockerfile-fix branch 2 times, most recently from 45224d1 to 069f198 Compare April 9, 2025 14:40
Copy link
Contributor

Choose a reason for hiding this comment

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

could you link the e2e test here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

E2E test run that passed on MakeContainerImage step
https://github.com/aws/amazon-cloudwatch-agent/actions/runs/14358637935

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another successful E2E test run

musa-asad
musa-asad previously approved these changes Apr 10, 2025
@TravisStark TravisStark requested a review from Paramadon April 10, 2025 14:05
@TravisStark TravisStark changed the title Add retry to go mod download in dockerfile Optimize dockerfile to prevent timeouts Apr 11, 2025
@TravisStark TravisStark force-pushed the tjstark/e2e-dockerfile-fix branch from 7b03dd7 to f608fa2 Compare April 11, 2025 12:29
@TravisStark TravisStark requested a review from musa-asad April 14, 2025 14:41
@Paramadon Paramadon merged commit 59ed1d1 into main Apr 21, 2025
16 of 19 checks passed
@Paramadon Paramadon deleted the tjstark/e2e-dockerfile-fix branch April 21, 2025 16:12
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.

4 participants