[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69ARPMK4GHCD723YBTWYYJS":3,"skill-same:01M69ARPMK4GHCD723YBTWYYJS":90},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":57,"commitSha":58,"skillDirectory":59,"forksCount":60,"repositoryHtmlUrl":61,"repositoryHomepageUrl":17,"ownerHtmlUrl":62,"ownerBlogUrl":63,"ownerDescription":64,"updatedAt":65,"install":66,"resources":79},"01M69ARPMK4GHCD723YBTWYYJS","e2e-tests","Physical AI 云端 E2E 测试自动化","Autonomously launch, monitor, retry, and report all Physical AI cloud E2E tests across independent Azure ML and OSMO GPU infrastructure.","自主启动、监控、重试并报告跨独立 Azure ML 和 OSMO GPU 基础设施的所有 Physical AI 云端 E2E 测试。","microsoft\u002Fphysical-ai-toolchain","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69ARCAV4WR03MSZSQPHZ2S8",138,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fe2e-tests\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"tests","e2e tests","e2e","kubectl","retry","with","physical","across","azure cli","jq","Bash","cli","cloud","gpu","report","monitor","ml","azure","launch","linux","2026-11-10 10:12:30",false,"---\nname: e2e-tests\ndescription: \"Autonomously launch, monitor, retry, and report all Physical AI cloud E2E tests across independent Azure ML and OSMO GPU infrastructure.\"\ncompatibility: \"Linux with Bash 4+, jq, pytest, Azure CLI, Terraform, kubectl, OSMO CLI, and GNU timeout.\"\n---\n\n\u003C!-- cspell:ignore amlcompute azureml chdir finalizers finetune nodepool pythonhosted pytest worktree -->\n\n# Cloud E2E Tests\n\nRun detached cloud E2E test attempts through the repository-owned launcher. The launcher uses pytest collection to discover every test module marked `e2e`. It then exits and hands Copilot every command, PID, log, result, and resubmission handle needed to babysit the runs.\n\nResolve the launcher from the active checkout:\n\n```bash\nREPO_ROOT=\"$(git rev-parse --show-toplevel)\"\nDRIVER=\"$REPO_ROOT\u002F.github\u002Fskills\u002Fe2e-tests\u002Fscripts\u002Frun-e2e-tests.sh\"\n```\n\n## Operating Contract\n\nExecute the workflow autonomously. Do not ask the user to run commands, monitor jobs, classify failures, or request routine retries.\n\n1. Read Terraform outputs before any Azure, Kubernetes, OSMO, or pytest operation.\n2. Stop if `terraform output -json` is unavailable, empty, stale against live resource IDs, or missing a required output. Do not infer deployed resource names from conventions, the current Kubernetes context, Azure resource enumeration, or remembered environments.\n3. Validate Azure authentication, storage, and Azure ML compute before submitting tests. Validate OSMO authentication, the gateway, and AKS GPU pools when the selected subset includes OSMO tests.\n4. Launch the requested test files concurrently, or every discovered default test when no subset is requested. Azure ML and OSMO use independent compute and do not contend with each other.\n5. Capture `E2E_HANDLE` and take ownership of monitoring. The launcher never retries or diagnoses a completed attempt.\n6. For every non-pass, inspect the exact command and complete output. Resubmit a classified transient failure only after evidence shows a supported remedy or changed cloud condition. Investigate other failures, correct clear in-scope defects, validate locally, then resubmit only the affected test.\n7. Treat `PASSED` as success. Stop automatic submissions and report the unresolved result when the latest attempt repeats the same terminal error, cloud state, and evidence without a supported intervention or observable progress. Never alter Terraform or node-pool configuration to work around unavailable GPU capacity.\n8. Report each test's commands, attempts, cloud job or workflow identifiers, durations, and final state. Run handle cleanup after all tests reach terminal states.\n\nEach handle owns an `XDG_CONFIG_HOME` under its run directory. OSMO reads and rewrites `login.yaml` in that directory, so every launch, detached attempt, resubmission, and diagnostic command must load the handle's non-executable `config.json`.\n\nThe launcher accepts only a handle directory owned by the current user with mode `700`; private configuration and process records must be owned by the current user with mode `600` and must not be symbolic links. Never use the global `~\u002F.config\u002Fosmo\u002Flogin.yaml` while an E2E handle is active; concurrent deployments would redirect each other's CLI commands.\n\n## Local Dependency Bootstrap\n\nSynchronize the frozen local environment before launching attempts. Use the package index configured for the current development environment:\n\n```bash\ncd \"$REPO_ROOT\"\nuv sync --frozen --no-progress\n```\n\nDo not treat a direct `files.pythonhosted.org` connection failure as a cloud-test failure. Bootstrap through the configured index, then resubmit the affected terminal attempts.\n\n## Hugging Face Prerequisite\n\n`tests\u002Fe2e\u002Ftest_e2e_aml_vla_pi0_training.py` requires `HF_TOKEN` with access to the gated `google\u002Fpaligemma-3b-pt-224` model. Export the token before a default full run or before selecting that test explicitly. The requirement does not apply when an explicit subset omits tests marked `requires_hf_token`.\n\nNever write the token to `config.json`, `command.sh`, logs, manifests, or chat output. Preserve it only in the process environment. A missing or empty token is a non-retryable client-side setup failure: the test must fail before Azure fixture resolution, dataset staging, or job submission.\n\n## Required Terraform Outputs\n\nRun this first:\n\n```bash\nterraform -chdir=infrastructure\u002Fterraform output -json |\n  jq '{\n    resource_group,\n    aks_cluster,\n    azureml_workspace,\n    storage_account,\n    node_pools\n  }'\n```\n\nThis projection is safe for operator and Copilot output. Do not print or paste the unfiltered JSON because Terraform includes values marked `sensitive`, including credentials and connection details. The launcher stores the complete output only in the handle's owner-only `terraform-output.json`.\n\nWhen the current feature worktree has no Terraform state or returns empty outputs, locate the `main` worktree with `git worktree list --porcelain` and use its `infrastructure\u002Fterraform` directory as the authoritative deployment source. Keep the feature worktree as the launcher repository root so pytest collects and runs the branch code:\n\n```bash\n\"$DRIVER\" \\\n  --repo-root \u003Cfeature-worktree> \\\n  --terraform-dir \u003Cmain-worktree>\u002Finfrastructure\u002Fterraform\n```\n\nApply the same output and live-resource validation rules to the main worktree state. Stop if those outputs are unavailable, empty, stale, or incomplete.\n\nRequire these non-null outputs:\n\n| Output              | Required fields                            | Use                                                               |\n|---------------------|--------------------------------------------|-------------------------------------------------------------------|\n| `resource_group`    | `value.name`, `value.id`, `value.location` | Azure scope                                                       |\n| `aks_cluster`       | `value.name`, `value.id`                   | OSMO Kubernetes target                                            |\n| `azureml_workspace` | `value.name`, `value.id`                   | Azure ML job target                                               |\n| `storage_account`   | `value.name`, `value.id`                   | Synthetic IL and VLA staging                                      |\n| `node_pools`        | Non-empty `value` map                      | Expected OSMO GPU pools, VM sizes, priorities, labels, and taints |\n\nThe committed `node_pools` output does not expose autoscaling bounds. Read live bounds with `az aks nodepool list` only after matching the AKS resource ID to Terraform.\n\n## Compute Validation\n\nValidate the two independent backends before launching:\n\n| Backend     | Required checks                                                                                                                                                                                                                                                                                                                                         |\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| OSMO on AKS | Every Terraform GPU pool exists with the expected VM size; each pool has a registered node or `enableAutoScaling=true` with `maxCount>0`; the launcher logs in through its localhost gateway port-forward, selects the default pool, verifies a generic `huggingface` credential exists, and `osmo workflow list --count 1 --format-type json` succeeds |\n| Azure ML    | `gpu-cluster` is `amlcompute`, provisioning is `Succeeded`, and `max_instances>0`; zero current nodes is valid scale-from-zero                                                                                                                                                                                                                          |\n\nScale-from-zero pools may have no registered GPU nodes. Do not interpret zero current nodes as a configuration failure when autoscaling can add capacity.\n\n## Launch\n\nRun from the repository root:\n\n```bash\n\"$DRIVER\"\n```\n\nSelect a subset by repeating `--test`:\n\n```bash\n\"$DRIVER\" \\\n  --test test_e2e_aml_il_pipeline \\\n  --test test_e2e_aml_il_lifecycle \\\n  --test test_e2e_osmo_il_lifecycle\n```\n\nThe command exits after printing:\n\n```text\nE2E_HANDLE=\u003Cabsolute-run-directory>\nE2E_STATUS_COMMAND=\u003Cabsolute-script-path> --status \u003Cabsolute-run-directory>\nE2E_RESUBMIT_COMMAND=\u003Cabsolute-script-path> --resubmit \u003Cabsolute-run-directory> \u003Ctest-name>\nE2E_CLEANUP_COMMAND=\u003Cabsolute-script-path> --cleanup \u003Cabsolute-run-directory>\n```\n\nSave `E2E_HANDLE`. Each test owns one detached process. No coordinator or retry loop remains active after launch.\n\n## Handoff Data\n\nThe handle contains all data needed to investigate and reproduce an attempt:\n\n| Path                          | Content                                                                               |\n|-------------------------------|---------------------------------------------------------------------------------------|\n| `config.json`                 | Non-executable Terraform-resolved environment used by every attempt                   |\n| `manifest.json`               | Structured handle creation metadata                                                   |\n| `manifest.tsv`                | Human-readable handle creation metadata                                               |\n| `events.jsonl`                | Timestamped handle, launch, attempt, resubmission, gateway, and cleanup events        |\n| `tests.txt`                   | Ordered tests selected for this handle                                                |\n| `terraform-output.json`       | Terraform outputs validated before launch                                             |\n| `live-node-pools.json`        | AKS pool state validated before launch                                                |\n| `azureml-compute.json`        | Independent Azure ML compute state validated before launch                            |\n| `xdg-config\u002F`                 | Handle-local OSMO login and profile state                                             |\n| `commands.tsv`                | Test, attempt, PID, exact command-file path, and output-log path                      |\n| `\u003Ctest>\u002Fstatus`               | Latest test state                                                                     |\n| `\u003Ctest>\u002Flatest-attempt`       | Latest attempt number                                                                 |\n| `\u003Ctest>\u002Fattempt-N\u002Fcommand.sh` | Exact executable command, including exports, watchdog, pytest flags, and output paths |\n| `\u003Ctest>\u002Fattempt-N\u002Foutput.log` | Complete stdout and stderr                                                            |\n| `\u003Ctest>\u002Fattempt-N\u002Fpytest.xml` | Isolated pytest result                                                                |\n| `\u003Ctest>\u002Fattempt-N\u002Fexit-code`  | Process exit code                                                                     |\n| `\u003Ctest>\u002Fattempt-N\u002Fstatus`     | Attempt classification                                                                |\n| `\u003Ctest>\u002Fprocess.json`         | PID, role, command, and process start time used to prevent PID-reuse signalling       |\n\nUse `command.sh` as the authoritative record. Do not reconstruct commands from chat history or partial logs.\n\n## Tracking\n\nRead aggregate and per-test state without attaching to the coordinator:\n\n```bash\n\"$DRIVER\" --status \"$E2E_HANDLE\"\n```\n\nInspect a test's current attempt:\n\n```bash\ntail -n 100 \"$E2E_HANDLE\u002F\u003Ctest-name>\u002Fattempt-\u003Cn>\u002Foutput.log\"\n```\n\nUse five-minute status intervals while jobs are provisioning or running. Use twenty-minute intervals when all pending jobs are blocked on documented GPU capacity. Do not poll continuously.\n\nResubmit one terminal attempt:\n\n```bash\n\"$DRIVER\" \\\n  --resubmit \"$E2E_HANDLE\" \u003Ctest-name>\n```\n\nThis creates `attempt-N+1` with a new exact `command.sh`; it never overwrites earlier evidence.\n\nAfter every test is terminal:\n\n```bash\n\"$DRIVER\" --cleanup \"$E2E_HANDLE\"\n```\n\nCleanup verifies the exact recorded process identity for attempts left in `STARTING` or `RUNNING`. It refuses cleanup for a matching live attempt or any live PID whose identity cannot be verified. A dead stale attempt is marked `INTERRUPTED`, including its latest attempt result, before cleanup continues.\n\n## Test Discovery\n\nThe launcher runs `pytest --collect-only` over `tests\u002Fe2e` and derives the available E2E modules from every test marked `e2e`. The default selection includes the complete collected set, including tests with additional prerequisite markers such as `requires_hf_token`.\n\n## Retry Classification\n\nThe launcher labels these conditions transient but does not resubmit them:\n\n- Watchdog exit code `124`\n- `SkuNotAvailable`\n- `node-disruption`\n- OSMO gateway HTTP `503` or `504`\n- `upstream request timeout`\n- `upstream connect error`\n- `Timed out waiting for .* to start`\n- `Timed out waiting for .* to complete`\n- `did not .* complete within`\n- `to start within`\n\nBefore resubmitting, compare the latest attempt's command, exit status, cloud job or workflow state, and terminal error signature with the preceding attempt. Resubmit only when a supported intervention occurred or the evidence shows progress, such as refreshed authentication, recovered gateway health, changed capacity state, or a corrected in-scope defect. Each resubmission creates a billable workflow or job.\n\nStop automatic submissions when consecutive attempts repeat the same failure evidence without a supported remedy or changed condition. Report the command, attempts, cloud identifiers, and blocking evidence as an unresolved terminal handoff. Do not impose a universal retry count; evidence and progress determine whether another submission is justified. OSMO's `_await_osmo_status_with_restarts` already handles task-level spot disruptions inside one invocation; do not duplicate it.\n\nEach E2E handle exports a private `XDG_CONFIG_HOME` and selects a free handle-local `OSMO_GATEWAY_PORT` before OSMO login. Preserve that profile and port for every attempt and resubmission so concurrent sessions targeting different deployments cannot rewrite each other's endpoint or contend for the same localhost listener. Every OSMO resubmission re-establishes the handle-local gateway login and selects the default pool inside that isolated profile.\n\nAfter concurrent OSMO submissions return gateway 503\u002F504 responses, serialize resubmissions. Wait for the active OSMO workflow to reach a terminal state before submitting the next test.\n\n## Failure Rules\n\n- A pytest skip is `FAILED_SETUP_SKIP`, never a pass.\n- A failure outside the retry classification is `FAILED` and requires investigation.\n- Never resubmit a test while its state is `STARTING` or `RUNNING`. Use cleanup to recover a dead stale attempt before resubmitting it.\n- Do not delete staged data manually; pytest finalizers own cleanup.\n- Do not change GPU SKUs, regions, autoscaling limits, Terraform state, or node pools to make a test pass.\n- Preserve every attempt log and XML result under the handle.\n- If `osmo-service` returns repeated gateway 503\u002F504 responses, inspect its container `lastState` before retrying. An `OOMKilled` termination at the 1 GiB limit requires increasing the service memory allocation and redeploying OSMO.\n- Treat Azure CLI token-refresh TLS EOF and `RemoteDisconnected` failures during Blob staging or cleanup as transient. Refresh the storage token, then retry the test.\n- An Azure ML parent pipeline in `Running` can still have a queued child; inspect child jobs before diagnosing progress.\n- An OSMO pod in `Pending` is expected while AKS scales from zero. Confirm autoscaler configuration before attributing it to capacity.\n","\u003C!-- cspell:ignore amlcompute azureml chdir finalizers finetune nodepool pythonhosted pytest worktree -->\n\n# Cloud E2E Tests\n\nRun detached cloud E2E test attempts through the repository-owned launcher. The launcher uses pytest collection to discover every test module marked `e2e`. It then exits and hands Copilot every command, PID, log, result, and resubmission handle needed to babysit the runs.\n\nResolve the launcher from the active checkout:\n\n```bash\nREPO_ROOT=\"$(git rev-parse --show-toplevel)\"\nDRIVER=\"$REPO_ROOT\u002F.github\u002Fskills\u002Fe2e-tests\u002Fscripts\u002Frun-e2e-tests.sh\"\n```\n\n## Operating Contract\n\nExecute the workflow autonomously. Do not ask the user to run commands, monitor jobs, classify failures, or request routine retries.\n\n1. Read Terraform outputs before any Azure, Kubernetes, OSMO, or pytest operation.\n2. Stop if `terraform output -json` is unavailable, empty, stale against live resource IDs, or missing a required output. Do not infer deployed resource names from conventions, the current Kubernetes context, Azure resource enumeration, or remembered environments.\n3. Validate Azure authentication, storage, and Azure ML compute before submitting tests. Validate OSMO authentication, the gateway, and AKS GPU pools when the selected subset includes OSMO tests.\n4. Launch the requested test files concurrently, or every discovered default test when no subset is requested. Azure ML and OSMO use independent compute and do not contend with each other.\n5. Capture `E2E_HANDLE` and take ownership of monitoring. The launcher never retries or diagnoses a completed attempt.\n6. For every non-pass, inspect the exact command and complete output. Resubmit a classified transient failure only after evidence shows a supported remedy or changed cloud condition. Investigate other failures, correct clear in-scope defects, validate locally, then resubmit only the affected test.\n7. Treat `PASSED` as success. Stop automatic submissions and report the unresolved result when the latest attempt repeats the same terminal error, cloud state, and evidence without a supported intervention or observable progress. Never alter Terraform or node-pool configuration to work around unavailable GPU capacity.\n8. Report each test's commands, attempts, cloud job or workflow identifiers, durations, and final state. Run handle cleanup after all tests reach terminal states.\n\nEach handle owns an `XDG_CONFIG_HOME` under its run directory. OSMO reads and rewrites `login.yaml` in that directory, so every launch, detached attempt, resubmission, and diagnostic command must load the handle's non-executable `config.json`.\n\nThe launcher accepts only a handle directory owned by the current user with mode `700`; private configuration and process records must be owned by the current user with mode `600` and must not be symbolic links. Never use the global `~\u002F.config\u002Fosmo\u002Flogin.yaml` while an E2E handle is active; concurrent deployments would redirect each other's CLI commands.\n\n## Local Dependency Bootstrap\n\nSynchronize the frozen local environment before launching attempts. Use the package index configured for the current development environment:\n\n```bash\ncd \"$REPO_ROOT\"\nuv sync --frozen --no-progress\n```\n\nDo not treat a direct `files.pythonhosted.org` connection failure as a cloud-test failure. Bootstrap through the configured index, then resubmit the affected terminal attempts.\n\n## Hugging Face Prerequisite\n\n`tests\u002Fe2e\u002Ftest_e2e_aml_vla_pi0_training.py` requires `HF_TOKEN` with access to the gated `google\u002Fpaligemma-3b-pt-224` model. Export the token before a default full run or before selecting that test explicitly. The requirement does not apply when an explicit subset omits tests marked `requires_hf_token`.\n\nNever write the token to `config.json`, `command.sh`, logs, manifests, or chat output. Preserve it only in the process environment. A missing or empty token is a non-retryable client-side setup failure: the test must fail before Azure fixture resolution, dataset staging, or job submission.\n\n## Required Terraform Outputs\n\nRun this first:\n\n```bash\nterraform -chdir=infrastructure\u002Fterraform output -json |\n  jq '{\n    resource_group,\n    aks_cluster,\n    azureml_workspace,\n    storage_account,\n    node_pools\n  }'\n```\n\nThis projection is safe for operator and Copilot output. Do not print or paste the unfiltered JSON because Terraform includes values marked `sensitive`, including credentials and connection details. The launcher stores the complete output only in the handle's owner-only `terraform-output.json`.\n\nWhen the current feature worktree has no Terraform state or returns empty outputs, locate the `main` worktree with `git worktree list --porcelain` and use its `infrastructure\u002Fterraform` directory as the authoritative deployment source. Keep the feature worktree as the launcher repository root so pytest collects and runs the branch code:\n\n```bash\n\"$DRIVER\" \\\n  --repo-root \u003Cfeature-worktree> \\\n  --terraform-dir \u003Cmain-worktree>\u002Finfrastructure\u002Fterraform\n```\n\nApply the same output and live-resource validation rules to the main worktree state. Stop if those outputs are unavailable, empty, stale, or incomplete.\n\nRequire these non-null outputs:\n\n| Output              | Required fields                            | Use                                                               |\n|---------------------|--------------------------------------------|-------------------------------------------------------------------|\n| `resource_group`    | `value.name`, `value.id`, `value.location` | Azure scope                                                       |\n| `aks_cluster`       | `value.name`, `value.id`                   | OSMO Kubernetes target                                            |\n| `azureml_workspace` | `value.name`, `value.id`                   | Azure ML job target                                               |\n| `storage_account`   | `value.name`, `value.id`                   | Synthetic IL and VLA staging                                      |\n| `node_pools`        | Non-empty `value` map                      | Expected OSMO GPU pools, VM sizes, priorities, labels, and taints |\n\nThe committed `node_pools` output does not expose autoscaling bounds. Read live bounds with `az aks nodepool list` only after matching the AKS resource ID to Terraform.\n\n## Compute Validation\n\nValidate the two independent backends before launching:\n\n| Backend     | Required checks                                                                                                                                                                                                                                                                                                                                         |\n|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| OSMO on AKS | Every Terraform GPU pool exists with the expected VM size; each pool has a registered node or `enableAutoScaling=true` with `maxCount>0`; the launcher logs in through its localhost gateway port-forward, selects the default pool, verifies a generic `huggingface` credential exists, and `osmo workflow list --count 1 --format-type json` succeeds |\n| Azure ML    | `gpu-cluster` is `amlcompute`, provisioning is `Succeeded`, and `max_instances>0`; zero current nodes is valid scale-from-zero                                                                                                                                                                                                                          |\n\nScale-from-zero pools may have no registered GPU nodes. Do not interpret zero current nodes as a configuration failure when autoscaling can add capacity.\n\n## Launch\n\nRun from the repository root:\n\n```bash\n\"$DRIVER\"\n```\n\nSelect a subset by repeating `--test`:\n\n```bash\n\"$DRIVER\" \\\n  --test test_e2e_aml_il_pipeline \\\n  --test test_e2e_aml_il_lifecycle \\\n  --test test_e2e_osmo_il_lifecycle\n```\n\nThe command exits after printing:\n\n```text\nE2E_HANDLE=\u003Cabsolute-run-directory>\nE2E_STATUS_COMMAND=\u003Cabsolute-script-path> --status \u003Cabsolute-run-directory>\nE2E_RESUBMIT_COMMAND=\u003Cabsolute-script-path> --resubmit \u003Cabsolute-run-directory> \u003Ctest-name>\nE2E_CLEANUP_COMMAND=\u003Cabsolute-script-path> --cleanup \u003Cabsolute-run-directory>\n```\n\nSave `E2E_HANDLE`. Each test owns one detached process. No coordinator or retry loop remains active after launch.\n\n## Handoff Data\n\nThe handle contains all data needed to investigate and reproduce an attempt:\n\n| Path                          | Content                                                                               |\n|-------------------------------|---------------------------------------------------------------------------------------|\n| `config.json`                 | Non-executable Terraform-resolved environment used by every attempt                   |\n| `manifest.json`               | Structured handle creation metadata                                                   |\n| `manifest.tsv`                | Human-readable handle creation metadata                                               |\n| `events.jsonl`                | Timestamped handle, launch, attempt, resubmission, gateway, and cleanup events        |\n| `tests.txt`                   | Ordered tests selected for this handle                                                |\n| `terraform-output.json`       | Terraform outputs validated before launch                                             |\n| `live-node-pools.json`        | AKS pool state validated before launch                                                |\n| `azureml-compute.json`        | Independent Azure ML compute state validated before launch                            |\n| `xdg-config\u002F`                 | Handle-local OSMO login and profile state                                             |\n| `commands.tsv`                | Test, attempt, PID, exact command-file path, and output-log path                      |\n| `\u003Ctest>\u002Fstatus`               | Latest test state                                                                     |\n| `\u003Ctest>\u002Flatest-attempt`       | Latest attempt number                                                                 |\n| `\u003Ctest>\u002Fattempt-N\u002Fcommand.sh` | Exact executable command, including exports, watchdog, pytest flags, and output paths |\n| `\u003Ctest>\u002Fattempt-N\u002Foutput.log` | Complete stdout and stderr                                                            |\n| `\u003Ctest>\u002Fattempt-N\u002Fpytest.xml` | Isolated pytest result                                                                |\n| `\u003Ctest>\u002Fattempt-N\u002Fexit-code`  | Process exit code                                                                     |\n| `\u003Ctest>\u002Fattempt-N\u002Fstatus`     | Attempt classification                                                                |\n| `\u003Ctest>\u002Fprocess.json`         | PID, role, command, and process start time used to prevent PID-reuse signalling       |\n\nUse `command.sh` as the authoritative record. Do not reconstruct commands from chat history or partial logs.\n\n## Tracking\n\nRead aggregate and per-test state without attaching to the coordinator:\n\n```bash\n\"$DRIVER\" --status \"$E2E_HANDLE\"\n```\n\nInspect a test's current attempt:\n\n```bash\ntail -n 100 \"$E2E_HANDLE\u002F\u003Ctest-name>\u002Fattempt-\u003Cn>\u002Foutput.log\"\n```\n\nUse five-minute status intervals while jobs are provisioning or running. Use twenty-minute intervals when all pending jobs are blocked on documented GPU capacity. Do not poll continuously.\n\nResubmit one terminal attempt:\n\n```bash\n\"$DRIVER\" \\\n  --resubmit \"$E2E_HANDLE\" \u003Ctest-name>\n```\n\nThis creates `attempt-N+1` with a new exact `command.sh`; it never overwrites earlier evidence.\n\nAfter every test is terminal:\n\n```bash\n\"$DRIVER\" --cleanup \"$E2E_HANDLE\"\n```\n\nCleanup verifies the exact recorded process identity for attempts left in `STARTING` or `RUNNING`. It refuses cleanup for a matching live attempt or any live PID whose identity cannot be verified. A dead stale attempt is marked `INTERRUPTED`, including its latest attempt result, before cleanup continues.\n\n## Test Discovery\n\nThe launcher runs `pytest --collect-only` over `tests\u002Fe2e` and derives the available E2E modules from every test marked `e2e`. The default selection includes the complete collected set, including tests with additional prerequisite markers such as `requires_hf_token`.\n\n## Retry Classification\n\nThe launcher labels these conditions transient but does not resubmit them:\n\n- Watchdog exit code `124`\n- `SkuNotAvailable`\n- `node-disruption`\n- OSMO gateway HTTP `503` or `504`\n- `upstream request timeout`\n- `upstream connect error`\n- `Timed out waiting for .* to start`\n- `Timed out waiting for .* to complete`\n- `did not .* complete within`\n- `to start within`\n\nBefore resubmitting, compare the latest attempt's command, exit status, cloud job or workflow state, and terminal error signature with the preceding attempt. Resubmit only when a supported intervention occurred or the evidence shows progress, such as refreshed authentication, recovered gateway health, changed capacity state, or a corrected in-scope defect. Each resubmission creates a billable workflow or job.\n\nStop automatic submissions when consecutive attempts repeat the same failure evidence without a supported remedy or changed condition. Report the command, attempts, cloud identifiers, and blocking evidence as an unresolved terminal handoff. Do not impose a universal retry count; evidence and progress determine whether another submission is justified. OSMO's `_await_osmo_status_with_restarts` already handles task-level spot disruptions inside one invocation; do not duplicate it.\n\nEach E2E handle exports a private `XDG_CONFIG_HOME` and selects a free handle-local `OSMO_GATEWAY_PORT` before OSMO login. Preserve that profile and port for every attempt and resubmission so concurrent sessions targeting different deployments cannot rewrite each other's endpoint or contend for the same localhost listener. Every OSMO resubmission re-establishes the handle-local gateway login and selects the default pool inside that isolated profile.\n\nAfter concurrent OSMO submissions return gateway 503\u002F504 responses, serialize resubmissions. Wait for the active OSMO workflow to reach a terminal state before submitting the next test.\n\n## Failure Rules\n\n- A pytest skip is `FAILED_SETUP_SKIP`, never a pass.\n- A failure outside the retry classification is `FAILED` and requires investigation.\n- Never resubmit a test while its state is `STARTING` or `RUNNING`. Use cleanup to recover a dead stale attempt before resubmitting it.\n- Do not delete staged data manually; pytest finalizers own cleanup.\n- Do not change GPU SKUs, regions, autoscaling limits, Terraform state, or node pools to make a test pass.\n- Preserve every attempt log and XML result under the handle.\n- If `osmo-service` returns repeated gateway 503\u002F504 responses, inspect its container `lastState` before retrying. An `OOMKilled` termination at the 1 GiB limit requires increasing the service memory allocation and redeploying OSMO.\n- Treat Azure CLI token-refresh TLS EOF and `RemoteDisconnected` failures during Blob staging or cleanup as transient. Refresh the storage token, then retry the test.\n- An Azure ML parent pipeline in `Running` can still have a queued child; inspect child jobs before diagnosing progress.\n- An OSMO pod in `Pending` is expected while AKS scales from zero. Confirm autoscaler configuration before attributing it to capacity.\n",{"name":5,"description":7,"compatibility":56},"Linux with Bash 4+, jq, pytest, Azure CLI, Terraform, kubectl, OSMO CLI, and GNU timeout.","main","39b9db6f0c0cee5c51d548ee422fe41cd1e7ff03",".github\u002Fskills\u002Fe2e-tests",72,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 17:25:41",{"source":9,"skillName":5,"commands":67,"prompt":77,"zipAvailable":78},[68,71,74],{"tool":69,"command":70},"npx","npx skills add microsoft\u002Fphysical-ai-toolchain --skill e2e-tests",{"tool":72,"command":73},"bunx","bunx skills add microsoft\u002Fphysical-ai-toolchain --skill e2e-tests",{"tool":75,"command":76},"pnpm","pnpm dlx skills add microsoft\u002Fphysical-ai-toolchain --skill e2e-tests","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fe2e-tests\u002FSKILL.md",true,[80,86],{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"scripts\u002Flib\u002Fhandle-state.sh","SCRIPT","脚本",11993,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fe2e-tests\u002Fscripts\u002Flib\u002Fhandle-state.sh",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"scripts\u002Frun-e2e-tests.sh",31763,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fe2e-tests\u002Fscripts\u002Frun-e2e-tests.sh",[91,99,106,113,120,127],{"skillNo":92,"name":93,"nameZh":17,"description":94,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":98},"01M78JTQEPW7M3HRGHF4SBB2P4","submit-lerobot-training","Submit a LeRobot imitation learning training job to OSMO with configurable policy, dataset, and Azure ML logging. Use when the user runs \u002Fsubmit-lerobot-training.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsubmit-lerobot-training\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":100,"name":101,"nameZh":17,"description":102,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":98},"01M78JTMTZY0EDECA60C6C9TR3","start-dataviewer","Launch the dataviewer app with an optional dataset path, open it in the browser, and optionally run a VLM judge smoke pass. Use when the user runs \u002Fstart-dataviewer.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fstart-dataviewer\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":17,"description":109,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":98},"01M78JT7VKCVSEM8N7SR67973R","dataviewer-annotate","One-shot: launch the dataviewer with the VLM judge enabled and run the multi-step VLM-as-judge pipeline across an entire dataset. Use when the user runs \u002Fdataviewer-annotate.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdataviewer-annotate\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":17,"description":116,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":98},"01M78JT5SY9QXT8X7KQX2A9EJ5","check-training-status","Check status, stream logs, and retrieve Azure ML metrics for a running or completed OSMO LeRobot training job. Use when the user runs \u002Fcheck-training-status.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcheck-training-status\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":17,"description":123,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":98},"01M78JT2TMR9AKTKGMJ7D0HMT4","chatlog","Create and maintain structured conversation chatlogs capturing problems, solutions, and lessons learned. Use when the user runs \u002Fchatlog.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fchatlog\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":130,"description":131,"descriptionZh":132,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":133,"categories":134,"keywords":141,"publishedAt":51},"01M69AS2WAAD5CZ9S9CBSEZ226","synthetic-data","NVIDIA Cosmos合成数据生成","Generate synthetic training data using NVIDIA Cosmos world foundation models for SDG pipelines","使用 NVIDIA Cosmos 世界基础模型为 SDG 管道生成合成训练数据。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsynthetic-data\u002FSKILL.md",[135,138],{"categoryNo":136,"categoryName":137,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":139,"categoryName":140,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0NK93YXC7GERCH372ZVDF","AI 模型训练与微调",[142,143,144,145,146,147,148,149,150,151,152,153,154],"synthetic data","data","synthetic","world","NVIDIA","generate","for","models","training","cosmos","pipelines","Training Data","foundation"]