Commit 5137942
ci: harden release chart doc sync push against races (FB-2030) (#31)
## Background
FB-2030: the release workflow can fail when it commits regenerated chart
docs and then loses a push race to another commit on `main`.
## Summary
- set the `release-chart` checkout to `fetch-depth: 0` so rebase has a
reliable merge base.
- replace the one-shot push in `Sync generated chart README to released
version` with a 3-attempt retry loop.
- after a rejected push, fetch latest authenticated `main` and rebase
before retrying.
- document the race condition and mitigation in `AGENTS.md` Known
issues.
## Test Plan
- [x] `actionlint .github/workflows/helm-release-cd.yaml`
Made with [Cursor](https://cursor.com)
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 3fc5e44 commit 5137942
2 files changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| 74 | + | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
| |||
113 | 114 | | |
114 | 115 | | |
115 | 116 | | |
116 | | - | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
117 | 135 | | |
118 | 136 | | |
119 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
137 | 138 | | |
138 | 139 | | |
139 | 140 | | |
| |||
0 commit comments