Skip to content

FAST: Remove obsolete assets, fixes/updates factory validations #2313

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

Closed
wants to merge 3 commits into from

Conversation

sruffilli
Copy link
Collaborator

@github-actions github-actions bot added the on:tools New or changed tool label May 28, 2024
@sruffilli sruffilli marked this pull request as ready for review May 28, 2024 08:25
@ludoo
Copy link
Collaborator

ludoo commented May 28, 2024

TBH I would not want to have validation going forward: the new approach to factories is to only wrap module interfaces, and if we stick to that (which I absolutely would) schemas are redundant and just something extra to manage.

Plus, yamls are now embedded in doc examples, and tested via plan.

Let's please decide, but from my PoV I would nuke all YAML schemas and validation tools.

@juliocc
Copy link
Collaborator

juliocc commented May 28, 2024

TBH I would not want to have validation going forward: the new approach to factories is to only wrap module interfaces, and if we stick to that (which I absolutely would) schemas are redundant and just something extra to manage.

I think validation is a good thing. Just wrapping the module doesn't catch syntactically correct yaml that happens to use incorrect attributes.

Plus, yamls are now embedded in doc examples, and tested via plan.

We should actually validate those too :)

@ludoo
Copy link
Collaborator

ludoo commented May 28, 2024

TBH I would not want to have validation going forward: the new approach to factories is to only wrap module interfaces, and if we stick to that (which I absolutely would) schemas are redundant and just something extra to manage.

I think validation is a good thing. Just wrapping the module doesn't catch syntactically correct yaml that happens to use incorrect attributes.

Plus, yamls are now embedded in doc examples, and tested via plan.

We should actually validate those too :)

Let's discuss, as this is just extra tooling for no real purpose. The factory and the module interface are the validation.

@sruffilli
Copy link
Collaborator Author

TBH I would not want to have validation going forward: the new approach to factories is to only wrap module interfaces, and if we stick to that (which I absolutely would) schemas are redundant and just something extra to manage.

I'm on the fence: a potential side effect of avoiding validation is that a typo on an optional field wouldn't be caught by terraform (attribute would be ignored) with potential distructive side effects.

OTOH I don't love obsolete validators (which we had RN) and I think the solution would be to add tests to the documentation examples to ensure PR can't go through with an outdated validator.
Last and mostly cosmetic, I like having validation examples we can use to educate users about CI/CD pipelines.

Happy with whatever the decision is.

@sruffilli
Copy link
Collaborator Author

Per our chat, I'm abandoning this PR, and sending a new one which simply removes obsolete assets.
I'll also open an issue/discussion to continue the conversation re:Validation.

@sruffilli sruffilli closed this May 28, 2024
@juliocc juliocc deleted the sruffilli/late-spring-cleaning branch January 5, 2025 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
on:FAST on:tools New or changed tool
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants