|
36 | 36 | MULTI_EXTENSION_SQL = "src/test/regress/sql/multi_extension.sql" |
37 | 37 | CITUS_CONTROL = "src/backend/distributed/citus.control" |
38 | 38 | MULTI_EXTENSION_OUT = "src/test/regress/expected/multi_extension.out" |
39 | | -CONFIG_PY = "src/test/regress/upgrade/config.py" |
| 39 | +CONFIG_PY = "src/test/regress/citus_tests/config.py" |
40 | 40 | DISTRIBUTED_SQL_DIR_PATH = "src/backend/distributed/sql" |
41 | 41 | DOWNGRADES_DIR_PATH = f"{DISTRIBUTED_SQL_DIR_PATH}/downgrades" |
42 | | -CONFIGURE_IN = "configure.ac" |
| 42 | +CONFIGURE_AC = "configure.ac" |
43 | 43 | CONFIGURE = "configure" |
44 | 44 | CITUS_CONTROL_SEARCH_PATTERN = r"^default_version*" |
45 | 45 |
|
|
57 | 57 | rf"^{MULTI_EXT_DETAIL_PREFIX}\d+\.\d+{MULTI_EXT_DETAIL2_SUFFIX}$" |
58 | 58 | ) |
59 | 59 |
|
60 | | -CONFIG_PY_MASTER_VERSION_SEARCH_PATTERN = r"^MASTER_VERSION = '\d+\.\d+'" |
| 60 | +CONFIG_PY_MASTER_VERSION_SEARCH_PATTERN = r'^MASTER_VERSION = "\d+\.\d+"' |
61 | 61 |
|
62 | | -CONFIGURE_IN_SEARCH_PATTERN = "AC_INIT*" |
| 62 | +CONFIGURE_AC_SEARCH_PATTERN = "AC_INIT*" |
63 | 63 | REPO_OWNER = "citusdata" |
64 | 64 |
|
65 | 65 | BASE_PATH = pathlib2.Path(__file__).parent.absolute() |
|
69 | 69 | MULTI_EXT_SQL_TEMPLATE_FILE = "multi_extension_sql_prepare_release.tmpl" |
70 | 70 |
|
71 | 71 | repo_details = { |
72 | | - "citus": {"configure-in-str": "Citus", "branch": "master"}, |
| 72 | + "citus": {"configure-in-str": "Citus", "branch": "main"}, |
73 | 73 | "citus-enterprise": { |
74 | 74 | "configure-in-str": "Citus Enterprise", |
75 | 75 | "branch": "enterprise-master", |
@@ -187,7 +187,7 @@ def update_release( |
187 | 187 | multi_extension_out_path=f"{exec_path}/{MULTI_EXTENSION_OUT}", |
188 | 188 | multi_extension_sql_path=f"{exec_path}/{MULTI_EXTENSION_SQL}", |
189 | 189 | citus_control_file_path=f"{exec_path}/{CITUS_CONTROL}", |
190 | | - configure_in_path=f"{exec_path}/{CONFIGURE_IN}", |
| 190 | + configure_in_path=f"{exec_path}/{CONFIGURE_AC}", |
191 | 191 | config_py_path=f"{exec_path}/{CONFIG_PY}", |
192 | 192 | distributed_dir_path=f"{exec_path}/{DISTRIBUTED_SQL_DIR_PATH}", |
193 | 193 | downgrades_dir_path=f"{exec_path}/{DOWNGRADES_DIR_PATH}", |
@@ -560,12 +560,13 @@ def add_downgrade_script_in_multi_extension_file( |
560 | 560 |
|
561 | 561 | if not prepend_line_in_file( |
562 | 562 | multi_extension_out_path, |
563 | | - "DROP TABLE prev_objects, extension_diff;", |
| 563 | + "DROP TABLE multi_extension.prev_objects, multi_extension.extension_diff;", |
564 | 564 | string_to_prepend, |
565 | 565 | ): |
566 | 566 | raise ValueError( |
567 | 567 | f"Downgrade scripts could not be added in {multi_extension_out_path} since " |
568 | | - f"'DROP TABLE prev_objects, extension_diff;' script could not be found " |
| 568 | + "'DROP TABLE multi_extension.prev_objects, multi_extension.extension_diff;' " |
| 569 | + "script could not be found " |
569 | 570 | ) |
570 | 571 | print( |
571 | 572 | f"### Done Test downgrade scripts successfully added in {multi_extension_out_path}. ###" |
@@ -696,7 +697,7 @@ def update_version_in_configure_in(project_name, configure_in_path, project_vers |
696 | 697 | print(f"### Updating version on file {configure_in_path}... ###") |
697 | 698 | if not replace_line_in_file( |
698 | 699 | configure_in_path, |
699 | | - CONFIGURE_IN_SEARCH_PATTERN, |
| 700 | + CONFIGURE_AC_SEARCH_PATTERN, |
700 | 701 | f"AC_INIT([{repo_details[project_name]['configure-in-str']}], [{project_version}])", |
701 | 702 | ): |
702 | 703 | raise ValueError(f"{configure_in_path} does not have match for version") |
|
0 commit comments