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

[STEP-2064] Simplified validation #1032

Merged
merged 6 commits into from
Jan 21, 2025
Merged

Conversation

tothszabi
Copy link
Contributor

Checklist

Version

Requires a MINOR version update

Context

This PR introduces a new internal minimal validation mode. This means that with the run and trigger commands the following config parts will not be validated:

  • trigger map
  • status report name
  • pipelines
  • stages

So everything needed for local execution (workflows, step bundles, app envs, containers) will still be validated.

Only the validation will be skipped for the above mentioned sections. The yaml still needs to be in a parseable state.

return config.internalValidation(false)
}

func (config *BitriseDataModel) internalValidation(full bool) ([]string, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I kept the order of the field validation and did not group the ones which should be performed only in full mode under a big if statement. The reason is that the collected warnings with this ordering follows the the order of the fields appearing in the config yaml.

ofalvai
ofalvai previously approved these changes Jan 8, 2025
@tothszabi tothszabi merged commit daa230d into master Jan 21, 2025
8 checks passed
@tothszabi tothszabi deleted the STEP-2064-simplified-validation branch January 21, 2025 14:54
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