-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pg15] test: add yb_use_hash_splitting_by_default=false
Summary: For ported regress tests, set yb_use_hash_splitting_by_default=false by default. Borrow off the existing BasePgRegressTestSequentialYbrowid class to add the additional setting. Since this class now sets two different flags, rename it to BasePgRegressTestPorted. Add documentation about its purpose as well. Fix some tests that fail due to this option change: - split yb_table_serial_schedule to yb_table_schedule and yb_pg_table_schedule. Split the Java test similarly. Update some test output where appropriate. - split yb_pg_types_udt_serial_schedule to yb_types_udt_serial_schedule and yb_pg_types_udt_serial_schedule. Split the Java test similarly. In the future, workarounds from the lack of this can be reverted, such as the explicit setting of "ASC" for key constraints in yb_dep_onek2 and the addition of ORDER BY due to lack of ASC in yb_pg_rowsecurity. Test Plan: On Almalinux 8: #!/usr/bin/env bash set -eu ./yb_build.sh fastdebug --gcc11 grep JAVA pg15_tests/passing_tests.tsv | grep TestPgRegress | pg15_tests/run_tests.sh Jenkins: rebase: pg15, test regex: TestPgRegress Reviewers: aagrawal, fizaa, tfoucher Reviewed By: fizaa Subscribers: yql Differential Revision: https://phorge.dev.yugabyte.com/D36352
- Loading branch information
Showing
22 changed files
with
141 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
java/yb-pgsql/src/test/java/org/yb/pgsql/TestPgRegressPgTable.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) YugabyteDB, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
// in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under the License | ||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
// or implied. See the License for the specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
package org.yb.pgsql; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.yb.util.YBTestRunnerNonTsanOnly; | ||
|
||
/** | ||
* Runs the pg_regress test suite on YB code. | ||
*/ | ||
@RunWith(value=YBTestRunnerNonTsanOnly.class) | ||
public class TestPgRegressPgTable extends BasePgRegressTestPorted { | ||
@Override | ||
public int getTestMethodTimeoutSec() { | ||
return 1800; | ||
} | ||
|
||
@Test | ||
public void schedule() throws Exception { | ||
runPgRegressTest("yb_pg_table_schedule"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
java/yb-pgsql/src/test/java/org/yb/pgsql/TestPgRegressPgTypesUDT.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// Copyright (c) YugabyteDB, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except | ||
// in compliance with the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software distributed under the License | ||
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express | ||
// or implied. See the License for the specific language governing permissions and limitations | ||
// under the License. | ||
// | ||
package org.yb.pgsql; | ||
|
||
import org.junit.Test; | ||
import org.junit.runner.RunWith; | ||
import org.yb.YBTestRunner; | ||
|
||
/** | ||
* Runs the pg_regress test suite on YB code. | ||
*/ | ||
@RunWith(value=YBTestRunner.class) | ||
public class TestPgRegressPgTypesUDT extends BasePgRegressTestPorted { | ||
@Override | ||
public int getTestMethodTimeoutSec() { | ||
return 1800; | ||
} | ||
|
||
@Test | ||
public void schedule() throws Exception { | ||
runPgRegressTest("yb_pg_types_udt_serial_schedule"); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# src/test/regress/yb_pg_table_schedule | ||
# This schedule is for ported tests only. | ||
|
||
# Dependencies for yb_pg_alter_table | ||
test: yb_dep_onek | ||
test: yb_dep_part_test_int4_ops | ||
# TODO(jason): yb_pg_insert is no longer a dependency, so move it to | ||
# yb_pg_dml_serial_schedule. (Note: yb_dep_part_test_int4_ops is a dependency | ||
# for yb_pg_insert.) | ||
test: yb_pg_insert | ||
|
||
test: yb_pg_create_table_like | ||
test: yb_pg_alter_table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# src/test/regress/yb_table_schedule | ||
# This schedule is for non-ported tests only. | ||
|
||
test: yb_alter_table | ||
test: yb_alter_table_rewrite | ||
test: yb_create_table | ||
test: yb_drop_table |
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
src/postgres/src/test/regress/yb_types_udt_serial_schedule
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# src/test/regress/yb_types_udt_serial_schedule | ||
# This schedule is for non-ported tests only. | ||
|
||
# Dependency for `yb_base_type` | ||
test: yb_create_function | ||
|
||
# Overall UDTs | ||
test: yb_create_type | ||
test: yb_alter_type | ||
|
||
# Base types | ||
test: yb_base_type | ||
|
||
# Operator Class | ||
test: yb_operator_class |