mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-13 21:53:43 +01:00
[github] code spaces: add extra-split-tests.json (#33015)
* [github] code spaces: add extra-split-tests.json * [github] address review feedback * [github] add missing bind mount * [monorepo] mount split test configs with :ro * [monorepo] only mount backup/split-tests into web GitOrigin-RevId: 6334a44599a2c8bb79bf1ad698e656c8bee3992b
This commit is contained in:
@@ -139,7 +139,7 @@ async function purgeNewUsers() {
|
||||
)
|
||||
}
|
||||
|
||||
export async function provisionSplitTests(merge = false) {
|
||||
export async function provisionSplitTests(merge = false, extraSplitTests = []) {
|
||||
const backup = Path.join(
|
||||
MONOREPO,
|
||||
'backup',
|
||||
@@ -159,7 +159,8 @@ export async function provisionSplitTests(merge = false) {
|
||||
// Imported from production via https://www.overleaf.com/admin/split-test -> "Copy all split tests" -> "Copy for E2E test setup"
|
||||
const SPLIT_TESTS = JSON.parse(
|
||||
await fs.promises.readFile(
|
||||
Path.join(MONOREPO, 'tools/saas-e2e/split-tests.json')
|
||||
Path.join(MONOREPO, 'tools/saas-e2e/split-tests.json'),
|
||||
'utf-8'
|
||||
)
|
||||
)
|
||||
// Add WIP split test, we can update the JSON blob once this is in production
|
||||
@@ -188,6 +189,9 @@ export async function provisionSplitTests(merge = false) {
|
||||
} else {
|
||||
await SplitTestManager.replaceSplitTests(SPLIT_TESTS)
|
||||
}
|
||||
if (extraSplitTests.length > 0) {
|
||||
await SplitTestManager.mergeSplitTests(extraSplitTests, false)
|
||||
}
|
||||
}
|
||||
|
||||
async function checkNoTableScan() {
|
||||
|
||||
Reference in New Issue
Block a user