发布

  • [NA] [QA] fix: resolve test-suite id before closing bridge client (#7321)

    frostbyte_neo 发布于 2026-07-02 11:32:11 +00:00

    The opik-sdk-driver E2E bridge's create_test_suite route read suite.id
    (a lazy cached_property that fetches the dataset from the backend on
    first access) after the finally block had already called
    client.end(flush=True), closing the httpx client. The deferred fetch then
    raised "RuntimeError: Cannot send a request, as the client has been closed",
    surfacing as a bare 500 that failed the SDK-seeded test-suites E2E smoke.

    Resolve suite.id and suite.name inside the try block, while the client is
    still open, mirroring what the insert-items route already does.

    下载附件