unity-test-runner icon indicating copy to clipboard operation
unity-test-runner copied to clipboard

Error: Only 65535 characters are allowed

Open MrGadget1024 opened this issue 2 years ago • 10 comments

Still getting this error, not fixed by https://github.com/game-ci/unity-test-runner/commit/b9980d6db77b429efa66b950aef387eea018775d

- name: Run editor Tests
  continue-on-error: true
  uses: game-ci/unity-test-runner@main
Processing file editmode-results.xml...
Trying to open artifacts/editmode-results.xml
File artifacts/editmode-results.xml parsed...
Start analyzing results: editmode-results.xml
⚠️ editmode-results.xml - 991/1003, skipped: 12 - Passed in 107.210s
=================
Analyze result:
⚠️ Test Results - 991/1003, skipped: 12 - Passed in 107.210s
Posting results for 953944bREDACTEDf5fc69cf8e7c906d266cef5ef
Error: Invalid request.

Only 65535 characters are allowed; 75929 were supplied.

MrGadget1024 avatar Jan 08 '23 17:01 MrGadget1024

Any progress on this, or ideas?

MrGadget1024 avatar Mar 01 '23 21:03 MrGadget1024

I'm surprised #206 didn't fix it. You can work around it by using another test reporting tool (see comments in #142).

timcassell avatar Mar 01 '23 21:03 timcassell

I'm surprised #206 didn't fix it. You can work around it by using another test reporting tool (see comments in #142).

Are we talking about the same point of failure? The failure I'm getting is before the archive step...

image

The error is in the Run editor Tests step...

image

Archive and Publish are working fine

image

Files inside the zip archive

image

I don't know where the "75929 were supplied" comes from but it's clearly not these files.

MrGadget1024 avatar Mar 01 '23 22:03 MrGadget1024

Yes, that looks like the same error to me. I see you are using another test reporter. Remove githubToken: ${{ secrets.GITHUB_TOKEN }} to disable the built-in test reporter.

timcassell avatar Mar 01 '23 22:03 timcassell

Yes, that looks like the same error to me. I see you are using another test reporter. Remove githubToken: ${{ secrets.GITHUB_TOKEN }} to disable the built-in test reporter.

This got rid of the error but leaving this ticket open as the issue still exists. Will work on a nicer test reporter tomorrow.

MrGadget1024 avatar Mar 02 '23 00:03 MrGadget1024

Also hitting this one. Let me know if there's anything I can do to help.

johanhelsing-attensi avatar Mar 27 '24 09:03 johanhelsing-attensi

I think some worked around this by parallelising tests to different jobs. This might not be a solution for everyone though.


One idea we've had is to group logs on a per test suite basis.

We could most likely achieve that by optionally writing the unity logs to a file instead of stdout, and then doing some regex to specify the delimiters.

webbertakken avatar Mar 27 '24 11:03 webbertakken

@davidmfinol Should this be closed now?

MrGadget1024 avatar Jun 15 '24 18:06 MrGadget1024

@MrGadget1024 can you confirm it works OK now if you use game-ci/unity-test-runner@main?

davidmfinol avatar Jun 15 '24 21:06 davidmfinol

@davidmfinol Someone else like @johanhelsing-attensi will have to check...My workflow has changed and I wouldn't be able to reproduce it now.

MrGadget1024 avatar Jun 16 '24 00:06 MrGadget1024

Hello, I can confirm it is fixed - I had the same issue so I switched from game-ci/unity-test-runner@v4 to game-ci/unity-test-runner@main and it fixed the issue.

migwellian avatar Jul 04 '24 10:07 migwellian

Fix released in v4.3.1

davidmfinol avatar Jul 05 '24 04:07 davidmfinol