Periodically find and queue missing compiler compatibility checks
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
- 22/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Domínio
- backend
Direção de pesquisa
This is design work, so start by reading the linked #800, #801 and #803 to see what those changes already cover. The issue names no files: look for where the publish job queues compiler matrix jobs and where the existing job queue is written. Done means a design decision on the stateless sweep, the queue-insertion rule, and whether scheduling moves outside the publish job's success boundary, agreed with maintainers before any code is written.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
A package can finish publishing, but some of its compiler compatibility checks may never get queued. For example, the server might time out or restart while finding the checks to run. The package is available to users, but its list of supported compilers can remain incomplete indefinitely.
This happened with [email protected] in #800.
#801 makes follow-up scheduling faster and inserts jobs one at a time. That saves jobs already queued before an interruption, but it cannot recover checks it never reached. #803 improves solver performance, but faster solving alone does not repair missing checks.
So the basic problem remains: how do we detect and fix the unavoidable case where a compiler matrix job might not get queued for a published package? And how do we do it without introducing new state?
I think we can accomplish this with a regular, stateless sweep over the registry. The basic idea is to run a small repair command on a regular interval, for example through a systemd timer. Each run starts fresh and asks: Which published package versions still need compiler checks?
For each published package version and each supported compiler:
- If the package metadata already lists that exact compiler, skip it.
- If a matrix job already exists for that package version and compiler, skip it.
- Otherwise, try to find dependency versions that allow a build with that compiler.
- If a build plan is found, immediately insert a matrix job into the existing queue.
- If no plan is found, leave it alone and try again on a later sweep. A dependency may gain compiler support in the meantime.
The normal server executor still runs the compilation jobs and updates package metadata after successful compilation. The repair command does not compile packages or write compatibility metadata itself.
This survives interruptions itself. As a concrete example, suppose a sweep finds 100 missing checks and stops after queuing 40. The next sweep starts over, skips those 40 existing jobs, and finds the remaining checks. We do not need to remember where the previous sweep stopped.
This also finds old gaps, not just gaps caused by the latest publication or compiler release. It should examine all currently published versions, not only the newest version of each package.
The goal is eventual repair: as sweeps and compilation jobs complete, missing compatibility results are filled in wherever a build succeeds. A missing compiler entry is not proof that the package cannot compile with it, and a solved build plan is not proof of compatibility until compilation succeeds.
Side note: separating queueing from publication success
If publication finishes successfully, a later timeout while queuing compatibility checks currently makes the publish job fail. This is kind of misleading though; the compiler matrix is an eventually-correct best-effort thing, not a requirement for publishing. Compatibility scheduling should be outside the publication job's success/failure boundary and timeout. The periodic sweep can take responsibility for discovering that follow-up work.
The same principle applies to matrix jobs: once compilation succeeds and the compatibility metadata is successfully written/pushed, a later failure to schedule dependant checks should not turn that successful check into a failed job.
- Linguagem predominante
- PureScript
- Estrelas
- 95
- Forks
- 79
- Merge médio
- 16h 13min
- PRs com merge (30d)
- 14
Preparar o ambiente
- 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 purescript/registry-dev
-
A failed publish job permanently blocks retrying the same package versionTalvez já em andamento Um pull request vinculado a esta issue está aberto ou já foi mesclado. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 48/100
purescript/registry-dev#793 · 5 comentários ·
Mantenedores costumam responder em até 1 dia
-
Implement search and versioned Prim docs for the new PursuitTalvez livre de novo @thomashoneyman assumiu há 110 dias e não há nenhum pull request aberto. Abertapursuit
purescript/registry-dev#790 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Migrate Pursuit application to the monorepoTalvez livre de novo @thomashoneyman assumiu há 110 dias e não há nenhum pull request aberto. Abertapursuit
purescript/registry-dev#789 · 1 comentário · 1 reação · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Complete support for monorepos / subdir key and non-GitHub locationsTalvez livre de novo @thomashoneyman assumiu há 110 dias e não há nenhum pull request aberto. Aberta
purescript/registry-dev#750 · 1 reação · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
Deprecate creation of legacy package setsTalvez livre de novo @mikesol assumiu há 67 dias e não há nenhum pull request aberto. Aberta
purescript/registry-dev#745 · 5 comentários · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de purescript/registry-dev
Issues semelhantes
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
-
ManageSieve proxy: a backend's NO/BYE greeting is skipped as a capability line and reported as EOFAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
Mend: dependency security vulnerability
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
-
Mend: dependency security vulnerability
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
ManageIQ/manageiq-pods#1476 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
prime-radiant-inc/evener#6366 ·
Mantenedores costumam responder em até 1 dia