Ensure the elasticsearch indexes are initialized before the first request
Closed
requested to merge generated-differential-D5193-source into generated-differential-D5193-target
1 unresolved thread
- Use a flask hook to be sure the index is initialized before performing any action
- Fix the server tests to avoid a side effect with the global application configuration not reset between 2 tests
Related to swh/infra/sysadm-environment#3076 (closed)
Migrated from D5193 (view on Phabricator)
Merge request reports
Activity
Filter activity
Build is green
Patch application report for D5193 (id=18571)
Rebasing onto 7c795a60...
Current branch diff-target is up to date.
Changes applied before test
commit f5f9b861b748f38d987cf3f493e9dccc79d5f072 Author: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Tue Mar 2 10:30:16 2021 +0100 Ensure the elasticsearch indexes are initialized before the first request - Use a flask hook to be sure the index is initialiazed before performing any action - Fix the server tests to avoid a side effect with the global application configuration not reset between 2 tests Related to swh/infra/sysadm-environment#3076
See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/101/ for more details.
11 11 12 12 from swh.core.api import RPCServerApp 13 13 from swh.core.config import load_from_envvar 14 from swh.search.api import server 14 15 from swh.search.api.server import load_and_check_config, make_app_from_configfile 15 16 16 17 18 def teardown_function(): 19 # Ensure there is no configuration loaded from a previous test 20 server.api_cfg = None Some references in the commit message have been migrated:
- T3076 is now swh/infra/sysadm-environment#3076 (closed)
Build is green
Patch application report for D5193 (id=18572)
Rebasing onto 7c795a60...
Current branch diff-target is up to date.
Changes applied before test
commit 9e0db2bd4fd0713fd61ce6c391ce5190ba3207e3 Author: Vincent SELLIER <vincent.sellier@softwareheritage.org> Date: Tue Mar 2 10:30:16 2021 +0100 Ensure the elasticsearch indexes are initialized before the first request - Use a flask hook to be sure the index is initialized before performing any action - Fix the server tests to avoid a side effect with the global application configuration not reset between 2 tests Related to swh/infra/sysadm-environment#3076
See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/102/ for more details.
Please register or sign in to reply