Port flakefiles from previous version
Created by: jhchabran
https://github.com/sourcegraph/sourcegraph/pull/35633 introduced a backward incompatible change into the codetree, but the flakefile was only added for 3.39.0, not 3.40.0. This change was meant to be released in 3.41.0.
Test plan
Green Backcompat tests