The remote cache keeps one entry per task, so branches overwrite each other's results
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 5/5
- Tempo estimado
- Mais de uma semana
- Facilidade para iniciantes
- 35/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- rust
- Domínio
- backend-api-design, distributed-systems
Direção de pesquisa
Start with the server API design discussed in #713 and the remote cache upload flow in #755. Trace how cache keys are looked up and replaced, then define completion as allowing different input states to coexist and enabling a run to hit a result uploaded from another branch.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
A remote cache entry is stored under a key made from the task's command, arguments, env, and input/output globs. The contents of the input files aren't part of the key. They're checked after the entry is fetched.
So all input states of a task share one entry. When main and PR branches run the same task with different sources, each upload replaces the previous one, and a fetch hits only if the latest upload came from the same inputs. The more branches share a remote cache, the fewer hits each gets.
The secondary key doesn't help: it only identifies the task, and a fallback through it is used only to explain the miss.
Adding a digest of the input files to the key only covers tasks with explicit input globs. By default, inputs are detected while the task runs, so they aren't known at lookup time. Covering them needs a lookup that can return several candidate entries for one key.
Expected: entries for different input states coexist, so a run can hit an entry uploaded from another branch.
Affects the server API design (#713) and remote cache uploads (#755).
- Linguagem predominante
- Rust
- Estrelas
- 473
- Forks
- 44
- Merge médio
- 1d 4h
- PRs com merge (30d)
- 73
Preparar o ambiente
Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.
- Sem Dockerfile nem 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 voidzero-dev/vite-task
-
Concurrent cache hits for the same task fail to restore outputs with "File exists (os error 17)"Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
voidzero-dev/vite-task#846 ·
Mantenedores costumam responder em até 1 dia
-
Windows: automatic filesystem tracking makes Git/MSYS sh.exe fail with MapViewOfFileEx error 487Aberta
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 18/100
voidzero-dev/vite-task#830 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
voidzero-dev/vite-task#822 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Let tools mark cache directories with CACHEDIR.TAGTalvez já em andamento @lifeiscontent assumiu há 10 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
voidzero-dev/vite-task#793 ·
Mantenedores costumam responder em até 1 dia
-
Preview cache hits without running tasksTalvez já em andamento @lifeiscontent assumiu há 11 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 52/100
voidzero-dev/vite-task#791 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de voidzero-dev/vite-task
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
storytold/photocraft#5260 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
extendr/extendr.github.io#134 ·
-
awaiting-response bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 72/100
wildcard/caro#1655 · 1 comentário ·
Mantenedores costumam responder em até 1 dia