-
Notifications
You must be signed in to change notification settings - Fork 613
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
Add make targets for ecs-agent module and integrate it with CI #3651
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we update the make clean
target to remove the coverprofile-ecs-agent.out file as well?
c8a68b0
to
1c0470d
Compare
f17d515
to
2878b2b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for making these changes!
Not blocking to this PR, but I think we'll want to revisit outstanding make targets that contain ./agent/...
and see if we want to include ./ecs-agent/...
as well (e.g., make benchmark-test
). Let's make sure we're tracking this somewhere internally.
Thanks! Yeah I think we would want to look at the other targets on a case-by-case basis and update the ones we think are applicable to ecs-agent module. |
Summary
Update make targets to include ecs-agent module. Integrate ecs-agent module with CI.
Implementation details
make test
now runs tests for ecs-agent too, and outputs coverage data tocoverprofile-ecs-agent.out
file.make analyze-cover-profile
now analyzes test coverage for ecs-agent module too.make clean
now cleans up coverage data file for ecs-agent tests too.make static-check
now runs static checks for ecs-agent module too.scripts/analyze-cover-profile-init˙ is a duplicate of
scripts/analyze-cover-profile`. Removed the former and updated the latter to take test coverage file as input. Updated static check CI workflow to pass the coverage file to the script.Testing
Checked CI workflow logs that tests are run for ecs-agent module. Also checked that static-check is run for ecs-agent module in the CI workflow logs.
New tests cover the changes: yes
Description for the changelog
Integrate ecs-agent module with CI. Add make targets for ecs-agent module.
Licensing
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.