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

improve "exhausted attempts" diagnostics #6956

Merged
merged 2 commits into from Sep 29, 2023

Conversation

tomerd
Copy link
Member

@tomerd tomerd commented Sep 29, 2023

motivation: better diagnostics when depdendcy graph fails to resolve. the "exhausted attempts" error message should normally not be encountered, other than in edge cases where the graph is not resolvable. nevertheless, it should be readable by users

changes:

  • conslidate the formatting of the "exhausted attempts" error message
  • format the "exhausted attempts" more clearly so it is more readable
  • update test

rdar://112134269

@tomerd
Copy link
Member Author

tomerd commented Sep 29, 2023

@swift-ci smoke test

motivation: better diagnostics when depdendcy graph fails to resolve. the "exhausted attempts" error message should normally not be encountered, other than in edge cases where the graph is not resolvable. nevertheless, it should be readable by users

changes:
* conslidate the formatting of the "exhausted attempts" error message
* format the "exhausted attempts" more clearly so it is more readable
* update test

rdar://112134269
@tomerd tomerd force-pushed the fix/exhausted-attempts-diagnostics-2 branch from f4f6943 to 687cc2b Compare September 29, 2023 00:51
@tomerd
Copy link
Member Author

tomerd commented Sep 29, 2023

@swift-ci smoke test

Copy link
Member

@neonichu neonichu left a comment

Choose a reason for hiding this comment

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

Do you have an example of how the messages look like before and after?

@tomerd
Copy link
Member Author

tomerd commented Sep 29, 2023

the test code has it

@tomerd
Copy link
Member Author

tomerd commented Sep 29, 2023

@swift-ci test

@tomerd
Copy link
Member Author

tomerd commented Sep 29, 2023

@swift-ci test

@tomerd tomerd enabled auto-merge (squash) September 29, 2023 18:49
@tomerd tomerd enabled auto-merge (squash) September 29, 2023 18:49
@tomerd tomerd merged commit b699e07 into apple:main Sep 29, 2023
5 checks passed
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.

None yet

3 participants