Skip to content

fix(awesome): show the selected environment's launch interval in the report header (fixes #852) - #854

Open
d-braun wants to merge 5 commits into
allure-framework:mainfrom
d-braun:fix-report-header-date-per-environment-(#852)
Open

fix(awesome): show the selected environment's launch interval in the report header (fixes #852)#854
d-braun wants to merge 5 commits into
allure-framework:mainfrom
d-braun:fix-report-header-date-per-environment-(#852)

Conversation

@d-braun

@d-braun d-braun commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Context

Fixes #852.

In a report with several environments, the header always showed the earliest test start
across all environments, with a duration spanning the earliest start to the latest stop.
The value did not match the environment selected in the picker and never changed on switch,
because runSummary is computed once over all test results and read from the static
reportOptions.

This computes a run summary per environment from the trsByEnvId map that
AwesomePlugin#generate already builds (same place envStatistics is filled) and embeds it
as runSummaryByEnv in the report options. ReportHeader reads currentEnvironment and
picks the matching interval.

Behaviour with two environments (foo: 2026-01-15, 1 min / bar: 2026-08-05, 5 s):

Selection Before After
All January 15, 2026 at 9:00:00 AM (202d 6h) unchanged
foo January 15, 2026 at 9:00:00 AM (202d 6h) January 15, 2026 at 9:00:00 AM (1m 0s)
bar January 15, 2026 at 9:00:00 AM (202d 6h) August 5, 2026 at 4:00:00 PM (5s 0ms)

"All" keeps the report-wide summary, and an environment without usable timings still falls
back to createdAt. The data lives in reportOptions rather than a separate widget file, so
the header updates immediately on environment switch without an extra fetch or loading state.

The regression came in with 683d234 (#673), which replaced the rendered createdAt with
runSummary.start + formatDuration(runSummary.duration).

Checklist

@d-braun
d-braun force-pushed the fix-report-header-date-per-environment-(#852) branch from ab78a77 to 739d3a1 Compare August 21, 2026 12:40
@epszaw epszaw added the pr:bug label Aug 25, 2026
@epszaw

epszaw commented Aug 25, 2026

Copy link
Copy Markdown
Member

@d-braun some tests are broken. Please fix them before we merge the PR

@CLAassistant

CLAassistant commented Aug 31, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@d-braun
d-braun force-pushed the fix-report-header-date-per-environment-(#852) branch 3 times, most recently from 589d2db to 92465c9 Compare September 2, 2026 08:36
d-braun and others added 3 commits September 2, 2026 14:28
…report header (allure-framework#852)

The report header rendered the report-wide run summary, which spans the
earliest start and the latest stop across all environments. With several
environments the header therefore showed the oldest date and a duration of
days, regardless of the environment picked, and it never changed on switch.

Compute a run summary per environment from the existing trsByEnvId map and
embed it as runSummaryByEnv in the report options, so the header can pick the
interval of the selected environment. "All" keeps the report-wide summary; an
environment without usable timings still falls back to createdAt.
…rmance and prevent timeout issues when running the full monorepo test suite.
@d-braun
d-braun force-pushed the fix-report-header-date-per-environment-(#852) branch from 92465c9 to c3e5e3b Compare September 2, 2026 12:28
@d-braun

d-braun commented Sep 2, 2026

Copy link
Copy Markdown
Contributor Author

@epszaw Tests should be fixed. :)

The Allure Report Official step fails on fork PRs because pull_request runs from a fork always get a read-only GITHUB_TOKEN (the checks: write permission in the workflow can't grant it).

…e-per-environment-(allure-framework#852)

# Conflicts:
#	packages/plugin-awesome/src/generators.ts
#	packages/plugin-awesome/src/plugin.ts
#	packages/web-awesome/src/components/ReportHeader/index.tsx
#	packages/web-awesome/types.d.ts
…re-framework#852)

# Conflicts:
#	packages/web-awesome/test/stores/treeSort.test.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Awesome report header always shows the oldest launch date across all environments

3 participants