You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2020/07/20 20:03:27 UTC

[GitHub] [trafficserver] shinrich opened a new pull request #7018: Make tls_conn_timeout test more reliable in CI

shinrich opened a new pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018


   tls_conn_timeout test is not passing in the master autest build.  Streamlining some things with the test here.  Two things that should specifically improve stability.  Modeling the ssl-delay-server directly rather than invoking it with spreadsheet so we can delay test until we know that the delay-server's ports are ready.
   
   Also removing the per test case timeouts.  I was trying to use them to test that the ATS timeouts weren't taking too long.  But I think with the timing vagaries in the CI, that is not going to be reliable.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] randall commented on pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
randall commented on pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#issuecomment-662614364


   [approve ci freebsd]
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] bneradt commented on a change in pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
bneradt commented on a change in pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#discussion_r457673551



##########
File path: tests/gold_tests/timeout/tls_conn_timeout.test.py
##########
@@ -45,60 +49,68 @@
 ts.Disk.remap_config.AddLine('map /get_connect_blocked https://127.0.0.1:{0}'.format(Test.Variables.get_block_connect_port))
 ts.Disk.remap_config.AddLine('map /get_ttfb_blocked https://127.0.0.1:{0}'.format(Test.Variables.get_block_ttfb_port))
 
+# Commenting out the per test case timeouts.  In the CI, there is too big of a risk that we hit those timeouts.  Had hoped to use
+# The test case timeouts to differentiate between a good origin timeout and a too long origin timeout
+
 # Run the connection and TTFB timeout tests first with POST.
 
 # Request the port that should timeout in the handshake
 # Should retry once
-tr = Test.AddTestRun("tr-blocking")
-tr.Setup.Copy("case2.sh")
-tr.Processes.Default.StartBefore(Test.Processes.ts, ready=When.PortOpen(ts.Variables.port))
+tr = Test.AddTestRun("tr-blocking-post")
 tr.Setup.Copy("../chunked_encoding/ssl/server.pem")
-tr.Processes.Default.Command = 'sh ./case2.sh {0} 3 0 {1} connect_blocked'.format(Test.Variables.block_connect_port, ts.Variables.port)
-tr.Processes.Default.TimeOut = 6
+tr.Processes.Default.StartBefore(Test.Processes.ts, ready=When.PortOpen(ts.Variables.port))

Review comment:
       We shouldn't need this ready condition. I actually thought I removed all of these. The default MakeATSProcess function should set the ready that waits upon a log message from traffic server saying that it is ready to optimize traffic.
   
   Can you please remove this ready condition from the patch?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] randall commented on pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
randall commented on pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#issuecomment-661629736


   [approve ci autest]


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] shinrich merged pull request #7018: Make tls_conn_timeout test more reliable in CI - fixes autest on master

Posted by GitBox <gi...@apache.org>.
shinrich merged pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] shinrich commented on pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
shinrich commented on pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#issuecomment-661519966


   The last autest run did not pick up my latest commit.  Trying again.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] randall removed a comment on pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
randall removed a comment on pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#issuecomment-661629736


   [approve ci autest]


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] randall commented on pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
randall commented on pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#issuecomment-662609512


   [approve ci freebsd]


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] randall removed a comment on pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
randall removed a comment on pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#issuecomment-662609512






----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] shinrich commented on pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
shinrich commented on pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#issuecomment-661520138


   [approve ci autest]


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] shinrich commented on pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
shinrich commented on pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#issuecomment-661939057


   [approve ci autest]


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [trafficserver] shinrich commented on a change in pull request #7018: Make tls_conn_timeout test more reliable in CI

Posted by GitBox <gi...@apache.org>.
shinrich commented on a change in pull request #7018:
URL: https://github.com/apache/trafficserver/pull/7018#discussion_r459722161



##########
File path: tests/gold_tests/timeout/tls_conn_timeout.test.py
##########
@@ -45,60 +49,68 @@
 ts.Disk.remap_config.AddLine('map /get_connect_blocked https://127.0.0.1:{0}'.format(Test.Variables.get_block_connect_port))
 ts.Disk.remap_config.AddLine('map /get_ttfb_blocked https://127.0.0.1:{0}'.format(Test.Variables.get_block_ttfb_port))
 
+# Commenting out the per test case timeouts.  In the CI, there is too big of a risk that we hit those timeouts.  Had hoped to use
+# The test case timeouts to differentiate between a good origin timeout and a too long origin timeout
+
 # Run the connection and TTFB timeout tests first with POST.
 
 # Request the port that should timeout in the handshake
 # Should retry once
-tr = Test.AddTestRun("tr-blocking")
-tr.Setup.Copy("case2.sh")
-tr.Processes.Default.StartBefore(Test.Processes.ts, ready=When.PortOpen(ts.Variables.port))
+tr = Test.AddTestRun("tr-blocking-post")
 tr.Setup.Copy("../chunked_encoding/ssl/server.pem")
-tr.Processes.Default.Command = 'sh ./case2.sh {0} 3 0 {1} connect_blocked'.format(Test.Variables.block_connect_port, ts.Variables.port)
-tr.Processes.Default.TimeOut = 6
+tr.Processes.Default.StartBefore(Test.Processes.ts, ready=When.PortOpen(ts.Variables.port))

Review comment:
       Addressed.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org