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

Added validation for MigrationComplexityExplanation in all pg tests #2218

Merged
merged 3 commits into from
Jan 22, 2025

Conversation

sanyamsinghal
Copy link
Collaborator

Describe the changes in this pull request

  • added expected value for explanation in all the pg tests

Describe if there are any user-facing changes

NO

How was this pull request tested?

Exisiting tests(unit, end-to-end) passing.

Does your PR have changes that can cause upgrade issues?

Component Breaking changes?
MetaDB Yes/No
Name registry json Yes/No
Data File Descriptor Json Yes/No
Export Snapshot Status Json Yes/No
Import Data State Yes/No
Export Status Json Yes/No
Data .sql files of tables Yes/No
Export and import data queue Yes/No
Schema Dump Yes/No
AssessmentDB Yes/No
Sizing DB Yes/No
Migration Assessment Report Json Yes/No
Callhome Json Yes/No
YugabyteD Tables Yes/No
TargetDB Metadata Tables Yes/No

Copy link
Contributor

@priyanshi-yb priyanshi-yb left a comment

Choose a reason for hiding this comment

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

LGTM with a nit

@@ -254,7 +254,7 @@ const explainTemplateHTML = `
</p>
`

const explainTemplateText = `Reasoning: {{ .ComplexityRationale }}`
Copy link
Contributor

@priyanshi-yb priyanshi-yb Jan 22, 2025

Choose a reason for hiding this comment

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

nit: this is not a template string now, its a string for ComplexityRationale, maybe we can avoid the whole template formating and execution for this.
So we can just return this ComplexityRationale in buildMigrationComplexityExplanation for this case

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah, will cleanup in further PRs

@sanyamsinghal sanyamsinghal merged commit ee34cbb into main Jan 22, 2025
67 checks passed
@sanyamsinghal sanyamsinghal deleted the sanyam/complexity-tests branch January 22, 2025 09:40
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