The upstream elasticsearch bug is fixed but not released yet. In the mean time, I think we can pin the version of ES in the jenkins docker image to one that doesn't have the bug (which I think @ardumont wants to do).
And as usual with this kind of diff, i'm unsure how to properly test it.
I just ensured through vagrant that i could indeed use the apt-get install -y elasticsearch=7.9.3
stanza and it worked, beats me how to do better though.
There is a check done at the end of the build which checks for upgrades and fails if there are some.
In that case, there is an upgrade possible from 7.9.3 to 7.10.0 which we don't want (we do want 7.9.3).
So the solution is to actually add a pin configuration version on 7.9.3 so version > 7.10.0 are ignored by apt.
So swh-search build is back to green with ^
And the pile of diffs on search as well
\m/
Given that the pinning is only excluding the 7.10.0, as soon as the 7.10.1
(assuming it's the release version with the fix), this should continue working with that version onwards.