test: drop jinja2 dependency from combine_logs.py

bitcoin/bitcoin: PR #36958

1 minor finding

Findings

Link

[minor] · test/README.md still advertises the removed HTML output mode

The functional-test README still advertises an HTML output mode that combine_logs.py no longer supports.

Location: test/functional/combine_logs.py:42 (base).

Details and suggested fix

test/README.md:254-256 says the combined log can be “plain text, colorized text or html,” but the parser no longer accepts --html and always selects text output. A developer attempting to use the advertised HTML mode would receive an unrecognized-argument error. No current in-repository caller using --html was found; the automatic failure-log invocation in test_runner.py passes only the directory and optionally --color.

Change the sentence to “plain text or colorized text.” Include that edit in the HTML-removal commit, 3bed3cf56f1f2d6f14835cf550603bb8567876e3, so the proposed revert path restores matching documentation along with the option.


Coverage details

Background

Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.

Documented decisions

HTML was introduced with combine_logs.py in PR #10017 as one of three presentations of a combined functional-test timeline. The tool's stated purpose was to show what the test framework and all bitcoind instances were doing together, rather than requiring separate log inspection.

The removal affects an intentionally offered presentation of the shared diagnostic data, not the underlying log aggregation. The pinned head retains plain and colorized text output.

Source 1

The HTML-specific ambitions were richer log navigation and shareable failure reports: the introduction proposed JavaScript filtering by source, severity, timestamp or regex, and automated publication of HTML logs for failed CI tests. The author subsequently envisioned Travis uploading HTML to S3 or similar and printing a link, explicitly deferring integration until after the initial tool merged.

These explain why HTML was offered beyond terminal coloring. They establish intended workflows, but the inspected historical statements describe future enhancements—not evidence that those workflows became operational dependencies. The pinned base template contains static source-colored entries without JavaScript filtering.

Source 1 · Source 2 · Source 3

The introduction explicitly treated HTML as a secondary, opt-in use case. When a reviewer requested dependency documentation, Wladimir van der Laan considered the --help notice sufficient because Jinja2 was required only for --html; John Newbery stated that HTML rendering was not expected to be the mainline use case and defended installation guidance at the point of use.

The historical tradeoff was to keep ordinary log combination free of the HTML dependency while allowing interested users to install it. The pinned base preserves that separation through a conditional import. This supports distinguishing optional HTML users from default workflows, but does not establish that optional users never existed or that compatibility was waived.

Source 1 · Source 2 · Source 3

Ralph's inferences

There is a concrete user-facing compatibility surface, but the inspected built-in failure-reporting workflow does not depend on HTML. At the comparison base, test/README.md advertises plain, colorized and HTML output, and CLI help documents --html. The test runner invokes combine_logs.py with the test directory and optionally --color, not --html.

Removal therefore withdraws a documented manual output mode while leaving the inspected automatic failure-log invocation on its existing text path. Documentation is evidence that users could reasonably discover and use HTML, not evidence of a formal stability promise or of actual external adoption.