The GitHub Actions job "Backport Approval Check" on 
texera.git/feat/ai-workflow-fixer has failed.
Run started by GitHub user pedroreyesalvarado (triggered by pedroreyesalvarado).

Head commit for run:
114b5822c6966f3794aba122e59ec1534b37ea1f / Pedro <[email protected]>
fix(frontend): classify on the exception the source already separated

@kunwp1 was right that JVM errors still did not classify, and the reason is
worse than the pattern: on Java 9+ the JDK's own frames carry a module prefix
(`java.base/java.lang.Thread.run(Thread.java:840)`) and native ones read
`(Native Method)`. mkConsoleMessage sends `getStackTrace.mkString` with no `at `
prefix either, so a real worker trace ends on a frame nothing here recognised --
the backward scan returned that frame and `NullPointerException` classified as
unsupported. The fix in 7ee6339 did not work in production.

So stop deducing it. Both sources hand the exception over on its own:
mkConsoleMessage puts `err.toString` in `title`, the Python worker puts
`format_exception[-1]` there, and a fatal error carries `evt.e.toString` in
`message` with the stack in `details`. analyzeError now takes both parts --
`header` to classify, `full` for the prompt -- and FRAME_LINE and
finalExceptionLine are gone.

That also retires the chained-traceback logic rather than reimplementing it:
`format_exception[-1]` is already the exception that stopped the worker, which
is what scanning backwards was trying to recover.

The regression test moves to the frame spec, where the title is actually
extracted, since that is where this can break again. Two service tests that
fed a whole traceback to classifyError went with the heuristic -- passing a
blob now only proves the pattern matches somewhere in it, not that the header
was read.

Co-Authored-By: Claude Opus 5 <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/39985413791

With regards,
GitHub Actions via GitBox

Reply via email to