Skip to content

[pull] main from fern-api:main#763

Merged
pull[bot] merged 3 commits into
code:mainfrom
fern-api:main
Jun 2, 2026
Merged

[pull] main from fern-api:main#763
pull[bot] merged 3 commits into
code:mainfrom
fern-api:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented Jun 2, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

jsklan and others added 3 commits June 2, 2026 09:28
…ld (#16175)

The sync-cli-sdk workflow was failing because:

1. src/openapi/parser.rs has #[cfg(test)] blocks with include_str!
   calls referencing CLI directories (bigcommerce, box, devin, etc.)
   that are not synced — only cli/openapi-fixture/ is.

2. Smoke test files (square_smoke.rs, sarvam_smoke.rs, etc.) reference
   CARGO_BIN_EXE_<binary> env vars for binaries not in the projected
   Cargo.toml.

Both fail under `cargo build --locked --all-features --tests`.

Fix:
- Remove the tests/ rsync entirely — cli-sdk's own CI validates test
  compilation; the vendored SDK only needs library + openapi-fixture.
- Drop `--tests` from the workflow's cargo build verification — this
  matches what users actually build and avoids the parser.rs #[cfg(test)]
  include_str! issue.
- Clean up stale tests/ directory if present from a prior sync revision.
- Simplify src/ rsync (the old excludes for tests/ and cli/ paths were
  relative to src/ and therefore dead).

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
…g local generation (#16160)

* fix(cli): fix ENOTEMPTY error when removing temp .git directory during local generation

Disable git auto-gc after git init and add maxRetries/force to fs.rm
in copyGeneratedFilesWithFernIgnoreInTempRepo to handle race conditions
with git background processes that may still hold references to
.git/objects/pack.

Co-Authored-By: will.kendall@buildwithfern.com <wpk235@gmail.com>

* test(cli): add comprehensive tests for ENOTEMPTY .git cleanup fix

Integration tests (LocalTaskHandler.gitCleanup.test.ts):
- Verify .git directory is fully removed after copyGeneratedFiles
- Verify gc.auto=0 is set via loggingExeca spy (correct ordering)
- Verify gc.auto=0 via direct git config check
- Verify concurrent copyGeneratedFiles calls succeed without ENOTEMPTY

Unit tests (LocalTaskHandler.gitCleanupUnit.test.ts):
- Verify rm(.git) is called with maxRetries:3, retryDelay:100, force:true
- Verify git config gc.auto 0 is invoked between init and add

Co-Authored-By: will.kendall@buildwithfern.com <wpk235@gmail.com>

* style: fix biome formatting in test files

Co-Authored-By: will.kendall@buildwithfern.com <wpk235@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: will.kendall@buildwithfern.com <wpk235@gmail.com>
@pull pull Bot locked and limited conversation to collaborators Jun 2, 2026
@pull pull Bot added the ⤵️ pull label Jun 2, 2026
@pull pull Bot merged commit be5dfaa into code:main Jun 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant