Skip to content

fix(api-sync): fetch delivery artifacts to /tmp, not the repo tree - #73

Merged
ericviana merged 1 commit into
mainfrom
eric/fix-delivery-artifact-hygiene
Aug 4, 2026
Merged

ericviana merged 1 commit into
mainfrom
eric/fix-delivery-artifact-hygiene

Conversation

@ericviana

Copy link
Copy Markdown
Member

Summary

  • The api-sync workflow fetched .api-sync/spec-current.json and .api-sync/delivery.json into the repo tree before running the patcher, so the sync commit's git add -A swept delivery.json into feat: sync SDK with API changes (v5.3.0) #72 (merged as part of v5.3.0).
  • Biome's formatter check on that committed delivery.json then fails lint on main, which blocks the Main workflow (lint gates type-checking, tests and snyk via needs).

Fix

  • .github/workflows/api-sync.yml: fetch both delivered files to /tmp/api-sync/ instead of .api-sync/, and point the manifest verification and the patcher's --spec flag at that path. The committed tree now only ever gains patcher-made source changes plus the refreshed spec-snapshot.json.
  • Remove the already-committed .api-sync/delivery.json from main.
  • Add .api-sync/delivery.json to .gitignore alongside the existing spec-current.json entry, as a belt-and-braces guard.

Test plan

  • bun install
  • bun run lint:check passes (only 3 pre-existing warnings, unrelated to this change)
  • bun run sync:check passes with no pending drift
  • bun run test has 2 pre-existing failures (CreateInstanceRfiBody schema mismatch) that reproduce identically on main without this diff, confirmed unrelated to this fix
  • CI green on this PR

https://claude.ai/code/session_01F1stiNzuNtJXoXtiW9ZCbs

The api-sync workflow wrote spec-current.json and delivery.json into
.api-sync/ before running the patcher, so the sync commit's git add -A
swept delivery.json into the committed tree (#72). Biome's formatter
diff on that file then failed lint on main, blocking the Main workflow.

Fetch both files to /tmp/api-sync instead and point the manifest
verification and the patcher's --spec flag there, so the committed
tree only ever gains patcher-made source changes plus the refreshed
spec-snapshot.json. Also drop the already-committed delivery.json from
main and gitignore both paths as a belt-and-braces guard.

Claude-Session: https://claude.ai/code/session_01F1stiNzuNtJXoXtiW9ZCbs
@BernardoSM

BernardoSM commented Aug 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@ericviana
ericviana merged commit 275d11d into main Aug 4, 2026
8 of 11 checks passed
@ericviana
ericviana deleted the eric/fix-delivery-artifact-hygiene branch August 4, 2026 18:41
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