bneradt commented on PR #13456:
URL: https://github.com/apache/trafficserver/pull/13456#issuecomment-6988700935
@cmcfarlen Thanks, and sorry the last push was only a rebase. All three
11-09 items are addressed in 28ccf559b9, the main commit. Head is now
efa880fbc6, rebased onto current `master`.
1. **Rule-free `cache.yaml` next to a non-empty `cache.config`:** the
sibling check in `CacheControl.cc` now runs in two cases: when the configured
YAML file is missing, and when it parses to zero rules. In both cases it warns
if a `cache.config` in the same directory has at least one rule line, meaning a
line that is not blank and not a comment. A stock, comment-only `cache.config`
does not trigger it. The warning names both files, gives the converter command,
and names the `proxy.config.cache.control.filename` escape hatch. Because it is
part of table loading, it fires on reload as well as at startup. Two new
Uranium tests cover this:
- `cache-yaml-empty-legacy-sibling` sets up the upgrade layout: `cache:
[]` plus a `cache.config` with a `never-cache` rule, and the filename left at
its default. It asserts the warning is in `diags.log`, and that the response is
still cached, which shows the legacy rule is not applied.
- `cache-yaml-empty-legacy-comments` checks that a comment-only
`cache.config` does not produce the warning.
The upgrading guide now describes the warning too.
2. **`url` in the primary-key list:** added to the comment in
`configs/cache.yaml.default`.
3. **`dest_ip` overlap caveat:** a note in `cache.yaml.en.rst`, under "First
Matching Rule", explains it. When `dest_ip` ranges overlap, only the
last-listed rule is considered for an address in the overlap, same as
`cache.config`. The note suggests non-overlapping ranges or a secondary key.
The rebase also picks up the Ruff and cmakefmt format changes. The only
reformatted files in this PR were `src/config/CMakeLists.txt` and
`src/proxy/CMakeLists.txt`.
Local validation in a Fedora CI container: format, build, and install
passed. 216 cache, `convert_cache`, config-reload, and replay/services urtests
passed, including the two new ones. A first run at `-n 12` hit port collisions
from other runs sharing the host, and those tests passed on rerun.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]