Skip to content

Remove incomplete plan from cache when compilation fails#137

Open
dbrain wants to merge 1 commit intobufbuild:mainfrom
dbrain:cached-compilation-error
Open

Remove incomplete plan from cache when compilation fails#137
dbrain wants to merge 1 commit intobufbuild:mainfrom
dbrain:cached-compilation-error

Conversation

@dbrain
Copy link
Copy Markdown

@dbrain dbrain commented Mar 19, 2026

When an unregistered rule is hit during planning a CompilationError is thrown (as of #106), when this happens the partial plan stays in the message cache so next time through it picks up the partial cache and returns the incomplete plan.

In our case this resulted in:

  • Failed first call
  • Passed second call because the field that would have triggered validation wasn't being validated

This catches the error and removes the incomplete message from the cache so it will fail again consistently.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Mar 19, 2026

CLA assistant check
All committers have signed the CLA.

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.

3 participants