Skip to content

output(validation): Pass actual errors instead of status flag only#393

Closed
punchagan wants to merge 1 commit intosemgrep:mainfrom
punchagan:punchagan/rpc-validate-errors
Closed

output(validation): Pass actual errors instead of status flag only#393
punchagan wants to merge 1 commit intosemgrep:mainfrom
punchagan:punchagan/rpc-validate-errors

Conversation

@punchagan
Copy link
Contributor

@punchagan punchagan commented Jul 29, 2025

  • I ran make setup && make to update the generated code after editing a .atd file (TODO: have a CI check)
  • I made sure we're still backward compatible with old versions of the CLI.
    For example, the Semgrep backend need to still be able to consume data
    generated by Semgrep 1.50.0.
    See https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades
    Note that the types related to the semgrep-core JSON output or the
    semgrep-core RPC do not need to be backward compatible!
  • Any accompanying changes in semgrep-proprietary are approved and ready to merge once this PR is merged

@punchagan punchagan force-pushed the punchagan/rpc-validate-errors branch from 2f91616 to 8465c88 Compare July 30, 2025 03:05
@punchagan punchagan force-pushed the punchagan/rpc-validate-errors branch from 8465c88 to b1ac711 Compare July 30, 2025 03:40
@punchagan punchagan marked this pull request as ready for review July 30, 2025 14:56
Copy link
Contributor

@emjin emjin left a comment

Choose a reason for hiding this comment

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

lgtm

@emjin
Copy link
Contributor

emjin commented Aug 2, 2025

Error is about posting the comment, not the actual compatibility. I'll see if I can figure it out on Monday

emjin added a commit that referenced this pull request Aug 6, 2025
Copy of #393 since
it seems permissions are needed to post the comment. This will unblock
the PR, and we can figure out how to fix it for next time
emjin added a commit that referenced this pull request Aug 8, 2025
)

Copy of #393 since it
seems permissions are needed to post the comment. This will unblock the
PR, and we can figure out how to fix it for next time

- [x] I ran `make setup && make` to update the generated code after
editing a `.atd` file (TODO: have a CI check)
- [x] I made sure we're still backward compatible with old versions of
the CLI.
For example, the Semgrep backend need to still be able to *consume* data
	  generated by Semgrep 1.50.0.
See
https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades
	  Note that the types related to the semgrep-core JSON output or the
	  semgrep-core RPC do not need to be backward compatible!
- [x] Any accompanying changes in `semgrep-proprietary` are approved and
ready to merge once this PR is merged
@emjin emjin closed this Aug 11, 2025
@punchagan punchagan deleted the punchagan/rpc-validate-errors branch August 18, 2025 05:44
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