[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C27Y08PVAR97JG04Q8YJ0V":3,"skill-same:01M6C27Y08PVAR97JG04Q8YJ0V":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":54,"linkOnly":55,"markdownContent":56,"markdownBody":57,"frontMatter":58,"refName":59,"commitSha":60,"skillDirectory":61,"forksCount":62,"repositoryHtmlUrl":63,"repositoryHomepageUrl":16,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":16,"updatedAt":66,"install":67,"resources":80},"01M6C27Y08PVAR97JG04Q8YJ0V","cross-repo-testing","跨仓库功能端到端测试","This skill should be used when the user asks to \"test a saas cross-repo feature\", \"deploy a feature branch to staging\", \"test SDK against OH Cloud branch\", \"e2e test a cloud workspace feature\", \"test secrets saas inheritance\", or when changes span the SDK and OpenHands enterprise and need end-to-end validation against a staging deployment.","当用户要求『测试 saas 跨仓库功能』『将功能分支部署到 staging』『针对 OH Cloud 分支测试 SDK』『对云工作区功能进行 e2e 测试』『测试 secrets saas 继承』，或当变更横跨 SDK 与 OpenHands enterprise、需要针对 staging 部署进行端到端验证时，应使用此技能。","OpenHands\u002Fsoftware-agent-sdk","OpenHands","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F225919603?v=4","01M6C27VE6SQ4X635GVG804BRN","01M6C27VJK3R57C2Z3AVJ03NQS",1396,"MIT",null,"https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcross-repo-testing\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53],"cross repo","cross repo testing","repo","testing","openhands","when","changes","end","feature","inheritance","e2e test","user","branch","workspace","secrets","e2e","saas","Enterprise","cloud","validation","deployment","deploy","test","sdk","2026-11-10 10:12:30",false,"---\nname: cross-repo-testing\ndescription: This skill should be used when the user asks to \"test a saas cross-repo feature\", \"deploy a feature branch to staging\", \"test SDK against OH Cloud branch\", \"e2e test a cloud workspace feature\", \"test secrets saas inheritance\", or when changes span the SDK and OpenHands enterprise and need end-to-end validation against a staging deployment.\n---\n\n# Cross-Repo Testing: SDK ↔ OpenHands Cloud\n\nHow to end-to-end test features that span `OpenHands\u002Fsoftware-agent-sdk` and `OpenHands\u002FOpenHands` (the Cloud backend).\n\n## Repository Map\n\n| Repo | Role | What lives here |\n|------|------|-----------------|\n| [`software-agent-sdk`](https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk) | Agent core | `openhands-sdk`, `openhands-workspace`, `openhands-tools` packages. `OpenHandsCloudWorkspace` lives here. |\n| [`OpenHands`](https:\u002F\u002Fgithub.com\u002FOpenHands\u002FOpenHands) | Cloud backend | FastAPI server (`openhands\u002Fapp_server\u002F`), sandbox management, auth, enterprise integrations. Deployed as OH Cloud. |\n| [`deploy`](https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fdeploy) | Infrastructure | Helm charts + GitHub Actions that build the enterprise Docker image and deploy to staging\u002Fproduction. |\n\n**Data flow:** SDK client → OH Cloud API (`\u002Fapi\u002Fv1\u002F...`) → sandbox agent-server (inside runtime container)\n\n## When You Need This\n\nThere are **two flows** depending on which direction the dependency goes:\n\n| Flow | When | Example |\n|------|------|---------|\n| **A — SDK client → new Cloud API** | The SDK calls an API that doesn't exist yet on production | `workspace.get_llm()` calling `GET \u002Fapi\u002Fv1\u002Fusers\u002Fme?expose_secrets=true` |\n| **B — OH server → new SDK code** | The Cloud server needs unreleased SDK packages or a new agent-server image | Server consumes a new tool, agent behavior, or workspace method from the SDK |\n\nFlow A only requires deploying the server PR. Flow B requires pinning the SDK to an unreleased commit in the server PR **and** using the SDK PR's agent-server image. Both flows may apply simultaneously.\n\n---\n\n## Flow A: SDK Client Tests Against New Cloud API\n\nUse this when the SDK calls an endpoint that only exists on the server PR branch.\n\n### A1. Write and test the server-side changes\n\nIn the `OpenHands` repo, implement the new API endpoint(s). Run unit tests:\n\n```bash\ncd OpenHands\npoetry run pytest tests\u002Funit\u002Fapp_server\u002Ftest_\u003Crelevant>.py -v\n```\n\nPush a PR. Wait for the **\"Push Enterprise Image\" (Docker) CI job** to succeed — this builds `ghcr.io\u002Fopenhands\u002Fenterprise-server:sha-\u003CCOMMIT>`.\n\n### A2. Write the SDK-side changes\n\nIn `software-agent-sdk`, implement the client code (e.g., new methods on `OpenHandsCloudWorkspace`). Run SDK unit tests:\n\n```bash\ncd software-agent-sdk\npip install -e openhands-sdk -e openhands-workspace\npytest tests\u002F -v\n```\n\nPush a PR. SDK CI is independent — it doesn't need the server changes to pass unit tests.\n\n### A3. Deploy the server PR to staging\n\nSee [Deploying to a Staging Feature Environment](#deploying-to-a-staging-feature-environment) below.\n\n### A4. Run the SDK e2e test against staging\n\nSee [Running E2E Tests Against Staging](#running-e2e-tests-against-staging) below.\n\n---\n\n## Flow B: OH Server Needs Unreleased SDK Code\n\nUse this when the Cloud server depends on SDK changes that haven't been released to PyPI yet. The server's runtime containers run the `agent-server` image built from the SDK repo, so the server PR must be configured to use the SDK PR's image and packages.\n\n### B1. Get the SDK PR merged (or identify the commit)\n\nThe SDK PR must have CI pass so its agent-server Docker image is built. The image is tagged with the **merge-commit SHA** from GitHub Actions — NOT the head-commit SHA shown in the PR.\n\nFind the correct image tag:\n- Check the SDK PR description for an `AGENT_SERVER_IMAGES` section\n- Or check the \"Consolidate Build Information\" CI job for `\"short_sha\": \"\u003Ctag>\"`\n\n### B2. Pin SDK packages to the commit in the OpenHands PR\n\nIn the `OpenHands` repo PR, update 3 files + regenerate 3 lock files (see the `update-sdk` skill for full details):\n\n**`pyproject.toml`** — pin all 3 SDK packages in **both** `dependencies` and `[tool.poetry.dependencies]`:\n```toml\n# dependencies array (PEP 508)\n\"openhands-sdk @ git+https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git@\u003CCOMMIT>#subdirectory=openhands-sdk\",\n\"openhands-agent-server @ git+https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git@\u003CCOMMIT>#subdirectory=openhands-agent-server\",\n\"openhands-tools @ git+https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git@\u003CCOMMIT>#subdirectory=openhands-tools\",\n\n# [tool.poetry.dependencies]\nopenhands-sdk = { git = \"https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git\", rev = \"\u003CCOMMIT>\", subdirectory = \"openhands-sdk\" }\nopenhands-agent-server = { git = \"https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git\", rev = \"\u003CCOMMIT>\", subdirectory = \"openhands-agent-server\" }\nopenhands-tools = { git = \"https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git\", rev = \"\u003CCOMMIT>\", subdirectory = \"openhands-tools\" }\n```\n\n**`openhands\u002Fapp_server\u002Fsandbox\u002Fsandbox_spec_service.py`** — use the SDK's merge-commit SHA:\n```python\nAGENT_SERVER_IMAGE = 'ghcr.io\u002Fopenhands\u002Fagent-server:\u003Cmerge-commit-sha>-python'\n```\n\n**Regenerate lock files:**\n```bash\npoetry lock && uv lock && cd enterprise && poetry lock && cd ..\n```\n\n### B3. Wait for the OpenHands enterprise image to build\n\nPush the pinned changes. The OpenHands CI will build a new enterprise Docker image (`ghcr.io\u002Fopenhands\u002Fenterprise-server:sha-\u003COH_COMMIT>`) that bundles the unreleased SDK. Wait for the \"Push Enterprise Image\" job to succeed.\n\n### B4. Deploy and test\n\nFollow [Deploying to a Staging Feature Environment](#deploying-to-a-staging-feature-environment) using the new OpenHands commit SHA.\n\n### B5. Before merging: remove the pin\n\n**CI guard:** `check-package-versions.yml` blocks merge to `main` if `[tool.poetry.dependencies]` contains `rev` fields. Before the OpenHands PR can merge, the SDK PR must be merged and released to PyPI, then the pin must be replaced with the released version number.\n\n---\n\n## Deploying to a Staging Feature Environment\n\nThe `deploy` repo creates preview environments from OpenHands PRs.\n\n**Option A — GitHub Actions UI (preferred):**\nGo to `OpenHands\u002Fdeploy` → Actions → \"Create OpenHands preview PR\" → enter the OpenHands PR number. This creates a branch `ohpr-\u003CPR>-\u003Crandom>` and opens a deploy PR.\n\n**Option B — Update an existing feature branch:**\n```bash\ncd deploy\ngit checkout ohpr-\u003CPR>-\u003Crandom>\n# In .github\u002Fworkflows\u002Fdeploy.yaml, update BOTH:\n#   OPENHANDS_SHA: \"\u003Cfull-40-char-commit>\"\n#   OPENHANDS_RUNTIME_IMAGE_TAG: \"\u003Csame-commit>-nikolaik\"\ngit commit -am \"Update OPENHANDS_SHA to \u003Ccommit>\" && git push\n```\n\n**Before updating the SHA**, verify the enterprise Docker image exists:\n```bash\ngh api repos\u002FOpenHands\u002FOpenHands\u002Factions\u002Fruns \\\n  --jq '.workflow_runs[] | select(.head_sha==\"\u003CCOMMIT>\") | \"\\(.name): \\(.conclusion)\"' \\\n  | grep Docker\n# Must show: \"Docker: success\"\n```\n\nThe deploy CI auto-triggers and creates the environment at:\n```\nhttps:\u002F\u002Fohpr-\u003CPR>-\u003Crandom>.staging.all-hands.dev\n```\n\n**Wait for it to be live:**\n```bash\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" https:\u002F\u002Fohpr-\u003CPR>-\u003Crandom>.staging.all-hands.dev\u002Fapi\u002Fv1\u002Fhealth\n# 401 = server is up (auth required). DNS may take 1-2 min on first deploy.\n```\n\n## Running E2E Tests Against Staging\n\n**Critical: Feature deployments have their own Keycloak instance.** API keys from `app.all-hands.dev` or `$OPENHANDS_API_KEY` will NOT work. You need a test API key for the specific feature deployment. The user must provide one.\n\n```python\nfrom openhands.workspace import OpenHandsCloudWorkspace\n\nSTAGING = \"https:\u002F\u002Fohpr-\u003CPR>-\u003Crandom>.staging.all-hands.dev\"\n\nwith OpenHandsCloudWorkspace(\n    cloud_api_url=STAGING,\n    cloud_api_key=\"\u003Ctest-api-key-for-this-deployment>\",\n) as workspace:\n    # Test the new feature\n    llm = workspace.get_llm()\n    secrets = workspace.get_secrets()\n    print(f\"LLM: {llm.model}, secrets: {list(secrets.keys())}\")\n```\n\nOr run an example script:\n```bash\nOPENHANDS_CLOUD_API_KEY=\"\u003Ckey>\" \\\nOPENHANDS_CLOUD_API_URL=\"https:\u002F\u002Fohpr-\u003CPR>-\u003Crandom>.staging.all-hands.dev\" \\\npython examples\u002F02_remote_agent_server\u002F10_cloud_workspace_saas_credentials.py\n```\n\n### Recording results\n\nPush test output to the SDK PR's `.pr\u002Flogs\u002F` directory:\n```bash\ncd software-agent-sdk\npython test_script.py 2>&1 | tee .pr\u002Flogs\u002F\u003Ctest_name>.log\ngit add -f .pr\u002Flogs\u002F\u003Ctest_name>.log .pr\u002FREADME.md\ngit commit -m \"docs: add e2e test results\" && git push\n```\n\nComment on **both PRs** with pass\u002Ffail summary and link to logs.\n\n## Key Gotchas\n\n| Gotcha | Details |\n|--------|---------|\n| **Feature env auth is isolated** | Each `ohpr-*` deployment has its own Keycloak. Production API keys don't work. |\n| **Two SHAs in deploy.yaml** | `OPENHANDS_SHA` and `OPENHANDS_RUNTIME_IMAGE_TAG` must both be updated. The runtime tag is `\u003Csha>-nikolaik`. |\n| **Enterprise image must exist** | The Docker CI job on the OpenHands PR must succeed before you can deploy. If it hasn't run, push an empty commit to trigger it. |\n| **DNS propagation** | First deployment of a new branch takes 1-2 min for DNS. Subsequent deploys are instant. |\n| **Merge-commit SHA ≠ head SHA** | SDK CI tags Docker images with GitHub Actions' merge-commit SHA, not the PR head SHA. Check the SDK PR description or CI logs for the correct tag. |\n| **SDK pin blocks merge** | `check-package-versions.yml` prevents merging an OpenHands PR that has `rev` fields in `[tool.poetry.dependencies]`. The SDK must be released to PyPI first. |\n| **Flow A: stock agent-server is fine** | When only the Cloud API changes, `OpenHandsCloudWorkspace` talks to the Cloud server, not the agent-server. No custom image needed. |\n| **Flow B: agent-server image is required** | When the server needs new SDK code inside runtime containers, you must pin to the SDK PR's agent-server image. |\n","# Cross-Repo Testing: SDK ↔ OpenHands Cloud\n\nHow to end-to-end test features that span `OpenHands\u002Fsoftware-agent-sdk` and `OpenHands\u002FOpenHands` (the Cloud backend).\n\n## Repository Map\n\n| Repo | Role | What lives here |\n|------|------|-----------------|\n| [`software-agent-sdk`](https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk) | Agent core | `openhands-sdk`, `openhands-workspace`, `openhands-tools` packages. `OpenHandsCloudWorkspace` lives here. |\n| [`OpenHands`](https:\u002F\u002Fgithub.com\u002FOpenHands\u002FOpenHands) | Cloud backend | FastAPI server (`openhands\u002Fapp_server\u002F`), sandbox management, auth, enterprise integrations. Deployed as OH Cloud. |\n| [`deploy`](https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fdeploy) | Infrastructure | Helm charts + GitHub Actions that build the enterprise Docker image and deploy to staging\u002Fproduction. |\n\n**Data flow:** SDK client → OH Cloud API (`\u002Fapi\u002Fv1\u002F...`) → sandbox agent-server (inside runtime container)\n\n## When You Need This\n\nThere are **two flows** depending on which direction the dependency goes:\n\n| Flow | When | Example |\n|------|------|---------|\n| **A — SDK client → new Cloud API** | The SDK calls an API that doesn't exist yet on production | `workspace.get_llm()` calling `GET \u002Fapi\u002Fv1\u002Fusers\u002Fme?expose_secrets=true` |\n| **B — OH server → new SDK code** | The Cloud server needs unreleased SDK packages or a new agent-server image | Server consumes a new tool, agent behavior, or workspace method from the SDK |\n\nFlow A only requires deploying the server PR. Flow B requires pinning the SDK to an unreleased commit in the server PR **and** using the SDK PR's agent-server image. Both flows may apply simultaneously.\n\n---\n\n## Flow A: SDK Client Tests Against New Cloud API\n\nUse this when the SDK calls an endpoint that only exists on the server PR branch.\n\n### A1. Write and test the server-side changes\n\nIn the `OpenHands` repo, implement the new API endpoint(s). Run unit tests:\n\n```bash\ncd OpenHands\npoetry run pytest tests\u002Funit\u002Fapp_server\u002Ftest_\u003Crelevant>.py -v\n```\n\nPush a PR. Wait for the **\"Push Enterprise Image\" (Docker) CI job** to succeed — this builds `ghcr.io\u002Fopenhands\u002Fenterprise-server:sha-\u003CCOMMIT>`.\n\n### A2. Write the SDK-side changes\n\nIn `software-agent-sdk`, implement the client code (e.g., new methods on `OpenHandsCloudWorkspace`). Run SDK unit tests:\n\n```bash\ncd software-agent-sdk\npip install -e openhands-sdk -e openhands-workspace\npytest tests\u002F -v\n```\n\nPush a PR. SDK CI is independent — it doesn't need the server changes to pass unit tests.\n\n### A3. Deploy the server PR to staging\n\nSee [Deploying to a Staging Feature Environment](#deploying-to-a-staging-feature-environment) below.\n\n### A4. Run the SDK e2e test against staging\n\nSee [Running E2E Tests Against Staging](#running-e2e-tests-against-staging) below.\n\n---\n\n## Flow B: OH Server Needs Unreleased SDK Code\n\nUse this when the Cloud server depends on SDK changes that haven't been released to PyPI yet. The server's runtime containers run the `agent-server` image built from the SDK repo, so the server PR must be configured to use the SDK PR's image and packages.\n\n### B1. Get the SDK PR merged (or identify the commit)\n\nThe SDK PR must have CI pass so its agent-server Docker image is built. The image is tagged with the **merge-commit SHA** from GitHub Actions — NOT the head-commit SHA shown in the PR.\n\nFind the correct image tag:\n- Check the SDK PR description for an `AGENT_SERVER_IMAGES` section\n- Or check the \"Consolidate Build Information\" CI job for `\"short_sha\": \"\u003Ctag>\"`\n\n### B2. Pin SDK packages to the commit in the OpenHands PR\n\nIn the `OpenHands` repo PR, update 3 files + regenerate 3 lock files (see the `update-sdk` skill for full details):\n\n**`pyproject.toml`** — pin all 3 SDK packages in **both** `dependencies` and `[tool.poetry.dependencies]`:\n```toml\n# dependencies array (PEP 508)\n\"openhands-sdk @ git+https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git@\u003CCOMMIT>#subdirectory=openhands-sdk\",\n\"openhands-agent-server @ git+https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git@\u003CCOMMIT>#subdirectory=openhands-agent-server\",\n\"openhands-tools @ git+https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git@\u003CCOMMIT>#subdirectory=openhands-tools\",\n\n# [tool.poetry.dependencies]\nopenhands-sdk = { git = \"https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git\", rev = \"\u003CCOMMIT>\", subdirectory = \"openhands-sdk\" }\nopenhands-agent-server = { git = \"https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git\", rev = \"\u003CCOMMIT>\", subdirectory = \"openhands-agent-server\" }\nopenhands-tools = { git = \"https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk.git\", rev = \"\u003CCOMMIT>\", subdirectory = \"openhands-tools\" }\n```\n\n**`openhands\u002Fapp_server\u002Fsandbox\u002Fsandbox_spec_service.py`** — use the SDK's merge-commit SHA:\n```python\nAGENT_SERVER_IMAGE = 'ghcr.io\u002Fopenhands\u002Fagent-server:\u003Cmerge-commit-sha>-python'\n```\n\n**Regenerate lock files:**\n```bash\npoetry lock && uv lock && cd enterprise && poetry lock && cd ..\n```\n\n### B3. Wait for the OpenHands enterprise image to build\n\nPush the pinned changes. The OpenHands CI will build a new enterprise Docker image (`ghcr.io\u002Fopenhands\u002Fenterprise-server:sha-\u003COH_COMMIT>`) that bundles the unreleased SDK. Wait for the \"Push Enterprise Image\" job to succeed.\n\n### B4. Deploy and test\n\nFollow [Deploying to a Staging Feature Environment](#deploying-to-a-staging-feature-environment) using the new OpenHands commit SHA.\n\n### B5. Before merging: remove the pin\n\n**CI guard:** `check-package-versions.yml` blocks merge to `main` if `[tool.poetry.dependencies]` contains `rev` fields. Before the OpenHands PR can merge, the SDK PR must be merged and released to PyPI, then the pin must be replaced with the released version number.\n\n---\n\n## Deploying to a Staging Feature Environment\n\nThe `deploy` repo creates preview environments from OpenHands PRs.\n\n**Option A — GitHub Actions UI (preferred):**\nGo to `OpenHands\u002Fdeploy` → Actions → \"Create OpenHands preview PR\" → enter the OpenHands PR number. This creates a branch `ohpr-\u003CPR>-\u003Crandom>` and opens a deploy PR.\n\n**Option B — Update an existing feature branch:**\n```bash\ncd deploy\ngit checkout ohpr-\u003CPR>-\u003Crandom>\n# In .github\u002Fworkflows\u002Fdeploy.yaml, update BOTH:\n#   OPENHANDS_SHA: \"\u003Cfull-40-char-commit>\"\n#   OPENHANDS_RUNTIME_IMAGE_TAG: \"\u003Csame-commit>-nikolaik\"\ngit commit -am \"Update OPENHANDS_SHA to \u003Ccommit>\" && git push\n```\n\n**Before updating the SHA**, verify the enterprise Docker image exists:\n```bash\ngh api repos\u002FOpenHands\u002FOpenHands\u002Factions\u002Fruns \\\n  --jq '.workflow_runs[] | select(.head_sha==\"\u003CCOMMIT>\") | \"\\(.name): \\(.conclusion)\"' \\\n  | grep Docker\n# Must show: \"Docker: success\"\n```\n\nThe deploy CI auto-triggers and creates the environment at:\n```\nhttps:\u002F\u002Fohpr-\u003CPR>-\u003Crandom>.staging.all-hands.dev\n```\n\n**Wait for it to be live:**\n```bash\ncurl -s -o \u002Fdev\u002Fnull -w \"%{http_code}\" https:\u002F\u002Fohpr-\u003CPR>-\u003Crandom>.staging.all-hands.dev\u002Fapi\u002Fv1\u002Fhealth\n# 401 = server is up (auth required). DNS may take 1-2 min on first deploy.\n```\n\n## Running E2E Tests Against Staging\n\n**Critical: Feature deployments have their own Keycloak instance.** API keys from `app.all-hands.dev` or `$OPENHANDS_API_KEY` will NOT work. You need a test API key for the specific feature deployment. The user must provide one.\n\n```python\nfrom openhands.workspace import OpenHandsCloudWorkspace\n\nSTAGING = \"https:\u002F\u002Fohpr-\u003CPR>-\u003Crandom>.staging.all-hands.dev\"\n\nwith OpenHandsCloudWorkspace(\n    cloud_api_url=STAGING,\n    cloud_api_key=\"\u003Ctest-api-key-for-this-deployment>\",\n) as workspace:\n    # Test the new feature\n    llm = workspace.get_llm()\n    secrets = workspace.get_secrets()\n    print(f\"LLM: {llm.model}, secrets: {list(secrets.keys())}\")\n```\n\nOr run an example script:\n```bash\nOPENHANDS_CLOUD_API_KEY=\"\u003Ckey>\" \\\nOPENHANDS_CLOUD_API_URL=\"https:\u002F\u002Fohpr-\u003CPR>-\u003Crandom>.staging.all-hands.dev\" \\\npython examples\u002F02_remote_agent_server\u002F10_cloud_workspace_saas_credentials.py\n```\n\n### Recording results\n\nPush test output to the SDK PR's `.pr\u002Flogs\u002F` directory:\n```bash\ncd software-agent-sdk\npython test_script.py 2>&1 | tee .pr\u002Flogs\u002F\u003Ctest_name>.log\ngit add -f .pr\u002Flogs\u002F\u003Ctest_name>.log .pr\u002FREADME.md\ngit commit -m \"docs: add e2e test results\" && git push\n```\n\nComment on **both PRs** with pass\u002Ffail summary and link to logs.\n\n## Key Gotchas\n\n| Gotcha | Details |\n|--------|---------|\n| **Feature env auth is isolated** | Each `ohpr-*` deployment has its own Keycloak. Production API keys don't work. |\n| **Two SHAs in deploy.yaml** | `OPENHANDS_SHA` and `OPENHANDS_RUNTIME_IMAGE_TAG` must both be updated. The runtime tag is `\u003Csha>-nikolaik`. |\n| **Enterprise image must exist** | The Docker CI job on the OpenHands PR must succeed before you can deploy. If it hasn't run, push an empty commit to trigger it. |\n| **DNS propagation** | First deployment of a new branch takes 1-2 min for DNS. Subsequent deploys are instant. |\n| **Merge-commit SHA ≠ head SHA** | SDK CI tags Docker images with GitHub Actions' merge-commit SHA, not the PR head SHA. Check the SDK PR description or CI logs for the correct tag. |\n| **SDK pin blocks merge** | `check-package-versions.yml` prevents merging an OpenHands PR that has `rev` fields in `[tool.poetry.dependencies]`. The SDK must be released to PyPI first. |\n| **Flow A: stock agent-server is fine** | When only the Cloud API changes, `OpenHandsCloudWorkspace` talks to the Cloud server, not the agent-server. No custom image needed. |\n| **Flow B: agent-server image is required** | When the server needs new SDK code inside runtime containers, you must pin to the SDK PR's agent-server image. |\n",{"name":5,"description":7},"main","98849457621881ae2414719b82b8bc1cf535b4ab",".agents\u002Fskills\u002Fcross-repo-testing",781,"https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk","https:\u002F\u002Fgithub.com\u002FOpenHands","https:\u002F\u002Fopenhands.dev","2026-11-15 01:41:08",{"source":9,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add OpenHands\u002Fsoftware-agent-sdk --skill cross-repo-testing",{"tool":73,"command":74},"bunx","bunx skills add OpenHands\u002Fsoftware-agent-sdk --skill cross-repo-testing",{"tool":76,"command":77},"pnpm","pnpm dlx skills add OpenHands\u002Fsoftware-agent-sdk --skill cross-repo-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fcross-repo-testing\u002FSKILL.md",true,[],[82,106,122,135,148,157],{"skillNo":83,"name":84,"nameZh":16,"description":85,"descriptionZh":16,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":54},"01M70N7TM3VRT2YVJWMFJB93R4","verify-sdk","This skill should be used to \"verify SDK behavior\", \"check an SDK change against the feature map\", \"run the SDK feature map\", \"maintain the SDK feature map\", or \"run the daily SDK map pass\". It holds the maintained map of what the OpenHands SDK does in-process (agent loop, LLMs, conversations, events, condensers, skills, plugins, MCP, hooks, sub-agents, critic, security, tools, workspaces, settings, observability, ACP), the control-sdk driver its recipes use, and sdk-map (check, owners, baseline, run, report).","https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fverify-sdk\u002FSKILL.md",[],[89,90,53,91,92,38,93,94,95,96,97,98,99,100,34,101,102,103,104,105],"verify sdk","verify","critic","conversations","control","map","maintain","workspaces","daily","hooks","use","check","loop","observability","change","llms","MCP",{"skillNo":107,"name":108,"nameZh":109,"description":110,"descriptionZh":111,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":112,"categories":113,"keywords":118,"publishedAt":54},"01M6C29EG7KM3YYQK1TX747Q0X","only","固定位置组件发现示例","The one component in a fixed location this format discovers.","该格式在固定位置发现的唯一组件。","https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fagent_plugins\u002Fwrong-locations\u002Fskills\u002Fonly\u002FSKILL.md",[114,115],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":116,"categoryName":117,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BSYDSNXQT2W2GMZGF0ZHH4","示例与演示技能",[108,119,120,121],"location","format","component",{"skillNo":123,"name":124,"nameZh":125,"description":126,"descriptionZh":127,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":128,"categories":129,"keywords":132,"publishedAt":54},"01M6C29D0ZE9EAD0B72S5C7TYC","never","禁止发现技能示例","Must never be discovered; the manifest is rejected first.","绝不可被发现；清单（manifest）会首先被拒绝。","https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fagent_plugins\u002Funsupported-schema\u002Fskills\u002Fnever\u002FSKILL.md",[130,131],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":116,"categoryName":117,"taxonomyType":27,"taxonomyTypeDesc":28},[124,133,134],"first","manifest",{"skillNo":136,"name":137,"nameZh":138,"description":139,"descriptionZh":140,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":141,"categories":142,"keywords":145,"publishedAt":54},"01M6C29BSP5CJZ6T7A2HM18C35","good","正常技能加载示例","Loads while its broken sibling is skipped.","当损坏的同级技能被跳过时正常加载。","https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fagent_plugins\u002Fpartial-failures\u002Fskills\u002Fgood\u002FSKILL.md",[143,144],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":116,"categoryName":117,"taxonomyType":27,"taxonomyTypeDesc":28},[137,146,147],"loads","broken",{"skillNo":149,"name":147,"nameZh":150,"description":16,"descriptionZh":151,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":152,"categories":153,"keywords":156,"publishedAt":54},"01M6C29ADJKMKDVYG57TSAZV7J","损坏技能加载示例","","https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fagent_plugins\u002Fpartial-failures\u002Fskills\u002Fbroken\u002FSKILL.md",[154,155],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},{"categoryNo":116,"categoryName":117,"taxonomyType":27,"taxonomyTypeDesc":28},[147],{"skillNo":158,"name":159,"nameZh":160,"description":161,"descriptionZh":162,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":10,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":163,"categories":164,"keywords":171,"publishedAt":54},"01M6C2996Q7PX47VFV5P4KJ5F8","ok","清单容错加载","Loads despite the two non-fatal manifest violations.","尽管存在两处非致命的清单违规，仍会加载。","https:\u002F\u002Fgithub.com\u002FOpenHands\u002Fsoftware-agent-sdk\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fplugins\u002Fagent_plugins\u002Fnon-fatal-manifest\u002Fskills\u002Fok\u002FSKILL.md",[165,168],{"categoryNo":166,"categoryName":167,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":169,"categoryName":170,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BRN0CV1NMDZ5TEJX1GVM29","插件与技能管理",[159,134,146]]