Skip to content

Commit 822ba80

Browse files
committed
clean-upls
2 parents df2e14a + 7b9cb33 commit 822ba80

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/qiita-ci.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ jobs:
195195
export QIITA_JOB_SCHEDULER_EPILOGUE=`/path/to/epilogue/file`
196196
export REDBIOM_HOST="http://localhost:7379"
197197
198-
# nosetests $COVER_PACKAGE --with-doctest --with-coverage --with-timer -v --cover-package=${COVER_PACKAGE// / --cover-package=} -e 'test_submit_EBI_parse_EBI_reply_failure' -e 'test_full_submission'
198+
nosetests $COVER_PACKAGE --with-doctest --with-coverage --with-timer -v --cover-package=${COVER_PACKAGE// / --cover-package=} -e 'test_submit_EBI_parse_EBI_reply_failure' -e 'test_full_submission'
199199
200200
# killing the qiita server to run the next commands
201201
QIITA_PID=`cat /tmp/supervisord.pid`
@@ -206,24 +206,19 @@ jobs:
206206
if [[ "$COVER_PACKAGE" != *"qiita_db"* ]]; then
207207
# 1. testing that we can add some "dummy" studies to the db via
208208
# CLI
209-
# test_data_studies/commands.sh;
209+
test_data_studies/commands.sh;
210210
# 2. making sure that all qiita cron jobs complete as expected
211-
# all-qiita-cron-job;
211+
all-qiita-cron-job;
212212
# 3. making sure than a production system has the expected rows
213213
# in all our tables; steps: a. drop test db, b. change $QIITA_CONFIG_FP
214214
# c. create new production system, c. count rows in the db.
215-
# apt-get install --yes --no-install-recommends postgresql-client
216-
217215
qiita-env drop;
218216
cp $QIITA_CONFIG_FP ${QIITA_CONFIG_FP}.bk
219217
sed 's/TEST_ENVIRONMENT = TRUE/TEST_ENVIRONMENT = FALSE/g' ${QIITA_CONFIG_FP}.bk > $QIITA_CONFIG_FP;
220218
qiita-env make --no-load-ontologies;
221219
222-
echo "######################"
223-
echo "###### postgres ######"
224-
echo "######################"
225-
pgport=${{ job.services.postgres.ports[5432] }}
226220
export PGPASSWORD=postgres
221+
pgport=${{ job.services.postgres.ports[5432] }}
227222
row_counts=`psql -h localhost -U postgres -d qiita_test -p $pgport -c "SELECT SUM(c.reltuples) FROM pg_class c JOIN pg_namespace n on n.oid = c.relnamespace WHERE n.nspname = 'qiita' AND c.relkind = 'r' AND n.nspname NOT IN ('information_schema', 'pg_catalog');"`
228223
if [[ $row_counts != *" 0 "* ]]; then
229224
echo "***********";

qiita_db/environment_manager.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,8 @@ def drop_environment(ask_for_confirmation):
280280
# environment and clean up
281281
if 'UNDEFINED_TABLE. MSG: relation "settings"' in str(e):
282282
is_test_environment = True
283+
else:
284+
raise
283285
qdb.sql_connection.TRN.close()
284286

285287
if is_test_environment:

0 commit comments

Comments
 (0)