bneradt opened a new pull request #7665: URL: https://github.com/apache/trafficserver/pull/7665
This is a cherry-pick of #6931 I'm pulling this into 9.0.x because the production change is very safe: it only adds a log message when the cache is fully initialized. But the test payoff is significant: this gives the AuTests something more reliable to wait upon before starting. Without this, the 9.0.x AuTests will fail intermittently because some tests run too early before the cache is initialized and then fail. At the time of this PR, this happened for the last two [autest-9.0.x](https://ci.trafficserver.apache.org/job/autest-9.0.x/) runs. I acknowledge that the diff is large for 9.0.x, but the product change is small and safe and 95% of the patch are test changes. ---- This aims to make the AuTests more reliable by providing a log message from traffic server wich the AutTests can use as a ready condition before the tests are started. Many tests, however, override the default MakeATSProcess ready condition. This was generally not uneccesary since they almost alway overwrote it with the same PortOpen When Ready condidtion. In any case, to take advantage of the new Ready, the tests have to be cleaned up to not set their own Ready. While doing this, I added the enable_cache directive to make setting the cache or not a more convenient mechanism for the MakeATSProcess caller. (cherry picked from commit 93a72ecaf453e4186a3eb8a25f5590f88bd4638e) Conflicts: tests/gold_tests/autest-site/copy_config.test.ext tests/gold_tests/basic/deny0.test.py tests/gold_tests/bigobj/bigobj.test.py tests/gold_tests/cache/cache-control.test.py tests/gold_tests/chunked_encoding/chunked_encoding.test.py tests/gold_tests/continuations/double.test.py tests/gold_tests/continuations/session_id.test.py tests/gold_tests/h2/h2spec.test.py tests/gold_tests/h2/http2.test.py tests/gold_tests/h2/nghttp.test.py tests/gold_tests/headers/cache_and_req_body.test.py tests/gold_tests/headers/cachedIMSRange.test.py tests/gold_tests/headers/forwarded.test.py tests/gold_tests/headers/syntax.test.py tests/gold_tests/ip_allow/ip_allow.test.py tests/gold_tests/logging/log-filter.test.py tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests.test.py tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_cachekey.test.py tests/gold_tests/pluginTest/cache_range_requests/cache_range_requests_ims.test.py tests/gold_tests/pluginTest/regex_remap/regex_remap.test.py tests/gold_tests/pluginTest/regex_revalidate/regex_revalidate.test.py tests/gold_tests/pluginTest/slice/slice.test.py tests/gold_tests/pluginTest/slice/slice_error.test.py tests/gold_tests/pluginTest/slice/slice_regex.test.py tests/gold_tests/pluginTest/slice/slice_selfhealing.test.py tests/gold_tests/pluginTest/sslheaders/sslheaders.test.py tests/gold_tests/pluginTest/uri_signing/uri_signing.test.py tests/gold_tests/post_slow_server/post_slow_server.test.py tests/gold_tests/redirect/redirect_actions.test.py tests/gold_tests/redirect/redirect_post.test.py tests/gold_tests/remap/regex_map.test.py -- 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: [email protected]
