You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Turn on better logging for EC2 test framework (#2298)
### Description of changes:
Currently Cloudwatch logs only captures the output of commands run, not
which command ran so it's hard to figure out what is causing an issue.
This turns on logging for all commands, combines the standard error and
out logs, and turns on exit on any failure.
### Testing:
Before:
```
DEPENDENCIES_DIR=/home/dependencies
OLDPWD=/var/snap/amazon-ssm-agent/7984/aws-lc-pr
_=/usr/bin/env
Building AWS-LC in Release mode with address sanitizer, and running only non ssl test.
Using Ninja build system (ninja).
-- Go compiler 1.20.1 found
-- The C compiler identification is Clang 15.0.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
```
After:
```
+ echo 'Using Ninja build system (ninja).'
+ BUILD_COMMAND=ninja
+ cflags+=(-GNinja)
+ cmake3 -DASAN=1 -DCMAKE_BUILD_TYPE=Release -DENABLE_DILITHIUM=ON -GNinja /var/snap/amazon-ssm-agent/7984/aws-lc-pr
-- Go compiler 1.20.1 found
-- The C compiler identification is Clang 15.0.7
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - skipped
-- Detecting C compile features
-- Detecting C compile features - done
```
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 license and the ISC license.
echo"Actual Run in EC2 can be observered at CloudWatch URL: ${run_url}stdout"
99
-
echo"Error outputs can be observered at CloudWatch URL: ${run_url}stderr"
98
+
echo"Actual Run in EC2 can be observed at CloudWatch URL: ${run_url}stdout all output is redirected to stdout. If something is weird check the same url s/stdout/stderr"
100
99
101
100
102
101
# Give some time for the commands to run, total wait time is 90 minutes.
0 commit comments