Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid huge input lookup errors #144

Merged
merged 1 commit into from
Mar 10, 2023
Merged

Conversation

nineinchnick
Copy link
Contributor

@nineinchnick nineinchnick commented Mar 10, 2023

What

When parsing multiple large XML reports, it sometimes fails with the Huge input lookup error coming from the underlying XML parsing library. We have to explicitly allow parsing large files.

Run scacap/[email protected]
  with:
    fail_if_no_tests: false
    commit: e191cb9c998956574c4c401f734f9596[2](https://github.com/trinodb/trino/actions/runs/4382083337/jobs/7670771144#step:4:2)120f[4](https://github.com/trinodb/trino/actions/runs/4382083337/jobs/7670771144#step:4:4)92
    github_token: ***
    report_paths: **/surefire-reports/TEST-*.xml, **/failsafe-reports/TEST-*.xml
    create_check: true
    check_name: Test Report
    fail_on_test_failures: false
    skip_publishing: false
    file_name_in_stack_trace: false
Going to parse results form **/surefire-reports/TEST-*.xml
 **/failsafe-reports/TEST-*.xml
Error: internal error: Huge input lookup

Fixes #145

How

Add the {huge: true} option to libxmljs.parsexml() call.

Ref: libxmljs/libxmljs#372

@ghaiszaher ghaiszaher merged commit 7263a78 into ScaCap:master Mar 10, 2023
nineinchnick added a commit to nineinchnick/action-surefire-report that referenced this pull request Mar 13, 2023
@nineinchnick nineinchnick mentioned this pull request Mar 13, 2023
ghaiszaher pushed a commit that referenced this pull request Mar 13, 2023
* Revert "Run the action in a container (#141)"

This reverts commit 01b2782.

* Revert "Avoid huge input lookup errors (#144)"

This reverts commit 7263a78.

* Revert "Use a more efficient xml parser library (#138)"

This reverts commit 5b7a533.
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.

Error: internal error: Huge input lookup
3 participants