Page MenuHomeSoftware Heritage

Ensure the elasticsearch indexes are initialized before the first request
ClosedPublic

Authored by vsellier on Mar 3 2021, 6:03 PM.

Details

Summary
  • 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 T3076

Diff Detail

Repository
rDSEA Archive search
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D5193 (id=18571)

Rebasing onto 7c795a603f...

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 T3076

See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/101/ for more details.

  • fix wrong error log level
  • fix typo on the commit message

Build is green

Patch application report for D5193 (id=18572)

Rebasing onto 7c795a603f...

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 T3076

See https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/102/ for more details.

ardumont added a subscriber: ardumont.
ardumont added inline comments.
swh/search/tests/test_server.py
19

til, great.

This revision is now accepted and ready to land.Mar 3 2021, 6:22 PM