Repository navigation
e2e: migrate serverless tests to REST API v2 - #378
Merged
Merged
Conversation
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.
colin99d
approved these changes
Nov 16, 2026
Promptless documentation updates
|
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.
What
REST API v1 was retired on 2026-11-15 and
rest.runpod.iono longer resolves (NXDOMAIN), soServerless Model Testshas failed on every run since.scripts/serverless_e2e_test.pydies at template creation withsocket.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.pyhttps://rest.runpod.io/v1→https://api.runpod.io/v2.imageName→image,isServerless→serverless,containerDiskInGb→disk.POST /endpoints→POST /v2/serverlesswith the v2 body —type: QUEUE, nestedgpu(pools,count, plus the CUDA constraints),workers(min/max/idleTimeout),scaling(QUEUE_DELAY+queueDelay).timeoutis now set explicitly (10 minutes). v2 defaults it to 300000 ms and the migration guide says not to rely on that.ADA_80_PROis the H100 pool and currently holds exactly the three H100 types we listed before (checked againstGET /v2/catalog/gpus);--gpu-type-idsbecomes--gpu-pools.--min-cuda-versiondrops the hub'sallowedCudaVersions, because v2 rejectsgpu.allowedCudaVersionstogether withgpu.minCudaVersion./v2/serverless/{id}and/v2/templates/{id}..github/workflows/serverless-model-tests.ymlVerification
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 onapi.runpod.ai/v2), then deleted both —GETon each returns 404.Full e2e run against a real H100 endpoint (
qwen3_8bconfig, image from the last main build):Endpoint and template were torn down afterwards.
Notes
User-Agentstays as-is: the Cloudflare block it works around was seen on the v1 host, andapi.runpod.iocurrently accepts urllib's default UA (401 rather than 403). Cheap insurance.