Skip to content

Commit 8c7475f

Browse files
committed
chore: log an info message before polling upstream for data
Ensures that we don't trigger CircleCI's "kill job because it didn't output anything" timeout, and gives us some visibility into how long it takes for a workload to appear in the upstream.
1 parent 52e6e8f commit 8c7475f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/helpers/kubernetes-upstream.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export async function validateUpstreamStoredData(
2525
remainingChecks: number = maxPodChecks,
2626
): Promise<boolean> {
2727
while (remainingChecks > 0) {
28+
console.log(`Pinging upstream for existing data (${remainingChecks} checks remaining)...`);
2829
const responseBody = await getUpstreamResponseBody(relativeUrl);
2930
const workloads: IWorkloadLocator[] | undefined = responseBody.workloads;
3031
const result = validatorFn(workloads);
@@ -43,6 +44,7 @@ export async function validateUpstreamStoredMetadata(
4344
remainingChecks: number = maxPodChecks,
4445
): Promise<boolean> {
4546
while (remainingChecks > 0) {
47+
console.log(`Pinging upstream for existing metadata (${remainingChecks} checks remaining)...`);
4648
const responseBody = await getUpstreamResponseBody(relativeUrl);
4749
const workloadInfo: IWorkloadMetadata | undefined =
4850
responseBody.workloadInfo;

0 commit comments

Comments
 (0)