You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hawq.apache.org by sansanichfb <gi...@git.apache.org> on 2016/02/17 01:48:39 UTC
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
GitHub user sansanichfb opened a pull request:
https://github.com/apache/incubator-hawq/pull/347
HAWQ-400. Support expected exit codes for regression tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/apache/incubator-hawq HAWQ-400
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-hawq/pull/347.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #347
----
commit c74ef60b2adf0b73ce7ed365d2ac738111ee330d
Author: Oleksandr Diachenko <od...@pivotal.io>
Date: 2016-02-13T05:07:33Z
HAWQ-400. Support expected exit codes for regression tests.
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by GodenYao <gi...@git.apache.org>.
Github user GodenYao commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53213580
--- Diff: src/test/regress/pg_regress.c ---
@@ -1333,32 +1455,70 @@ wait_for_tests(PID_TYPE * pids, int *statuses, char **names, int num_tests)
}
/*
- * report nonzero exit code from a test process
+ * Print test status depending on differences, actual, expected statuses
*/
static void
-log_child_failure(int exitstatus)
+print_test_status(bool differ, int actual_status, int expected_status, double diff_secs)
--- End diff --
put a little bit more description of differ variable
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by kavinderd <gi...@git.apache.org>.
Github user kavinderd commented on the pull request:
https://github.com/apache/incubator-hawq/pull/347#issuecomment-185045024
+1
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by GodenYao <gi...@git.apache.org>.
Github user GodenYao commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53214666
--- Diff: src/test/regress/pg_regress.c ---
@@ -1672,19 +1800,9 @@ run_single_test(const char *test, test_function tfunc)
differ |= newdiff;
}
- if (differ)
- {
- status(_("FAILED"));
- fail_count++;
- }
- else
- {
- status(_("ok"));
- success_count++;
- }
+ int expected_status = get_expected_status(test);
- if (exit_status != 0)
- log_child_failure(exit_status);
+ print_test_status(differ, exit_status, expected_status, -1);
--- End diff --
-1?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by shivzone <gi...@git.apache.org>.
Github user shivzone commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53107793
--- Diff: src/test/regress/pg_regress.c ---
@@ -41,6 +41,14 @@ typedef struct _resultmap
struct _resultmap *next;
} _resultmap;
+/*linked list of statuses for tests*/
+typedef struct _statuslist
+{
+ char *test;
+ int status;
--- End diff --
fix indentation
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by shivzone <gi...@git.apache.org>.
Github user shivzone commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53107862
--- Diff: src/test/regress/GNUmakefile ---
@@ -143,7 +143,7 @@ installcheck-parallel: all upg2-setup ugpart-setup
$(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=$(srcdir)/parallel_schedule --srcdir=$(abs_srcdir)
installcheck-good: all ./current_good_schedule upg2-setup ugpart-setup
- $(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=./current_good_schedule --srcdir=$(abs_srcdir)
+ $(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=./current_good_schedule --srcdir=$(abs_srcdir) --expected-statuses-file=expected_statuses
--- End diff --
can we instead call it expected-status-file. it will be implicit that this file will contain one status for each test
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by sansanichfb <gi...@git.apache.org>.
Github user sansanichfb commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53240501
--- Diff: src/test/regress/pg_regress.c ---
@@ -1672,19 +1800,9 @@ run_single_test(const char *test, test_function tfunc)
differ |= newdiff;
}
- if (differ)
- {
- status(_("FAILED"));
- fail_count++;
- }
- else
- {
- status(_("ok"));
- success_count++;
- }
+ int expected_status = get_expected_status(test);
- if (exit_status != 0)
- log_child_failure(exit_status);
+ print_test_status(differ, exit_status, expected_status, -1);
--- End diff --
Updated
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by sansanichfb <gi...@git.apache.org>.
Github user sansanichfb commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53245058
--- Diff: src/test/regress/GNUmakefile ---
@@ -143,7 +143,7 @@ installcheck-parallel: all upg2-setup ugpart-setup
$(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=$(srcdir)/parallel_schedule --srcdir=$(abs_srcdir)
installcheck-good: all ./current_good_schedule upg2-setup ugpart-setup
- $(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=./current_good_schedule --srcdir=$(abs_srcdir)
+ $(pg_regress_call) --psqldir=$(PSQLDIR) --schedule=./current_good_schedule --srcdir=$(abs_srcdir) --expected-statuses-file=expected_statuses
--- End diff --
discussed in person, will stick to plural form.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by sansanichfb <gi...@git.apache.org>.
Github user sansanichfb commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53240486
--- Diff: src/test/regress/pg_regress.c ---
@@ -1333,32 +1455,70 @@ wait_for_tests(PID_TYPE * pids, int *statuses, char **names, int num_tests)
}
/*
- * report nonzero exit code from a test process
+ * Print test status depending on differences, actual, expected statuses
*/
static void
-log_child_failure(int exitstatus)
+print_test_status(bool differ, int actual_status, int expected_status, double diff_secs)
--- End diff --
Updated
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by shivzone <gi...@git.apache.org>.
Github user shivzone commented on the pull request:
https://github.com/apache/incubator-hawq/pull/347#issuecomment-185460070
+1
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by sansanichfb <gi...@git.apache.org>.
Github user sansanichfb commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53113151
--- Diff: src/test/regress/pg_regress.c ---
@@ -2025,20 +2144,13 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
case 18:
split_to_stringlist(strdup(optarg), ", ", &extraroles);
break;
- case 19:
- initfile = strdup(optarg);
- break;
- case 20:
- tablespace = malloc(11 + strlen(optarg) + 1);
--- End diff --
Cleaned up unused code, there is no references on "tablespace" var.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by sansanichfb <gi...@git.apache.org>.
Github user sansanichfb commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/347#discussion_r53113635
--- Diff: src/test/regress/pg_regress.c ---
@@ -1931,8 +2050,8 @@ regression_main(int argc, char *argv[], init_function ifunc, test_function tfunc
{"psqldir", required_argument, NULL, 16},
{"srcdir", required_argument, NULL, 17},
{"create-role", required_argument, NULL, 18},
- {"init-file", required_argument, NULL, 19},
--- End diff --
Fixed index duplication.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by sansanichfb <gi...@git.apache.org>.
Github user sansanichfb closed the pull request at:
https://github.com/apache/incubator-hawq/pull/347
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
[GitHub] incubator-hawq pull request: HAWQ-400. Support expected exit codes...
Posted by sansanichfb <gi...@git.apache.org>.
Github user sansanichfb commented on the pull request:
https://github.com/apache/incubator-hawq/pull/347#issuecomment-185471693
Merged to master
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---