Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add logs when stuck #40

Merged
merged 7 commits into from
Jun 28, 2024
Merged

Conversation

nexxeln
Copy link
Contributor

@nexxeln nexxeln commented Jun 23, 2024

closes #33

i took a shot at implementing this. lemme know if there's any changes or improvements needed!

{
role: 'user',
content: `Please add detailed logs to the following code to help debug repeated test failures:\n\n${options.priorCode}`,
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would be great to pass the test failure text in here too so it has more context about where things are stuck

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for an optimal prompt, when we have multiple variables, we should wrap these in xml tags, like

content: `Please add detailed logs to the following code to help debug repeated test failures:\n\n<code>${options.priorCode}</code>\n\nThe error you received on that code was:\n\n<error>${options.lastRunError}</error>`,

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@nexxeln nexxeln requested a review from steve8708 June 26, 2024 06:26
@steve8708
Copy link
Contributor

awesome, thanks @nexxeln! merging this in and i'll do some testing

@steve8708 steve8708 merged commit a9c686a into BuilderIO:main Jun 28, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add logs when stuck
2 participants