Skip to content

Trimmed report fails to write to action summary #654

@byron-goldsack

Description

@byron-goldsack

Describe the bug

When using the action in a run which has a large number of test cases, the trimming functionality appears cause the action to fail to write anything to action summary.

"Test report summary exceeded limit of 1048576 bytes and will be trimmed"

Viewing the step logs, markdown content has been generated, but not written to the summary page.

Unclear if this is related to having multiple test result files using wildcard for the path input, or simply a large number of failing tests.

To Reproduce

Our usage:

      - name: Generate Test Summary
          uses: dorny/[email protected]
          with:
            name: Test Summary
            path: 'C:\Temp\SampleTestResults\*.trx'
            reporter: dotnet-trx
            path-replace-backslashes: true
            fail-on-error: false
            fail-on-empty: false
            list-suites: none
            list-tests: failed

The Trx files tested on have 6722 passed, 1880 failed, and 100 skipped

When testing with a much larger test suite (~40k, unknown number of failures):

Image

Expected behavior

The summary page should correctly display the trimmed content
Alternatively
The action should fall back to summary-only: true

Screenshots

Image

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions