Skip to content

Commit beee035

Browse files
committed
PR feedback
1 parent adcdf1b commit beee035

File tree

3 files changed

+20
-6
lines changed

3 files changed

+20
-6
lines changed

.github/workflows/cloud-runner-integrity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
# Commented out: Using LocalStack tests instead of real AWS
1919
# AWS_REGION: eu-west-2
2020
# AWS_DEFAULT_REGION: eu-west-2
21-
AWS_STACK_NAME: game-ci-team-pipelines # Still needed for LocalStack S3 bucket creation
21+
AWS_STACK_NAME: game-ci-team-pipelines # Still needed for LocalStack S3 bucket creation
2222
CLOUD_RUNNER_BRANCH: ${{ github.ref }}
2323
DEBUG: true
2424
PROJECT_PATH: test-project

src/model/cloud-runner/providers/k8s/kubernetes-pods.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,30 @@ class KubernetesPods {
2121
const errorDetails: string[] = [];
2222
errorDetails.push(`Pod: ${podName}`);
2323
errorDetails.push(`Phase: ${phase}`);
24-
24+
2525
if (conditions.length > 0) {
26-
errorDetails.push(`Conditions: ${JSON.stringify(conditions.map(c => ({ type: c.type, status: c.status, reason: c.reason, message: c.message })), undefined, 2)}`);
26+
errorDetails.push(
27+
`Conditions: ${JSON.stringify(
28+
conditions.map((c) => ({ type: c.type, status: c.status, reason: c.reason, message: c.message })),
29+
undefined,
30+
2,
31+
)}`,
32+
);
2733
}
2834

2935
if (containerStatuses.length > 0) {
3036
containerStatuses.forEach((cs, idx) => {
3137
if (cs.state?.waiting) {
32-
errorDetails.push(`Container ${idx} (${cs.name}) waiting: ${cs.state.waiting.reason} - ${cs.state.waiting.message || ''}`);
38+
errorDetails.push(
39+
`Container ${idx} (${cs.name}) waiting: ${cs.state.waiting.reason} - ${cs.state.waiting.message || ''}`,
40+
);
3341
}
3442
if (cs.state?.terminated) {
35-
errorDetails.push(`Container ${idx} (${cs.name}) terminated: ${cs.state.terminated.reason} - ${cs.state.terminated.message || ''} (exit code: ${cs.state.terminated.exitCode})`);
43+
errorDetails.push(
44+
`Container ${idx} (${cs.name}) terminated: ${cs.state.terminated.reason} - ${
45+
cs.state.terminated.message || ''
46+
} (exit code: ${cs.state.terminated.exitCode})`,
47+
);
3648
}
3749
});
3850
}

src/model/cloud-runner/tests/e2e/cloud-runner-end2end-retaining.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,9 @@ describe('Cloud Runner Retain Workspace', () => {
8888
);
8989
try {
9090
await CloudRunnerSystem.Run(
91-
`rm -rf ./cloud-runner-cache/${path.basename(CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute)} || true`,
91+
`rm -rf ./cloud-runner-cache/${path.basename(
92+
CloudRunnerFolders.uniqueCloudRunnerJobFolderAbsolute,
93+
)} || true`,
9294
);
9395
} catch (error: any) {
9496
CloudRunnerLogger.log(`Failed to cleanup workspace: ${error.message}`);

0 commit comments

Comments
 (0)