Repository navigation
Address Uranium migration review follow-ups - #13928
Conversation
bryancall
left a comment
There was a problem hiding this comment.
❌ Request changes
The framework side of this is solid. The collision handling under xdist, the ERROR: and Unrecognized configuration value checks in ATS.close(), and the switch from sleeps to waiting on the root task all check out against the source. The new unit tests would fail without the change. Two things before it merges.
Still blocking: five tests relax more than their originals did
The description says disable_log_checks goes on the tests whose originals relaxed the checks. These five relax them for every case, where the original relaxed only one instance:
pluginTest/regex_remap/test_regex_remap.py:90: the original did not drop the check. It replaced it with anExcludesExpressionthat allowed only the deliberate-46|47|53|63 ^/alpha/bravo/and-47 ^/match_limit/errors. Now anyERROR:passes.pluginTest/esi/test_esi.py:113: only the--max-doc-size 100case relaxed it. Now all ten variants do.pluginTest/traffic_dump/test_traffic_dump_ip_filter.py:50: only ts3 relaxed it. ts1 and ts2 lose the check.timeout/test_http2_incomplete_header_timeout.py:81: only the case that expects a timeout relaxed it. The two cases that should proxy cleanly lose it.remap/basic_conf_remap.py:60: the success cases kept the default checks in the original. Here every case is relaxed.
Passing the flag per case, from a case field or parameter, fixes all five. For regex_remap I'd keep the allow-list rather than the flag.
Still blocking: exit code 75 under -m in config-reload-ext.en.rst
The doc says that with -m, the exit code is 75 when another reload is already in progress. In CtrlCommands.cc, monitor mode handles RELOAD_IN_PROGRESS by attaching to that reload and tracking it. Only the non-monitor path sets 75. The traffic_ctl man page says the same thing ("--monitor automatically attaches to that reload"). Under -m, 75 should only mean the -T timeout expired.
Non-blocking: smaller items
jsonrpc/test_config_reload_full_smoke.py:94drops the statuswait_for_reloadreturns, so a failed full reload still passes. dedup and reserve_subtask assert== "success", and this one could too.config-reload-framework.en.rststill has the "Test plugins" block pointing attests/gold_tests/jsonrpc/plugins/*.ccandconfig_reload_plugin_api.test.py. Those now live undertests/uranium_tests/jsonrpc/plugins/astest_config_reload_plugin_api.py.- The
ATS.close()docstring says fatal diagnostics are skipped when a startup failure is expected. Withexpect_start_failure()set, every check is skipped, includingERROR:and the missing-diags.log assert. - The root skips in
test_ssl_multicert_partial_reload.pyandtest_runroot.pymean the default local container run skips five of the eight multicert tests. Chowning the generated keys the way_chown_for_atsdoes would keep them running. - Two more dropped assertions, both from the original conversion and in files this PR doesn't change at those spots. Fine as a follow-up:
test_slice_stale_generation.py:210-216checksblk_rangeandetag_gotas separate substrings. The original required both on the same Mismatch line.test_config_reload_failures.pydefineswrite_multicert(valid=False)but never calls it, so the original's bad-cert reload checks are gone.
The AuTest to Uranium migration left gaps that let regressions pass silently. Procedural tests ignored ERROR and unrecognized-configuration lines in diags.log, config reload tests slept for fixed intervals instead of waiting for the reload to finish, several converted tests dropped assertions, and sandbox name collisions under xdist crashed the run. Docs, the Ubuntu Dockerfile and unused gold files still referred to AuTest. This patch restores the default diags checks for procedural ATS processes, with disable_log_checks on the tests whose originals also relaxed them, and waits for the root reload task to reach a terminal status. Colliding sandbox names now fail the affected items at setup, and the dropped assertions are restored. This change also updates the docs and Dockerfile for Uranium and removes replay and gold files that no test references. Fixes: apache#13877 Co-authored-by: Claude Opus 5.5 Medium <[email protected]>
4055dff to
539b462
Compare
|
Thanks for the careful review. All of it is addressed in the latest push. Diag checks relaxed per case, matching the originals
Exit code 75 under Smaller items
|
bryancall
left a comment
There was a problem hiding this comment.
✅ Approve
I re-reviewed 4055dffc6c..539b46268d. Both revisions sit on the same base (9095be6701), so the force push holds only your changes: 15 files, +124/-56. Both blocking items and all six non-blocking items are addressed. I also ran the touched tests as root in the Fedora 44 CI image on a build of 539b46268d.
Fixed: five tests relax only the cases their originals did
test_regex_remap.py:93-95dropsdisable_log_checksand callsats.allow_errors()with the original allow-list (-46|47|53|63from^/alpha/bravo/,-47from^/match_limit/). The pattern matches theTSErrorformat atregex_remap.cc:1172.test_esi.py:113relaxes only thetoo-smallvariant (max-doc-100).test_traffic_dump_ip_filter.py:92relaxes only ts3.test_http2_incomplete_header_timeout.py:81relaxes only theexpect_timeoutcase.basic_conf_remap.py:101,119relaxes only the warning case and the startup failures. The plain success cases keep the default checks, as in the original.
Fixed: exit code 75 under -m
config-reload-ext.en.rst:59-62 now says 75 means the -T timeout expired and that -m attaches to a reload already in progress. That matches CtrlCommands.cc:744-767, where RELOAD_IN_PROGRESS goes on to track_config_reload_progress, and :442, the only monitor path that sets CTRL_EX_TEMPFAIL.
Fixed: the non-blocking items
test_config_reload_full_smoke.py:94asserts== "success".- The "Test plugins" paths in
config-reload-framework.en.rstnow point attests/uranium_tests/jsonrpc/plugins/andtest_config_reload_plugin_api.py. All four files exist at this head. - The
ATS.close()docstring now saysexpect_start_failure()skips every check, including the diags.log existence assert. test_ssl_multicert_partial_reload.py:143,174hands the generated keys to the ATS user withchown_for_ats().skip_if_root()is gone from all five call sites.test_slice_stale_generation.py:210-212requiresblk_rangeandetag_goton the same Mismatch line.wait_for_file_linesmatches withre.findalland MULTILINE, and the field order matchesplugins/slice/server.cc.test_config_reload_failures.py:144-155writes the bad cert into the livessl_multicert.yaml. It then requires the root task and thessl_multicert.yamltask to befail, and the next good reload to besuccess.
Verified: the restored checks fail when they should
Built 539b46268d in ci.trafficserver.apache.org/ats/fedora:44, running as uid 0, with traffic_server sha256 f7b3b2bd145d30e7.... Each mutation below was reverted afterwards and the clean tree passed again (3 passed).
allow_errors()changed to accept everyERROR:line once any pattern is registered:test_ats_allow_errors_accepts_only_matching_errorsfails withDID NOT RAISE AssertionError. The self-test catches a filter that lets everything through.- The
allow_errors()call removed fromtest_regex_remap.py: the test fails at teardown on the deliberate-46 ("JIT stack limit reached") from "^/alpha/bravo/...and-47 ("match limit exceeded") from "^/match_limit/...lines. So the allow-list is what lets those two errors through, and any other error still fails. write_multicert(_ats, valid=False)changed tovalid=Trueattest_config_reload_failures.py:144: the test fails at:148withassert 'success' == 'fail'. The restored bad-cert step is a real check.
Verified by running it
tests/urtest.sh -k over every touched scenario: 41 passed, 0 skipped, as root. That covers config_reload_failures, full_smoke, all nine esi variants, regex_remap, both slice stale generation tests, traffic_dump_ip_filter, basic_conf_remap (both forms), remap_ws (both forms), all three http2 incomplete header cases, the ten multicert tests, tls_resumption_scope and tls_sni_groups. CI is green except Clang-Analyzer, which was still running when I checked.
I also checked the 47 files the PR deletes. None is referenced at this head. remap_ws.py still loads remap-ws-metrics*.gold, but it resolves them from tests/uranium_tests/remap/gold/, which keeps its copies. Only the remap_yaml/gold/ duplicates are removed.
Non-blocking: follow-ups
test_regex_remap.py:172waits for anyresult -47line. The original required two separate matches: the^/alpha/bravo/crash guard reporting-46|47|53|63, and-47from^/match_limit/. Here alpha/bravo logged -46, but a PCRE2 build where it logs -47 would satisfy this check even if the match_limit rule never hit its limit. Twowait_for_file_linescalls with the original patterns would restore it. This dates from the original conversion, so a follow-up is fine.- The
allow_errorsself-test writesERROR:at column 0. Real diags lines start with a[timestamp] [thread]prefix, so a switch fromsearchtomatchinclose()would not be caught. One more case could also show thatallow_errors()never exempts aFATAL:line. basic_conf_remap.py:119passesdisable_log_checks=Trueto a case that also callsexpect_start_failure(), which already skips every check. Dropping it would avoid suggesting the flag matters there.
The AuTest to Uranium migration left gaps that let regressions pass silently, and the 10.2.x backport of the Uranium tests inherited them. Procedural tests ignored ERROR and unrecognized-configuration lines in diags.log, config reload tests slept instead of waiting for the reload to finish, and several converted tests dropped assertions. This patch backports 8c46b83 (#13928) to 10.2.x. It restores the default diags checks, with disable_log_checks only where the 10.2.x originals relaxed them, waits for reloads to reach a terminal status, restores the dropped assertions and removes unused gold files. Relative to master, the reload checks use ssl_multicert.config, the rate_limit SNI queue test keeps the checks of its 10.2.x original, and remap_https expects the text/html Content-Type that 10.2.x sends. Changes to tests and docs that 10.2.x lacks are dropped. Co-authored-by: bneradt <[email protected]> Co-authored-by: Claude Opus 5.5 Medium <[email protected]>
The AuTest to Uranium migration left gaps that let regressions pass silently, and the 9.2.x backport of the Uranium tests inherited them. Procedural tests ignored ERROR and unrecognized-configuration lines in diags.log, several converted tests dropped assertions, and the test docs still described AuTest. This patch backports 8c46b83 (apache#13928) to 9.2.x. It restores the default diags checks, with disable_log_checks only where the 9.2.x originals relaxed them, restores the dropped assertions and removes unused gold and replay files, including from uranium_dist.inc. Relative to master, 9.2.x has no config reload framework, so the reload test and doc changes are dropped. regex_remap keeps its 9.2.x relaxation, since its PCRE1 errors differ, remap_https expects the text/html Content-Type that 9.2.x sends, and tls_verify_override and background_fill no longer set records 9.2.x does not define. cert_update allows the errors from its deliberate malformed PEM, and the proxy_protocol stderr gold files stay, since 9.2.x still uses them. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The AuTest to Uranium migration left gaps that let regressions pass silently, and the 9.2.x backport of the Uranium tests inherited them. Procedural tests ignored ERROR and unrecognized-configuration lines in diags.log, several converted tests dropped assertions, and the test docs still described AuTest. This patch backports 8c46b83 (#13928) to 9.2.x. It restores the default diags checks, with disable_log_checks only where the 9.2.x originals relaxed them, restores the dropped assertions and removes unused gold and replay files, including from uranium_dist.inc. Relative to master, 9.2.x has no config reload framework, so the reload test and doc changes are dropped. regex_remap keeps its 9.2.x relaxation, since its PCRE1 errors differ, remap_https expects the text/html Content-Type that 9.2.x sends, and tls_verify_override and background_fill no longer set records 9.2.x does not define. cert_update allows the errors from its deliberate malformed PEM, and the proxy_protocol stderr gold files stay, since 9.2.x still uses them. Co-authored-by: Claude Opus 5.5 <[email protected]>
The AuTest to Uranium migration left gaps that let regressions pass
silently. Procedural tests ignored ERROR and unrecognized-configuration
lines in diags.log, config reload tests slept for fixed intervals
instead of waiting for the reload to finish, several converted tests
dropped assertions, and sandbox name collisions under xdist crashed the
run. Docs, the Ubuntu Dockerfile and unused gold files still referred
to AuTest.
This patch restores the default diags checks for procedural ATS
processes, with disable_log_checks on the tests whose originals also
relaxed them, and waits for the root reload task to reach a terminal
status. Colliding sandbox names now fail the affected items at setup,
and the dropped assertions are restored. This change also updates the
docs and Dockerfile for Uranium and removes replay and gold files that
no test references.
Fixes: #13877
Co-authored-by: Claude Opus 5.5 Medium [email protected]
🤖 Generated with Claude Code