[github] code spaces: tweaks from initial feedback (#32834)

* [github] code spaces: add more standard users with a common password

* [github] code spaces: automatically share dev-env with Overleaf org

* [github] code spaces: merge split tests rather than replacing them

* [github] code spaces: ts-check the setup script in web

GitOrigin-RevId: 1a86ac7e0304d47e68290352f58a0e193eed1d77
This commit is contained in:
Jakob Ackermann
2026-04-16 08:06:10 +00:00
committed by Copybot
parent 233fb7841e
commit 5a5763884e
3 changed files with 105 additions and 31 deletions
+10 -4
View File
@@ -85,8 +85,10 @@ async function deleteUser(email) {
await UserDeleter.promises.expireDeletedUser(user._id)
}
export async function createProjectWithOldHistoryId(userId) {
const projectName = 'old history id'
export async function createProjectWithOldHistoryId(
userId,
projectName = 'old history id'
) {
const historyId = parseInt(
await HistoryManager.promises.initializeProject(),
10
@@ -137,7 +139,7 @@ async function purgeNewUsers() {
)
}
export async function provisionSplitTests() {
export async function provisionSplitTests(merge = false) {
const backup = Path.join(
MONOREPO,
'backup',
@@ -181,7 +183,11 @@ export async function provisionSplitTests() {
],
})
console.log(`> Importing ${SPLIT_TESTS.length} split-tests from production.`)
await SplitTestManager.replaceSplitTests(SPLIT_TESTS)
if (merge) {
await SplitTestManager.mergeSplitTests(SPLIT_TESTS, false)
} else {
await SplitTestManager.replaceSplitTests(SPLIT_TESTS)
}
}
async function checkNoTableScan() {