Skip to content
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

Run Github action Linux tests on ubuntu-22.04 #4479

Merged
merged 1 commit into from
Jan 24, 2025

Conversation

danehlim
Copy link
Contributor

@danehlim danehlim commented Jan 24, 2025

Summary

Explicitly run Linux unit tests Github action using ubuntu-22.04 instead of ubuntu-latest (which recently was updated to point to ubuntu-24.04 instead of ubuntu-22.04).

Currently, some ecs-init unit tests make an assumption on the expected total number of Agent host config binds. However, when running these tests on ubuntu-24.04 a different number of Agent host config binds end up occurring since some Agent host config binds are binded dynamically depending on host configuration. This results in Linux unit tests Github action workflow failing on new pull requests opened to amazon-ecs-agent repository, which blocks merging of new functionality.

This pull request is to go back to using ubuntu-22.04 (which has an LTS end-of-life date of Apr 2027; ref) to run Linux unit tests. This aligns with what was being done up until the point ubuntu-latest was recently updated to point to ubuntu-24.04. This is so that merging new pull requests is unblocked. Separately, ECS Agent team will re-visit its test implementation for ecs-init unit tests which make assumptions on expected total number of Agent host config binds and see if improvements can be made for those tests to be more resilient to dependency changes which ECS Agent team does not control.

Implementation details

See "Summary" section above.

Testing

Automated pull request tests.

New tests cover the changes: N/A

Description for the changelog

Run Github action Linux tests on ubuntu-22.04

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

No

Does this PR include the addition of new environment variables in the README?

No

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@danehlim danehlim marked this pull request as ready for review January 24, 2025 21:47
@danehlim danehlim requested a review from a team as a code owner January 24, 2025 21:47
@danehlim danehlim merged commit 7f838b7 into aws:dev Jan 24, 2025
40 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.

4 participants