Page MenuHomeSoftware Heritage

test_api_client.py: Also run tests from test_elasticsearch.py when possible
ClosedPublic

Authored by vlorentz on Mar 25 2022, 4:56 PM.

Details

Summary

In addition to test_search.py, which do not include search QL tests

Depends on D7436 (which fixes a bug that would be caught by one of these tests).

Diff Detail

Repository
rDSEA Archive search
Branch
master
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 27836
Build 43577: Phabricator diff pipeline on jenkinsJenkins console · Jenkins
Build 43576: arc lint + arc unit

Event Timeline

Build has FAILED

Patch application report for D7435 (id=26919)

Rebasing onto d273b070b0...

First, rewinding head to replay your work on top of it...
Applying: test_api_client.py: Also run tests from test_elasticsearch.py when possible
Changes applied before test
commit 772cab9045114e7a1cd77df366339b167391cd9a
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Mar 25 16:55:49 2022 +0100

    test_api_client.py: Also run tests from test_elasticsearch.py when possible
    
    In addition to test_search.py, which do not include search QL tests

Link to build: https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/314/
See console output for more information: https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/314/console

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 25 2022, 5:00 PM
Harbormaster failed remote builds in B27836: Diff 26919!

Build has FAILED

Patch application report for D7435 (id=26921)

Rebasing onto d273b070b0...

First, rewinding head to replay your work on top of it...
Applying: test_api_client.py: Also run tests from test_elasticsearch.py when possible
Changes applied before test
commit 91b594bb0da5055bf8f54a940a3476c20b27197d
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Mar 25 16:55:49 2022 +0100

    test_api_client.py: Also run tests from test_elasticsearch.py when possible
    
    In addition to test_search.py, which do not include search QL tests

Link to build: https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/316/
See console output for more information: https://jenkins.softwareheritage.org/job/DSEA/job/tests-on-diff/316/console

Harbormaster returned this revision to the author for changes because remote builds failed.Mar 25 2022, 5:22 PM
Harbormaster failed remote builds in B27838: Diff 26921!

Build is green

Patch application report for D7435 (id=26925)

Could not rebase; Attempt merge onto d273b070b0...

Merge made by the 'recursive' strategy.
 swh/search/api/server.py               |   6 +
 swh/search/tests/test_api_client.py    |   6 +-
 swh/search/tests/test_elasticsearch.py | 207 +++++++++++++++++----------------
 3 files changed, 115 insertions(+), 104 deletions(-)
Changes applied before test
commit 6bf7dbe1898cd9029b3df015c32fcc29fe8945b5
Merge: d273b07 9fd4e00
Author: Jenkins user <jenkins@localhost>
Date:   Fri Mar 25 16:32:47 2022 +0000

    Merge branch 'diff-target' into HEAD

commit 9fd4e0097ab88909cda05f3acb8deae292eec9eb
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Mar 25 16:55:49 2022 +0100

    test_api_client.py: Also run tests from test_elasticsearch.py when possible
    
    In addition to test_search.py, which do not include search QL tests

commit b054bf85666fb3ccea0e6e0b1b76dd1633efd62e
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Mar 25 16:56:51 2022 +0100

    server: Return SearchQuerySyntaxError as 400 instead of 500
    
    It is caused by a client error; and raising it as 500 prevents the RPC client
    from re-raising it using the right class.

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

Build is green

Patch application report for D7435 (id=26934)

Rebasing onto 5483a038bb...

Current branch diff-target is up to date.
Changes applied before test
commit c0527d17b3bfac4c5414694eb4f22761973f3707
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Mar 25 16:55:49 2022 +0100

    test_api_client.py: Also run tests from test_elasticsearch.py when possible
    
    In addition to test_search.py, which do not include search QL tests

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

This revision is now accepted and ready to land.Mar 28 2022, 1:41 PM