HomeSoftware Heritage

tests/elasticsearch: Catch painless script errors and pretty print them

Description

tests/elasticsearch: Catch painless script errors and pretty print them

Debugging update painless script is hard as errors are returned in a
not really readable JSON format.

To gain debuggig time, wrap search.origin_update calls when running
elasticsearch tests in order to catch painless script errors and
pretty print them.

Tests will also immediatly fail when such errors are detected.

Details

Provenance
anlambertAuthored on Jun 10 2021, 7:42 PM
anlambertPushed on Jun 11 2021, 12:41 PM
Differential Revision
D5853: tests/elasticsearch: Catch painless script errors and pretty print them
Parents
rDSEA3e129a3f48ee: mypy: Fix errors with release >= v0.900
Branches
Unknown
Tags
Unknown
Build Status
Buildable 21931
Build 34109: test-and-buildJenkins console · Jenkins