Skip to content

e2e: generate the e2e reports in go - #794

Open
klihub wants to merge 4 commits into
e2e-nightly-runnerfrom
e2e-report-in-go
Open

klihub wants to merge 4 commits into
e2e-nightly-runnerfrom
e2e-report-in-go

Conversation

@klihub

@klihub klihub commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Generate the e2e reports in go.

Replace the 750 lines of python of scripts/testing/e2e-report and the awk of
report-coverage.sh with test/e2e/cmd/e2e-report, golang and standard library only.

  • Subcommands run, index and coverage; html/template instead of building
    HTML by hand, and one implementation of the coverage arithmetic.
  • Run with go run ./test/e2e/cmd/e2e-report, so it always matches the
    revision under test; nothing is added to any image.
  • Byte-identical output: results.json, index.html and status.txt of the runs we
    have, and of the index over them, are the same files the python wrote. Only
    the spelling of escaped quotes in HTML text differs.
  • The coverage totals match go tool cover -func and the per-plugin numbers
    match the awk it replaces.

@klihub
klihub added this pull request to stack #796 September 16, 2026 11:44
@klihub klihub changed the title e2e report in go e2e: report in go Sep 16, 2026
Read what a run collected and write results.json, index.html and
status.txt for it, rebuild the index of every run under a result root,
and report the coverage in a coverage profile.

Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
report-coverage.sh keeps merging the data the tests collected and
generating the browsable report, and gets the coverage of each plugin,
the total and summary.json from e2e-report.

Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Run it from the worktree, so that the report is always made by the
revision which was tested, and drop the script it replaces.

Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Krisztian Litkey <krisztian.litkey@intel.com>
@klihub klihub changed the title e2e: report in go e2e: generate the e2e reports in go Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant