Rolling upgrade: GitHub default-branch adoption can miss the first sync or an older replica's PATCH to main (#599 follow-up)
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 20/100
Direção de pesquisa
Read PR #607 and the two rolling-upgrade cases described here, then inspect the relevant sync and PATCH handling code and its tests. Decide how to prevent both missed adoption and an older replica's explicit PATCH from being overwritten; verify the behavior for each case. The issue names no source files or test paths, so locate them from the PR.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Problem
PR #607 adopts the GitHub default branch at a successful sync of a GitHub sync repo whose create omitted default_branch (#599). During a rolling upgrade from a release without this rule, two cases miss the upstream behavior. http-api.md documents both, and the PR's Codex round 1 raised both.
- A sync that an older worker runs does not adopt. The flag stays set, so the next sync by an upgraded worker adopts. Until that sync, the repo is on
main, and with no further trigger it stays there. - An older replica's
PATCH /repotomainbefore that sync writes nothing that differs from the create's placeholdermain. The next sync by an upgraded worker then replaces the caller's explicitmainwith the GitHub branch. A PATCH to any other branch is kept, because the adopt write requires the repo to still be onmain.
Possible fixes
- A fleet-version gate, like
OPENSTORAGE_SYNC_STEAL_LEGACY: an operator assertion that no older replica remains before creates set the flag. - A reconciliation sweep that schedules a sync for flagged repos with
success_count > 0. This covers case 1 only. - Deploy sequencing in the release notes: upgrade every replica before accepting GitHub sync creates.
Trigger
Act on this issue at the first report of a GitHub sync repo left on main after a rolling upgrade, or when a release that ships #607 is prepared (decide then whether the release notes need a sequencing note).
Refs #599
Generated with xum • Model: anthropic:claude-opus-5-5 • Thinking: high
- Linguagem predominante
- Go
- Estrelas
- 0
- Forks
- 0
- Merge médio
- 6h 16min
- PRs com merge (30d)
- 243
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de coder/openstorage
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
coder/openstorage#807 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 49/100
coder/openstorage#806 ·
Mantenedores costumam responder em até 1 dia
-
api: merge/preview ignores strategy, squash and allow_unrelated_historiesTalvez já em andamento @ThomasK33 assumiu hoje. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
coder/openstorage#805 ·
Mantenedores costumam responder em até 1 dia
-
githttp: +import remote serves clone and fetch, and its pushes stay out of the normal branch listTalvez já em andamento @ThomasK33 assumiu hoje. Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 20/100
coder/openstorage#804 · 2 comentários ·
Mantenedores costumam responder em até 1 dia
-
api: branches/create ignores expected_target_sha, so a guarded create or move can overwrite a branchTalvez já em andamento @ThomasK33 assumiu hoje. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
coder/openstorage#803 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de coder/openstorage
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 86/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
coder/coder-logstream-kube#255 · 1 comentário ·
-
kind/features
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
TencentBlueKing/bk-nodemgr#3991 ·
Mantenedores costumam responder em até 1 dia
-
meta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
last9/last9-mcp-server#554 ·
Mantenedores costumam responder em até 1 dia