-
Notifications
You must be signed in to change notification settings - Fork 31
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
Extend CloudWatch Agent AppSignals EC2 tests for MacOS and Window #405
Conversation
making sure we are in the right test repo Finished App Signal EC2 test for mac and windows
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.
Left some comments
func SendAppTraceMetrics(duration time.Duration) error { | ||
baseDir := getBaseDir() | ||
|
||
for i := 0; i < int(duration/(5*time.Second)); i++ { |
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.
For this I think using TimeTicker would be easier to maintain and will be less flakey. Here is an example from traces-test
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.
I still insist by this
Can you also |
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.
Nothing blocking, but there is still changes I would like to see
func SendAppTraceMetrics(duration time.Duration) error { | ||
baseDir := getBaseDir() | ||
|
||
for i := 0; i < int(duration/(5*time.Second)); i++ { |
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.
I still insist by this
Description of the issue
Extending Linux App signal EC2 Test to work on MacOs and Windows.
Description of changes
Changing the validator, which is what MacOs and Winows use for their testing, to have a test for app signals. Both App Signals and Traces are being tested.
Running Integration test
https://github.com/aws/amazon-cloudwatch-agent/actions/runs/8820034431/job/24213490204
Why are some test failing?
If you look at the logs of the test, the validator is passing, those are different issues not correlated with this pr.
Steps taken for testing
Additional change needed to be made
Corrected the json files to generate AppSignals metrics so that App Signal metrics are being generated properly
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.