Skip to content

Only use the last 200 lines of the error trace

Hongtao Yang requested to merge hyang/trim-rca-error-trace into main

What does this merge request do and why?

We got a lot of errors saying we exceed input token limit. In this MR, we trim down the error trace to be at most 200 lines.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Merge request checklist

  • I've ran the affected pipeline(s) to validate that nothing is broken.
  • Tests added for new functionality. If not, please raise an issue to follow up.
  • Documentation added/updated, if needed.

Merge request reports