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

[BreakingChangeTool] Fails to report breaking change due to runtime exception #8310

Open
raych1 opened this issue May 21, 2024 · 5 comments
Open
Assignees
Labels
Breaking Changes Improvements to Breaking Changes tooling Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo.

Comments

@raych1
Copy link
Contributor

raych1 commented May 21, 2024

@github-actions github-actions bot added the needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. label May 21, 2024
@konrad-jamrozik
Copy link
Contributor

Related:

@raych1 this is an old PR so the error message doesn't provide exact offending line. The actual problem is likely similar to the one discussed here. That is: The breaking change tool internally uses AutoRest v2 and AutoRest v2 is unable to parse the OpenAPI spec, thus the tool cannot run and throws runtime exception. The "incompatible properties: tags" error means, on a high level, that OpenAPI spec tries to reconcile two separate definitions of tags and they are incompatible with each other.

I would recommend reproducing this problem with a newer PR to get a better error message. And also see the discussion above.

@konrad-jamrozik konrad-jamrozik added Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo. and removed needs-triage Workflow: This is a new issue that needs to be triaged to the appropriate team. labels May 22, 2024
@konrad-jamrozik konrad-jamrozik self-assigned this May 22, 2024
@raych1
Copy link
Contributor Author

raych1 commented May 22, 2024

@konrad-jamrozik , can we run this tool locally to compare the 2023-09-01 version with previous stable version? The reason is that the 2023-09-01 version is in main and any change to the spec won't trigger the expected comparison. See this PR I created for testing.

@raych1
Copy link
Contributor Author

raych1 commented May 22, 2024

@konrad-jamrozik , can we run this tool locally to compare the 2023-09-01 version with previous stable version? The reason is that the 2023-09-01 version is in main and any change to the spec won't trigger the expected comparison. See this PR I created for testing.

I can run the tool locally and output the diffs comparing to previous version.

@konrad-jamrozik
Copy link
Contributor

@raych1 instructions here:

@mikeharder is investigating related, other issues of form incompatible properties.

@konrad-jamrozik
Copy link
Contributor

@konrad-jamrozik konrad-jamrozik added the Breaking Changes Improvements to Breaking Changes tooling label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Breaking Changes Improvements to Breaking Changes tooling Central-EngSys This issue is owned by the Engineering System team. Spec PR Tools Tooling that runs in azure-rest-api-specs repo.
Projects
Status: 📋 Backlog
Status: 📋 Backlog
Development

No branches or pull requests

2 participants