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

stacks: check providers blocks in components during validatation #34707

Merged
merged 1 commit into from
Feb 21, 2024

Conversation

liamcervante
Copy link
Member

This PR explicitly checks the diagnostics produced by the CheckProvider function added in the last PR (#34705) as part of the stacks validate functionality. This means we get error messages if there are missing or undeclared providers in the providers block for components.

I've also added two additional test cases that are currently skipped during tests that describe assigning providers with the same underlying types but different local names (or the reverse in the error case). This isn't currently support but probably should be. I've expanded a TODO calling this out. I'll revisit this in a future PR.

@liamcervante liamcervante requested a review from a team February 20, 2024 14:20
Copy link
Member

@alisdair alisdair left a comment

Choose a reason for hiding this comment

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

The TODO is surprising but everything else looks good to me! Nice ideas for tests.

@liamcervante liamcervante force-pushed the liamcervante/stacks/validate-components branch 2 times, most recently from be21796 to 68ab945 Compare February 21, 2024 09:53
Base automatically changed from liamcervante/stacks/validate-components to main February 21, 2024 09:58
@liamcervante liamcervante force-pushed the liamcervante/stacks/validate-providers branch from 9360d69 to 92f926b Compare February 21, 2024 10:00
@liamcervante liamcervante merged commit b3abff5 into main Feb 21, 2024
6 checks passed
@liamcervante liamcervante deleted the liamcervante/stacks/validate-providers branch February 21, 2024 10:07
Copy link

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants