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

Use DetailedTestDiagnostic from EISOP instead of DetailMessage #186

Merged
merged 3 commits into from
Jul 25, 2024

Conversation

wmdietl
Copy link
Collaborator

@wmdietl wmdietl commented Jul 10, 2024

This goes together with eisop/checker-framework#758.
Parsing the detailed test diagnostics is also needed for the EISOP JSpecify conformance tests, so we directly implemented a DetailedTestDiagnostic class in EISOP that can also be used here.
Not strictly necessary to do, but would reduce the code in this repository and protect against changes in the error format.

@wmdietl
Copy link
Collaborator Author

wmdietl commented Jul 14, 2024

Sorry, I just noticed that in eisop/checker-framework#758 I did break how this project parses the detailed diagnostics itself... I've filed eisop/checker-framework#809 and can look into fixing this.
It would seem simpler to just merge this PR though.

if (detailMessage.hasDetails()) {
// Replace diagnostics that can be parsed with DetailMessage diagnostics.
i.set(detailMessage);
if (diagnostic instanceof DetailedTestDiagnostic) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

As the normal tests are executed without -Adetailedmsgtext, this is likely a dead branch. I'll address this in a separate PR.

@wmdietl wmdietl merged commit 39764fb into main-eisop Jul 25, 2024
3 of 5 checks passed
@wmdietl wmdietl deleted the detailed-diagnostics branch July 25, 2024 00:32
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