This repository was archived by the owner on Nov 14, 2025. It is now read-only.
Commit b813a93
fix: add retry logic to artifact search to handle race conditions (#317)
Added exponential backoff retry logic to the determine-artifact.sh script
to handle race conditions where the Publish workflow starts before GitHub's
API has indexed the completed Main workflow run.
Changes:
- Retry up to 5 times with increasing delays (5s, 10s, 15s, 20s, 25s)
- Total retry window of ~75 seconds
- Clear logging of retry attempts
This fixes the issue where releases fail because:
1. Main workflow creates GitHub release
2. Release event triggers Publish workflow immediately
3. Publish workflow queries for Main workflow run
4. GitHub API hasn't yet indexed the just-completed workflow
5. Query returns empty results even though workflow succeeded
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude <[email protected]>1 parent 5c7e810 commit b813a93
File tree
2 files changed
+41
-11
lines changed- .changeset
- .github/scripts
2 files changed
+41
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | | - | |
122 | | - | |
123 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
124 | 125 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
130 | 145 | | |
131 | | - | |
132 | | - | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
133 | 153 | | |
134 | 154 | | |
135 | | - | |
| 155 | + | |
136 | 156 | | |
137 | 157 | | |
138 | 158 | | |
| |||
0 commit comments