Refine grab command to only use numbered test servers and update help documentation

This commit is contained in:
balthazarbk
2026-05-20 13:19:14 +02:00
parent 82cc1bd68f
commit a978b8fdf9
2 changed files with 3 additions and 3 deletions
@@ -13,7 +13,7 @@ import { getTestStacksInfo, Stack } from '../../../../common/testservers';
import { getIssueFromRepo } from '../../../../services/github_rest';
const { spawn } = require('child_process');
const EXCLUDED_NAMED_STACKS = ['photowall-test-ingrid', 'photowall-test-usa'];
const TEST_STACK_NAME_PATTERN = /^photowall-test-\d+$/;
const EXCLUDED_STATUSES = [
'UPDATE_FAILED',
'CREATE_FAILED',
@@ -148,7 +148,7 @@ module.exports = {
const now = Date.now();
const candidates: Candidate[] = [];
for (const stack of testStacks) {
if (EXCLUDED_NAMED_STACKS.includes(stack.name)) continue;
if (!TEST_STACK_NAME_PATTERN.test(stack.name)) continue;
if (EXCLUDED_STATUSES.includes(stack.status)) continue;
const updatedTs = new Date(stack.updated).getTime();