Skip to content

Conversation

@ridwanmsharif
Copy link
Contributor

@ridwanmsharif ridwanmsharif commented Feb 3, 2023

Description

The semantic validation should only happen on the merged config.

Related issue

http://b/267762522

How has this been tested?

Checklist:

  • Unit tests
    • Unit tests do not apply.
    • Unit tests have been added/modified and passed for this PR.
  • Integration tests
    • Integration tests do not apply.
    • Integration tests have been added/modified and passed for this PR.
  • Documentation
    • This PR introduces no user visible changes.
    • This PR introduces user visible changes and the corresponding documentation change has been made.
  • Minor version bump
    • This PR introduces no new features.
    • This PR introduces new features, and there is a separate PR to bump the minor version since the last release already.
    • This PR bumps the version.

@ridwanmsharif ridwanmsharif force-pushed the ridwanmsharif/validation-hotfix branch 2 times, most recently from e10e141 to 07270ea Compare February 3, 2023 16:25
Signed-off-by: Ridwan Sharif <ridwanmsharif@google.com>
@ridwanmsharif ridwanmsharif force-pushed the ridwanmsharif/validation-hotfix branch from 07270ea to 0fb4e36 Compare February 3, 2023 16:28

// Read the built-in config file.
original, err := builtInStruct.DeepCopy(platform)
template, err := builtInStruct.DeepCopy(platform)
Copy link
Contributor

Choose a reason for hiding this comment

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

[Optional] I'd call this merged or result, FWIW. Eventually, we should probably turn mergeConfigs into a functional update (rather than in-place) and do the DeepCopy there.

Copy link
Contributor Author

@ridwanmsharif ridwanmsharif Feb 3, 2023

Choose a reason for hiding this comment

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

Done. Naming is hard :(

I like the suggestion. Will attempt something in another PR so this doesn't block the release

ridwanmsharif and others added 2 commits February 3, 2023 13:08
Co-authored-by: igorpeshansky <igorpeshansky@users.noreply.github.com>
Copy link
Contributor

@igorpeshansky igorpeshansky left a comment

Choose a reason for hiding this comment

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

LGTM :shipit:

@ridwanmsharif ridwanmsharif merged commit 6705187 into master Feb 3, 2023
@ridwanmsharif ridwanmsharif deleted the ridwanmsharif/validation-hotfix branch February 3, 2023 19:21
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.

3 participants