macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directory
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Facilidade para iniciantes
- 83/100
Direção de pesquisa
Comece pelos três testes com falha em crates/registry-messaging/src/config.rs perto das linhas 1798 e 1817; em seguida, compare como os testes de configuração de outros produtos lidam com diretórios temporários. Reproduza as falhas no macOS ou inspecione o workflow programado “macOS contributor gates”. O trabalho estará concluído quando os testes usarem um caminho de fixture canonicalizado e passarem, preservando o comportamento do loader de recusar symlinks.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
The scheduled "macOS contributor gates" workflow has failed on every run since at least 15 November (the runs for 7f47a330f6, a8e5e49efe, fd2a888614 and 4be684f206). The 19 November run, which tested 4be684f206, failed in "Direct Cargo binaries and database-free gates": three registry-messaging config tests fail on macOS.
config::tests::runtime_loader_accepts_an_owner_writable_file_in_a_private_directory(crates/registry-messaging/src/config.rs:1817): the loader refuses the file withplatform.runtime-config.unsafe-file, "the runtime configuration path must not pass through" a symlink. The temporary directory is under/var/folders/..., and/varis a symlink to/private/varon macOS.config::tests::runtime_loader_refuses_a_group_writable_ancestorandconfig::tests::runtime_loader_refuses_a_group_writable_file(config.rs:1798): the refusal arrives, but for the symlinked path, so the assertion that the message mentions "owned by root or the runtime user" fails.
Likely cause
The tests build their fixtures under the default temporary directory without canonicalising it. Linux has no symlink there, so CI on Linux passes. The loader's refusal of symlinked paths is intended. The tests probably need to canonicalise the temporary directory, as other products' config tests do.
Not checked
I did not check whether the earlier failing runs failed for the same reason. They failed in the same job.
- Linguagem predominante
- Rust
- Estrelas
- 2
- Forks
- 0
- Merge médio
- 9h 48min
- PRs com merge (30d)
- 151
Preparar o ambiente
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 registrystack/registry-stack
-
area:breg enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 65/100
registrystack/registry-stack#2765 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
registrystack/registry-stack#2761 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 70/100
registrystack/registry-stack#2743 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
registrystack/registry-stack#2706 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
registrystack/registry-stack#2698 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de registrystack/registry-stack
Issues semelhantes
-
[Bug] 建议把黑白主题设置同步到启动页面Abertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 82/100
stackabletech/airflow-operator#898 ·
Mantenedores costumam responder em até 1 dia
-
2 advisory ignore entries no longer match anything (`bytes`, `time` already patched in `Cargo.lock`)Talvez já em andamento @zyl71 assumiu hoje. Aberta
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 88/100