Refine grab command to only use numbered test servers and update help documentation
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user