tmt icon indicating copy to clipboard operation
tmt copied to clipboard

Add maximum size limit validation for ReportPortal log uploads

Open skycastlelily opened this issue 3 months ago • 6 comments

As pointed by user in :https://github.com/teemtee/tmt/issues/4273#issuecomment-3483326367, we should set a maximum size limit validation for ReportPortal log uploads.

Pull Request Checklist

  • [x] implement the feature
  • [ ] write the documentation
  • [x] extend the test coverage
  • [ ] update the specification
  • [ ] adjust plugin docstring
  • [ ] modify the json schema
  • [ ] mention the version
  • [x] include a release note

skycastlelily avatar Nov 07 '25 07:11 skycastlelily

LGTM, just a minor request.

Also can you explain why does the user set (log|traceback)_size_limit?

Because sometimes some teams/individuals have no use for 32 MB of reports, and it makes their use of Reportportal terrible experience.

happz avatar Nov 11 '25 20:11 happz

LGTM, just a minor request. Also can you explain why does the user set (log|traceback)_size_limit?

Because sometimes some teams/individuals have no use for 32 MB of reports, and it makes their use of Reportportal terrible experience.

Ah it's not the max log that they allow themselves to send, but rather how far back in the log do they want to cut off the logs that they save? Makes sense.

LecrisUT avatar Nov 11 '25 20:11 LecrisUT

Please do not use fixes together with an issue comment. That may accidentally close the issue. Use something like relates to. Could also use more context in the description

LecrisUT avatar Nov 12 '25 05:11 LecrisUT

Please do not use fixes together with an issue comment. That may accidentally close the issue. Use something like relates to. Could also use more context in the description

sure, updated:)

skycastlelily avatar Nov 12 '25 07:11 skycastlelily

The pull request checklist is not complete. @skycastlelily, could you please remove irrelevant items and complete what's missing? I think this change definitely deserves a release note.

psss avatar Nov 21 '25 14:11 psss

The pull request checklist is not complete. @skycastlelily, could you please remove irrelevant items and complete what's missing? I think this change definitely deserves a release note.

Addressed: https://github.com/teemtee/tmt/pull/4300/commits/5b5758b0d8f6bb6f773f2fddbf3c3d3168e3b35c :)

skycastlelily avatar Nov 22 '25 14:11 skycastlelily

Unrelated failure, merging.

happz avatar Nov 25 '25 13:11 happz