-
-
Notifications
You must be signed in to change notification settings - Fork 373
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
tools/testers/pg_prove_tests.sh fails when PostgreSQL port is not passed #1356
Comments
The panic is generated in pgtap, that is not pgRouting code. I don't know your environment, never used OpenBSD.
When I installed postgreSQL12 and had postgreSQL 10 (have different postgresql versions) it happened for example that:
didnt match the same number as
I cant not replicate your problem. or if you have a fork, then maybe you can add an action that replicates your problem. |
after debugging a bit with @afresh1 (our resident perl expert) it turns out this is caused by $PGPORT being empty in
the tests run if i pass the 5432 default port to the script. Some tests fail, some seem to kill the psql server, i'll report on those later on.. |
yeah, some tests crash the server:
same thing with pgtap/pickDeliver/pickDeliver/innerQuery.sql |
once i've removed those two tests killing the server, here's the complete report of the testsuite:
|
remove two tests crashing the postgresql server, and pass the psql port otherwise an empty string is passed to prove which confuses it.. cf pgRouting/pgrouting#1356
@bob-beck
Note that changes between minors add functions So 3.1 has functions that 3.0 does not have and 3.2 has functions that 3.1 does not have. Therefore running 3.1 tests on 3.0 version will create that kind of output other topicBecause of these changes:
Can you check again the tests on openbsd
Of course it would be great to have a way to do a CI on openbsd, we are open for volunteers for that task :-) |
@bob-beck has nothing to do with that, i commited openbsd/ports@d4bd6a538 to cvs and he's managing the cvs to git conversion/github mirror. will try to run all tests on those 3 branches from: but that doesnt look good as 3.0 failed the same (ie server dies):
note that it isnt the test fixed in #1300. |
Can you change the title to: |
The default port when port is not passed will be |
I took the liberty of changing the title. I saw the way you are avoiding the failing tests on openBSD, and the corresponding issue is open. |
thanks ! |
Fixes for #1770 #1760 #1356 on 3.2 * [admin] proting fixes from master * [locale] Updating locale changes * [doc] updating release notes with fixed issues * [tsp][C++] fixing for 20.04 * [tsp][pgtap] testing issue * [doc] updating NEWS and full version results * Porting Fixes for Issue 1770 on 3.2 * [CI] adding action for clang compiler * [C] Ingnoring postgres warnings * [dijkstra] compiling with clang * [common] compiling with clang * [astar] compiles with clang * [ksp] compiles with clang * [tsp] compiles with clang * [alpha_shape] compiles with clang * [tspEuclidean] compiles with clang * [witPoints] compiles with clang * [bellman_ford] compiles with clang * [chinese] compiles with clang * [transitiveClosure] compiles with clang * [breadthFirstSearch] compiles with clang * [components] compiles with clang * [maxflow] pgr_maxflow.hpp compiles with clang * [maxflow] compiles with clang * [lineGraph] compiles with clang * [bdAstar] compiles with clang * [bdDijkstra] compiles with clang * [trsp] compiles with clang * [pickDeliver] compiles with clang * [dijkstra][docqueries] giving a new correct alternate result * Removing a test of a function that does not exist on pgRouting * removing internal query tests that were created when developing contraction and are not used * [tsp][docqueries] Modification of rand() gives new results * roll back changes that affect ksp * [C++] moving pgr_messages.cpp to cpp_common * roll back changes that affect trsp * src/common/basePath_SSEC.cpp compiles with clang * src/trsp/pgr_trspHandler.cpp compiles with clang * [ci][pgtap] adding testing after clang compilation * [doc] adding NEWS & Release notes * Also updating compilation_time and compiler & hash on pgr_full_version * [build] rolling back build-extension-update-files1.pl * [C++] adding some minimal changes from the comments of the PR * Fixing merge conflicts * [clang] Some additional fixes for clang compilation * [doc] updating full version execution for this PR * [locale] updating latest documentation for translations
with 2.6.3, i had no issue running the previous testing suite on OpenBSD. with 3.0.0, i made ports for pgtap and pg_prove, which do pass their own test suite without issue (w/ psql 12).
but running
tools/testers/pg_prove_tests.sh postgres
from the toplevel dir against a throwaway psql instance setup by our ports infrastructure, i get this:from my understanding, the testing db is inited fine, but the pg_prove invocation badly fails. If i remove the --quiet from the pg_prove invocation, same thing without much more details.
i suppose this testing suite is supposed to work ? something missing in my env ?
The text was updated successfully, but these errors were encountered: