fix: Use TestAgentPromptConfig type#997
Conversation
|
@rasmi Not sure how this happened. In PR #955, you had renamed This PR corrects the situation, but it's not clear to me how the codebase could have come to be in this state? As is, the frontend doesn't build, so one would expect that whatever combination of PRs led to this state should have failed the GitHub Actions checks. |
|
Thanks Rasmi, you're right, that was the cause of the regression. I think I found the root cause that prevented GitHub Actions from detecting the issue. Our So, if I understand correctly, as long as the frontend tests only touch buildable code, they can run and pass. Since the offending line was in a file outside the tested files' dependency trees, the build failure wasn't caught. I'm writing up a GitHub Issue to track this CI enhancement/bug. |
|
Very curious!! I would have expected local building or type-checking to catch this, but I realize it's because I always develop with the hot reload server running, so it's always building locally. But not necessarily on GH actions / after merges in main. Good catch 🙏 |
|
I wonder if we should adjust the CI commands so that test is always build+test (never just test alone)? Or just add a separate build step like the others have? |
|
@rasmi As I see it, for this issue (the
Thoughts? |
|
I feel fine just merging this fix and sending a follow-up for the other comments (can take care of it later)! Defer to you! |
Update
testAgentConfig()method to useTestAgentPromptConfigtype.