Skip to content

Ensure reporting is aware of the two test executions.#176

Merged
edburns merged 3 commits intogithub:mainfrom
edburns:edburns/adjust-reporting-for-two-executions
May 8, 2026
Merged

Ensure reporting is aware of the two test executions.#176
edburns merged 3 commits intogithub:mainfrom
edburns:edburns/adjust-reporting-for-two-executions

Conversation

@edburns
Copy link
Copy Markdown
Collaborator

@edburns edburns commented May 8, 2026

  1. action.yml — Widens the default report-path glob from target/surefire-reports/TEST-*.xml to target/surefire-reports*/TEST-*.xml so both report directories are picked up. Replaces the -d "$REPORT_DIR" directory check since the path now contains a wildcard in the directory component.

  2. build-test.yml — Adds target/surefire-reports-isolated/ to the artifact upload path so the isolated execution's reports are preserved in CI.

  3. pom.xml — Adds <reportsDirectory>${project.build.directory}/surefire-reports-isolated</reportsDirectory> (with a comment) to the isolated-resume-tests Surefire execution so its XML reports don't overwrite the default-test reports for the same classes.

1. **action.yml** — Widens the default `report-path` glob from `target/surefire-reports/TEST-*.xml` to `target/surefire-reports*/TEST-*.xml` so both report directories are picked up. Replaces the `-d "$REPORT_DIR"` directory check with `compgen -G` since the path now contains a wildcard in the directory component.

2. **build-test.yml** — Adds `target/surefire-reports-isolated/` to the artifact upload path so the isolated execution's reports are preserved in CI.

3. **pom.xml** — Adds `<reportsDirectory>${project.build.directory}/surefire-reports-isolated</reportsDirectory>` (with a comment) to the `isolated-resume-tests` Surefire execution so its XML reports don't overwrite the default-test reports for the same classes.

Signed-off-by: Ed Burns <edburns@microsoft.com>
Copilot AI review requested due to automatic review settings May 8, 2026 23:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CI test reporting so results from the project’s two Surefire test executions are both preserved and included in the reported summary, avoiding report overwrites and missing counts.

Changes:

  • Configure the isolated-resume-tests Surefire execution to write XML reports to a dedicated target/surefire-reports-isolated/ directory.
  • Update the composite test-report action default glob and existence check so it detects reports across both report directories.
  • Upload the isolated report directory as part of the CI artifact used for site generation.
Show a summary per file
File Description
pom.xml Writes isolated Surefire execution XML into target/surefire-reports-isolated to prevent overwriting main execution reports.
.github/workflows/build-test.yml Uploads target/surefire-reports-isolated/ along with other test artifacts on main.
.github/actions/test-report/action.yml Broadens the report glob and uses compgen -G to detect report files when the directory component is a wildcard.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 2

Comment thread .github/actions/test-report/action.yml Outdated
Comment thread .github/actions/test-report/action.yml
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 2

Comment thread .github/actions/test-report/action.yml Outdated
Comment thread .github/actions/test-report/action.yml
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@edburns edburns merged commit a98e8f0 into github:main May 8, 2026
3 checks passed
@edburns edburns deleted the edburns/adjust-reporting-for-two-executions branch May 8, 2026 23:28
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.

2 participants