Repository navigation
Preserve CRUD workload and collector compatibility for internal migration - #1363
Draft
Diamond (diamondpowell) wants to merge 16 commits into
Draft
Diamond (diamondpowell) wants to merge 16 commits into
Diamond (diamondpowell) wants to merge 16 commits into
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
For reviewers only: reply |
Return the successful CLI attempt timestamp and retry flag expected by shared instrumentation. Exercise real instrumentation in create and scale regressions and preserve failure timing. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Propagate the client timeout through create, direct scale, and progressive scale on both SDK and VirtualMachines CLI paths while retaining the low-level 30-minute default. Add timeout-boundary and failed-result publishing regressions. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the historical 1800-second ARM allowance when readiness settings are shorter, extend it for longer requests, and preserve default collector source order. Cover default SDK completion beyond ten minutes, both pool types and all provisioning paths, and nonalphabetic collection ordering. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Consolidate compatibility test setup without removing distinct cases. Reject missing or unreadable legacy source directories before publication, preserving default collection behavior. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
Author
|
Validation —
|
Keep public helper retry booleans and provide timing tuples only at the instrumentation boundary. Restore default collector environment lookup, exceptions, and streaming append behavior while retaining opt-in legacy output. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Legacy collection accepts invalid cloud_info values and exits successfully while overwriting prior results, so it needs JSON-object validation before publishing and a nonzero exit on invalid input.
1 open issue
What changed in this PR
Adds opt-in legacy CRUD result collection for internal ADX consumers while preserving the default collector’s schema and append behavior.
Changes:
- Adds legacy aliases, CLI/environment context, and atomic publication of validated legacy results.
- Aligns VirtualMachines provisioning timing with shared instrumentation and supports longer configured timeouts.
- Expands compatibility and failure-path tests and documents collector behavior.
| File | Description |
|---|---|
| modules/python/utils/provisioning_instrumentation.py | Adds configurable SDK polling timeouts. |
| modules/python/utils/azure_node_pool_cli.py | Adds timed CLI operations while preserving public boolean returns. |
| modules/python/tests/utils/test_provisioning_instrumentation.py | Tests default and custom polling limits. |
| modules/python/tests/utils/test_azure_node_pool_cli.py | Tests retry timing, return compatibility, and timeout forwarding. |
| modules/python/tests/crud/test_main.py | Covers legacy output, default compatibility, validation, and atomic publication. |
| modules/python/tests/clients/test_aks_client_virtual_machines.py | Exercises shared instrumentation and provisioning timeout behavior. |
| modules/python/crud/README.md | Documents legacy collection and provisioning timeouts. |
| modules/python/crud/main.py | Implements opt-in legacy adaptation, context arguments, and atomic output. |
| modules/python/clients/aks_client.py | Extends provisioning limits for longer configured timeouts. |
Review effort: Balanced
Diamond (diamondpowell)
marked this pull request as draft
November 3, 2026 18:24
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>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Add opt-in historical benchmark templates and batch execution while preserving existing workload defaults. Package the templates, retain historical timing aliases, and preserve atomic collector output symlinks with regression coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Match the legacy two-unit poll counter and one-second final sleep, excluding API latency from the counter. Keep the default profile unchanged and cover fast/slow APIs, odd/even budgets, success and timeout for all workload types. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request due to rate limiting. Please try again later. See Usage limits for GitHub Copilot for details.
Wait for the previous legacy Job and its pods to disappear before starting a fresh workload. Keep cleanup failures explicit, preserve default behavior and readiness polling, and document the separate fully managed GPU timeout boundary. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Add optional historical Azure workload and result-format compatibility to the shared CRUD package. Existing callers keep their current defaults.
Callers can select the compatibility profile through the CLI without maintaining their own workload templates, readiness loops, or result conversion.
What changes
--workload-profile legacy-shellprofile for historical Deployment, Job, and StatefulSet workload shapes, images, completion criteria, and polling rules.collect --legacy-outputsupport for historical operation names, timing aliases, and pipeline context while retaining canonical operation data.Default workload templates/execution and default collector schema/append behavior remain unchanged. This PR does not redesign the benchmarks or change ADX tables, ingestion connections, or dashboards.
Compatibility boundaries
The legacy profile defines historical workload and polling contracts. It does not change the default profile's behavior.
timeuses historical readiness timing when recorded; canonicaldurationremains the overall operation metric.--step-timeout-second polling allowance; errors or timeout fail the operation without submitting a new Job. Default Job execution is unchanged.Changed-file guide
The 16-file diff includes six regression-test files and documentation. The largest test diff protects compatibility and publication failure paths; it is not an additional CRUD implementation.
Testing
main(d5f9b06): 18 scenarios passed across baseline source, candidate source, and the extracted candidate wheel. Exercised existing YAML commands, real CLI dispatch, signature-checked CRUD calls, and real default collection/append for AWS GPU (on-demand/spot), Azure GPU (unmanaged/managed MIG), and Machine API (individual/batch). Calls and operation output matched the baseline. Cloud operations and GPU-plugin calls were mocked; this is contract coverage, not live AWS/GPU/Machine validation. All six workload templates were present in the wheel byte-for-byte.