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

feat: add ability to reset injected answers #10

Merged

Conversation

bngo97
Copy link

@bngo97 bngo97 commented Aug 2, 2024

what

add the ability to clear injected answers

why

we use prompt.inject to inject answers for testing. however, if a test adds too many injections on accident that don't get used by the test, then this leaks over to the next test which which causes test failures. instead, we should be able to reset the injected answers before each test to make sure it's clean

I believe this is what's causing flaky tests in https://linear.app/withgraphite/issue/GT-10743/look-into-why-tests-involving-promptsinject-fail-in-ci

@bngo97 bngo97 force-pushed the bngo/08-02-feat_add_ability_to_reset_injected_answers branch from e49200a to 5a74cc0 Compare August 2, 2024 17:33
@bngo97
Copy link
Author

bngo97 commented Aug 2, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @bngo97 and the rest of your teammates on Graphite Graphite

@bngo97 bngo97 force-pushed the bngo/08-02-feat_add_ability_to_reset_injected_answers branch from 5a74cc0 to 76e51e7 Compare August 2, 2024 17:35
@bngo97 bngo97 requested a review from goldjacobe August 2, 2024 17:35
@bngo97 bngo97 marked this pull request as ready for review August 2, 2024 17:37
@bngo97 bngo97 merged commit 5ae570c into master Aug 5, 2024
6 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.

2 participants