Skip to content

Fix arcane-deploy: timeout, API parsing, and repo enabled state#15

Merged
nsheaps merged 4 commits intomainfrom
claude/fix-arcane-ci-deployment-UTgU0
Mar 20, 2026
Merged

Fix arcane-deploy: timeout, API parsing, and repo enabled state#15
nsheaps merged 4 commits intomainfrom
claude/fix-arcane-ci-deployment-UTgU0

Conversation

@nsheaps
Copy link
Owner

@nsheaps nsheaps commented Mar 20, 2026

Summary

  • Increase curl --max-time from 30s to 360s — the Arcane server performs an initial git sync inline during POST /gitops-syncs (server timeout is 5 min), so the 30s client timeout was killing the request before the sync could complete
  • Set enabled: true in the repository update payload — without this, if the repo was disabled in Arcane, the action would update credentials but leave it disabled, preventing syncs from working

Test plan

  • Re-run the arcane-deploy workflow in nsheaps/iac (manual dispatch with force=true)
  • Verify the repository shows as enabled in the Arcane UI
  • Verify the create sync call completes without timing out
  • Verify the sync deploys successfully

https://claude.ai/code/session_01EPuZkcSGc4zpbDDBvMd3Jz

claude and others added 4 commits March 20, 2026 02:41
The Arcane API wraps all responses in {success, data, pagination} but
the action was parsing responses as raw arrays/objects. This caused
repository lookup to always miss (creating duplicates) and ID extraction
from create responses to fail.

- List endpoints: use .data[] instead of .[] to iterate items
- Create endpoints: use .data.id instead of .id to extract IDs

https://claude.ai/code/session_01EPuZkcSGc4zpbDDBvMd3Jz
The Arcane server performs an initial git sync inline during POST
/gitops-syncs (cloning the repo and deploying the compose file).
The server-side timeout for this is 5 minutes, but the curl
--max-time was only 30 seconds, causing the request to time out
before the sync could complete.

https://claude.ai/code/session_01EPuZkcSGc4zpbDDBvMd3Jz
When updating an existing repository's credentials, the action was not
setting enabled: true. If the repo was disabled in Arcane, it would
stay disabled and syncs would not work.

https://claude.ai/code/session_01EPuZkcSGc4zpbDDBvMd3Jz
@nsheaps nsheaps changed the title Increase API timeout to 360s for sync-heavy operations Fix arcane-deploy: timeout, API parsing, and repo enabled state Mar 20, 2026
@nsheaps nsheaps merged commit e994642 into main Mar 20, 2026
2 checks passed
@nsheaps nsheaps deleted the claude/fix-arcane-ci-deployment-UTgU0 branch March 20, 2026 03:02
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