chore(rust): tag optional request body snippet tests as slow - #17501
chore(rust): tag optional request body snippet tests as slow#17501devin-ai-integration[bot] wants to merge 1 commit into
Conversation
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
SDK Generation Benchmark ResultsComparing PR branch against median of 5 nightly run(s) on Full benchmark table (click to expand)
main (generator): generator-only time via --skip-scripts (includes Docker image build, container startup, IR parsing, and code generation — this is the same Docker-based flow customers use via |
|
Superseded: |
Description
@fern-api/rust-dynamic-snippets#testfails in CI whenever the turbo cache misses: two of the four tests inOptionalRequestBody.test.tsexceed vitest's 5s default timeout because each test builds a dynamic snippets generator that loads and parsesrespect-optional-request-body.jsonfrom disk. The test bodies take ~220ms locally, so the failure is cold-start/IO latency on the runner, not a behavior regression.This tags the describe block with
slow, the repo's existing convention (packages/configs/vitest/base.mjsgives that tag a 30s timeout), matching howpackages/generator-clihandles its heavy-IO tests.Changes Made
describe("optional request body", { tags: ["slow"] }, ...)ingenerators/rust/dynamic-snippets/src/__test__/OptionalRequestBody.test.tsNo changelog: test-only, no generator output changes.
Testing
CI=true npx vitest run src/__test__/OptionalRequestBody.test.tsingenerators/rust/dynamic-snippets— 4 passedError: Test timed out in 5000ms.atOptionalRequestBody.test.ts:32:5and:44:5)Link to Devin session: https://app.devin.ai/sessions/3783789dffe246c9871ebfbf25897445