Skip to content

Add reusable runner-group result fetching step - #1373

Merged
Liyu Ma (liyu-ma) merged 5 commits into
v2from
maliyu/kperf-runner-group-result-helper
Nov 6, 2026
Merged

Liyu Ma (liyu-ma) merged 5 commits into
v2from
maliyu/kperf-runner-group-result-helper

Conversation

@liyu-ma

@liyu-ma Liyu Ma (liyu-ma) commented Nov 5, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add FetchKperfRunnerGroupResult(displayName, resultPath, initialDelaySeconds, timeoutInMinutes) to the kperf step utilities.
  • Print native runner-group results to ADO step logs; optionally save a copy when resultPath is provided (default: empty).
  • Retry failed retrievals or file writes up to five total attempts, with 10-second delays between attempts.
  • Use the helper in cluster-health scenarios, preserving existing result paths and display names, and regenerate pipeline YAML.

Behavior

  • Wait for results with kperf rg result --wait.
  • Fetch immediately by default (initialDelaySeconds=0). The cluster-health pipeline explicitly passes 300 to preserve its five-minute delay. Tune this delay based on the known workload duration to minimise exposure to network disruption while fetching results over a port-forward connection. Negative values are rejected.
  • Bound the entire step, including the initial delay and retries, with a configurable ADO timeout (timeoutInMinutes=15 by default).
  • Preserve the existing continueOnError=True behavior.

Validation

  • Compiled the cluster-health and configmaps consumer pipelines with KCL 0.13; configmaps output is unchanged.
  • Verified all 81 generated cluster-health result steps preserve their result paths, initial delay, and retry behavior, with --wait and the explicit step timeout added.
  • Tested omitted/empty result paths, file output (including paths with spaces), positional parameter ordering, custom display names, initial delays, and step timeouts.
  • Exercised retrieval retries, retry exhaustion, and file-write failures with mocked commands; checked generated Bash syntax.
  • Test run with Azure DevOps pipeline.

Liyu Ma (liyu-ma) and others added 5 commits November 6, 2026 10:44
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Preserve cluster-health result paths and document initial delay tuning.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Set the cluster-health result delay explicitly to 300 seconds.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@liyu-ma
Liyu Ma (liyu-ma) force-pushed the maliyu/kperf-runner-group-result-helper branch from 4cb3653 to af3c7fc Compare November 6, 2026 00:45
@liyu-ma
Liyu Ma (liyu-ma) merged commit f0aa910 into v2 Nov 6, 2026
6 checks passed
@liyu-ma
Liyu Ma (liyu-ma) deleted the maliyu/kperf-runner-group-result-helper branch November 6, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants