test: drop jinja2 dependency from combine_logs.py

bitcoin/bitcoin: PR #36958

The review is inconclusive; no findings were published.

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

The original proposal presented HTML as one of three renderings of combined functional-test logs, intended to help developers understand activity across the test framework and nodes. The introduction commit bundled the HTML template beside the script. Neither inspected source describes working-directory lookup as a customization interface or build-layout requirement.

This establishes the intended HTML debugging workflow and the original script/template co-location, but does not establish that selecting a template through the caller's working directory was itself intentional.

Source 1 · Source 2

Ralph's inferences

Working-directory lookup provided a de facto customization capability: a caller could supply combined_log_template.html in the invocation directory independently of the script's location. Script-relative lookup does not preserve that selection mechanism.

The pinned base uses FileSystemLoader('./'); the head reads Path(file).with_name('combined_log_template.html'). This is a real change in template discovery, although the inspected historical evidence does not establish the old capability as a supported override convention.

Script-relative lookup preserves use of the bundled template when script and template remain co-located, without requiring invocation from their directory. Compatibility with the documented build-tree invocation cannot be established from the inspected evidence alone.

The original commit placed both files in test/functional, while the pinned README advertises HTML output and demonstrates a build/test/functional/combine_logs.py command, albeit for colorized text. The discovery change fits the co-located source layout; the corresponding build-tree HTML resource layout still needs confirmation.

Source 1