tracehubpm / reports-check-action

Bug Reports (GitHub Issues) Quality Checker
MIT License
10 stars 1 forks source link

Action fails due to parsing error from LLM inaccurate polish response #77

Closed h1alexbel closed 7 months ago

h1alexbel commented 7 months ago
Running polish goal
polish completed, response from gpt-4:
      {
    "Problems": [
        "The bug report does not clearly define the problem. It only suggests a solution without explaining the problem in any detail. It would be more helpful if it illustrated the exact issue occurring due to the \"explicit object copying\".",
        "The report does not include any steps to reproduce the bug. Providing steps to recreate the bug is a crucial part of a quality bug report.",
        "There are no logs, error messages, screenshots or any other evidence provided to support the claim made in the bug report."
    ]
}
...
Error: Cannot read properties of undefined (reading 'forEach')

As you can see polished response is in invalid format (typo Problems instead of problems). This resulting in thatmd-objects.ts can't parse input JSON. To handle this situation let's try to either try to analyze response in deterministic way and then parse/post the result (even if format is invalid) it or skip JSON package step by LLM, and work only with text.

github-actions[bot] commented 7 months ago

@h1alexbel thanks for the report, here is a feedback:

Problems:

Please fix the bug report in order it to get resolved faster. Analyzed with Phind/Phind-CodeLlama-34B-v2

h1alexbel commented 7 months ago

Let's try to summarize response in Markdown

h1alexbel commented 7 months ago

@rultor release, tag is 0.3.2

rultor commented 7 months ago

@rultor release, tag is 0.3.2

@h1alexbel OK, I will release it now. Please check the progress here

rultor commented 7 months ago

@rultor release, tag is 0.3.2

@h1alexbel Done! FYI, the full log is here (took me 8min)