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

Delete the --json flag of the conformance runner #332

Merged

Conversation

timostamm
Copy link
Member

The conformance runner is very likely to error with the --json flag. For example:

$ protovalidate-conformance --dump --json
proto: google.protobuf.Any: unable to resolve "type.googleapis.com/foo.Bar": not found

If a user starts using the flag only with suites that can serialize to JSON, they might build something based on the JSON output only for it to fail later on. This PR proses to simply delete the flag.

Copy link

github-actions bot commented Mar 10, 2025

The latest Buf updates on your PR. Results from workflow Buf CI / buf (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed✅ passed✅ passed✅ passedMar 10, 2025, 3:40 PM

@timostamm timostamm added the Conformance Related to the conformance testing cases or harness label Mar 10, 2025
@rodaine
Copy link
Member

rodaine commented Mar 10, 2025

Going to do some git archaeology to try to remember why we added it, but I agree it's not terribly useful.

@rodaine
Copy link
Member

rodaine commented Mar 10, 2025

Looking at the PR that introduced it, I believe the intention was to allow it to be consumable by non-human tools. We can always add it back in later if someone desires it, but we will need to figure out how to make it work well with invalid inputs.

@timostamm timostamm merged commit 8836eb2 into main Mar 10, 2025
9 checks passed
@timostamm timostamm deleted the tstamm/Delete-the---json-flag-of-the-conformance-runner branch March 10, 2025 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Conformance Related to the conformance testing cases or harness
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants