Skip to content

e2e: migrate serverless tests to REST API v2 - #378

Merged
velaraptor-runpod merged 1 commit into
mainfrom
fix/rest-api-v2-migration
Nov 16, 2026
Merged

velaraptor-runpod merged 1 commit into
mainfrom
fix/rest-api-v2-migration

Conversation

@velaraptor-runpod

@velaraptor-runpod velaraptor-runpod commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

What

REST API v1 was retired on 2026-11-15 and rest.runpod.io no longer resolves (NXDOMAIN), so Serverless Model Tests has failed on every run since. scripts/serverless_e2e_test.py dies at template creation with socket.gaierror: [Errno -2] Name or service not known — before any HTTP request is sent. The workflow's cleanup safety nets still point at the dead v1 host too.

Changes

scripts/serverless_e2e_test.py

  • Base URL: https://rest.runpod.io/v1 → https://api.runpod.io/v2.
  • Templates: imageName → image, isServerless → serverless, containerDiskInGb → disk.
  • Endpoints: POST /endpoints → POST /v2/serverless with the v2 body — type: QUEUE, nested gpu (pools, count, plus the CUDA constraints), workers (min/max/idleTimeout), scaling (QUEUE_DELAY + queueDelay).
  • timeout is now set explicitly (10 minutes). v2 defaults it to 300000 ms and the migration guide says not to rely on that.
  • GPU selection uses serverless pools instead of type IDs. ADA_80_PRO is the H100 pool and currently holds exactly the three H100 types we listed before (checked against GET /v2/catalog/gpus); --gpu-type-ids becomes --gpu-pools.
  • --min-cuda-version drops the hub's allowedCudaVersions, because v2 rejects gpu.allowedCudaVersions together with gpu.minCudaVersion.
  • Deletes: /v2/serverless/{id} and /v2/templates/{id}.

.github/workflows/serverless-model-tests.yml

  • Both cleanup safety nets updated to the v2 delete URLs.

Verification

  • Through the migrated code paths against the live API: created a template + endpoint, fetched the endpoint back and confirmed what persisted (gpu.pools: ["ADA_80_PRO"], count: 1, allowedCudaVersions: ["13.0"], queue request URLs on api.runpod.ai/v2), then deleted both — GET on each returns 404.

  • Full e2e run against a real H100 endpoint (qwen3_8b config, image from the last main build):

    [serverless_e2e_test] PASS basic_inference_test
    [serverless_e2e_test] PASS openai_messages_test
    [serverless_e2e_test] All 2 test(s) passed for qwen3_8b
    

    Endpoint and template were torn down afterwards.

Notes

  • The browser-like User-Agent stays as-is: the Cloudflare block it works around was seen on the v1 host, and api.runpod.io currently accepts urllib's default UA (401 rather than 403). Cheap insurance.

rest.runpod.io stopped resolving when REST API v1 was retired on 2026-11-15, breaking template creation in serverless-model-tests. Move the e2e script and the workflow cleanup safety nets to https://api.runpod.io/v2 with the v2 request shapes, and select H100s through the ADA_80_PRO server pool instead of individual GPU type IDs.
@velaraptor-runpod
velaraptor-runpod merged commit 0a418bb into main Nov 16, 2026
11 checks passed
@velaraptor-runpod
velaraptor-runpod deleted the fix/rest-api-v2-migration branch November 16, 2026 20:29
@promptless

promptless Bot commented Nov 16, 2026

Copy link
Copy Markdown

Promptless documentation updates

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.

2 participants