Skip to content

Commit a6b5e4c

Browse files
Implement Migration complexity using the assessment issues (#2161)
- now the new algorithm for mig complexity considers all kind of issues including schema, query constructs, plpgsql, datatypes etc... * Removed migration complexity info from analyze schema reports * Fixed the expected mig complexity for pg_assessment_report_test_uqc from LOW to MEDIUM - since the unsupported query constructs are being considered now in mig complexity calculatin * Fixed expected migration complexity for omnibus and osm schema - complexity from Medium->High, and Low->Medium, due to new things - unsupported_datatype(level-3) and change in threshold for HIGH
1 parent d490424 commit a6b5e4c

22 files changed

+352
-157
lines changed

migtests/tests/pg/adventureworks/expected_files/expected_schema_analysis_report.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "HIGH",
43
"Summary": {
54
"Description": "Objects that will be created on the target YugabyteDB.",
65
"DbName": "adventureworks",

migtests/tests/pg/assessment-report-test-uqc/expectedAssessmentReport.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"VoyagerVersion": "IGNORED",
33
"TargetDBVersion": "IGNORED",
4-
"MigrationComplexity": "LOW",
4+
"MigrationComplexity": "MEDIUM",
55
"SchemaSummary": {
66
"Description": "Objects that will be created on the target YugabyteDB.",
77
"DbName": "pg_assessment_report_uqc",

migtests/tests/pg/mgi/expected_files/expected_schema_analysis_report.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "MEDIUM",
43
"Summary": {
54
"Description": "Objects that will be created on the target YugabyteDB.",
65
"DbName": "test_mgd",

migtests/tests/pg/omnibus/expected_files/expectedAssessmentReport.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "MEDIUM",
3+
"MigrationComplexity": "HIGH",
44
"SchemaSummary": {
55
"Description": "Objects that will be created on the target YugabyteDB.",
66
"DbName": "test_omnibus",

migtests/tests/pg/omnibus/expected_files/expected_schema_analysis_report.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "MEDIUM",
43
"Summary": {
54
"Description": "Objects that will be created on the target YugabyteDB.",
65
"DbName": "test_omnibus",

migtests/tests/pg/osm/expected_files/expectedAssessmentReport.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "LOW",
3+
"MigrationComplexity": "MEDIUM",
44
"SchemaSummary": {
55
"Description": "Objects that will be created on the target YugabyteDB.",
66
"DbName": "test_osm",

migtests/tests/pg/osm/expected_files/expected_schema_analysis_report.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "LOW",
43
"Summary": {
54
"Description": "Objects that will be created on the target YugabyteDB.",
65
"DbName": "test_osm",

migtests/tests/pg/pgtbrus/expected_files/expected_schema_analysis_report.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "LOW",
43
"Summary": {
54
"Description": "Objects that will be created on the target YugabyteDB.",
65
"DbName": "test_pgtbrus",

migtests/tests/pg/rna/expected_files/expected_schema_analysis_report.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "HIGH",
43
"Summary": {
54
"Description": "Objects that will be created on the target YugabyteDB.",
65
"DbName": "test_rna",

migtests/tests/pg/sakila/expected_files/expected_schema_analysis_report.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"VoyagerVersion": "IGNORED",
3-
"MigrationComplexity": "HIGH",
43
"Summary": {
54
"Description": "Objects that will be created on the target YugabyteDB.",
65
"DbName": "pg_sakila",

0 commit comments

Comments
 (0)