-
Notifications
You must be signed in to change notification settings - Fork 848
AuTest: bind stdout/stderr to traffic.out #8919
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
Conversation
This updates our AuTest invocation of traffic_server to bind its stdout and stderr output to traffic.out. Doing this allows the tests to dynamically interact with the traffic.out content, such as waiting upon certian debug tag lines. It also serves as a debugging convenience since all logging output for a Traffic Server process will be in its log dir: diags.log, error.log, etc., and now traffic.out.
012f188 to
b0c092c
Compare
| # It is necessary to redirect stderr to a file so it will be available for examination by a test run. | ||
| ts = Test.MakeATSProcess( | ||
| "ts", command="traffic_manager 2> " + Test.RunDirectory + "/ts.stderr.txt", select_ports=True | ||
| ) |
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.
This is an example of something no longer necessary with this patch since we bind stdout and stderr to traffic.out. Instead we can simply interact with traffic.out.
|
I'm not sure if it's an issue. I noticed that in file: Lines 225 to 229 begin with ts1.Disk.traffic_out.Content but maybe should begin with: |
This fixes the stek_share.test.py AuTest to verify the traffic.out output against the correct ts process, rather than just using ts1 for each check. This is fixing a copy and paste bug introduced in apache#8919.
Good catch, @marcin-wadolkowski . Fixing in #8921. |
This fixes the stek_share.test.py AuTest to verify the traffic.out output against the correct ts process, rather than just using ts1 for each check. This is fixing a copy and paste bug introduced in #8919.
|
We need this for other PRs to CP. Cherry-picked to v9.2.x |
This updates our AuTest invocation of traffic_server to bind its stdout and stderr output to traffic.out. Doing this allows the tests to dynamically interact with the traffic.out content, such as waiting upon certian debug tag lines. It also serves as a debugging convenience since all logging output for a Traffic Server process will be in its log dir: diags.log, error.log, etc., and now traffic.out. (cherry picked from commit 3a4c3db)
This updates our AuTest invocation of traffic_server to bind its stdout and stderr output to traffic.out. Doing this allows the tests to dynamically interact with the traffic.out content, such as waiting upon certian debug tag lines. It also serves as a debugging convenience since all logging output for a Traffic Server process will be in its log dir: diags.log, error.log, etc., and now traffic.out. (cherry picked from commit 3a4c3db)
* asf/9.2.x: Revert "Make separate read and write vc_handlers (apache#8301)" AuTest: Update to Proxy Verifier 2.5.2 (apache#9223) AuTest: Update to Proxy Verifier v2.5.0 (apache#9221) Updated ChangeLog Adding back set_connect_fail for generic I/O error (apache#9181) AuTest: make MakeATSProcess accessible for TestRuns (apache#9195) Traffic Dump: Allow unlimited disk utilization (apache#9186) AuTest: bind stdout/stderr to traffic.out (apache#8919) Adds support for serving statichit content out of a directory (apache#9107)
This updates our AuTest invocation of traffic_server to bind its stdout
and stderr output to traffic.out. Doing this allows the tests to
dynamically interact with the traffic.out content, such as waiting upon
certian debug tag lines. It also serves as a debugging convenience since
all logging output for a Traffic Server process will be in its log dir:
diags.log, error.log, etc., and now traffic.out.