macOS contributor gates: Messaging config tests fail under the symlinked macOS temporary directory
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 2/5
- Temps estimé
- 1-3 heures
- Accessibilité débutants
- 83/100
Piste de recherche
Commencez par les trois tests en échec dans crates/registry-messaging/src/config.rs autour des lignes 1798 et 1817, puis comparez la manière dont les tests de configuration d’autres produits gèrent les répertoires temporaires. Reproduisez les échecs sous macOS ou examinez le workflow planifié « macOS contributor gates ». Le travail est terminé lorsque les tests utilisent un chemin de fixture canonisé et réussissent, tout en préservant le refus des symlinks par le loader.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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.
- Langage dominant
- Rust
- Étoiles
- 2
- Forks
- 0
- Merge moyen
- 9 h 48 min
- PR mergées (30 j)
- 151
Préparer son environnement
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de registrystack/registry-stack
-
area:breg enhancement
Difficulté 2/5 1-3 heures Accessibilité débutants 65/100
registrystack/registry-stack#2765 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
registrystack/registry-stack#2761 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 70/100
registrystack/registry-stack#2743 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
registrystack/registry-stack#2706 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
registrystack/registry-stack#2698 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de registrystack/registry-stack
Issues similaires
-
[Bug] 建议把黑白主题设置同步到启动页面Ouvertebug
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
AstrBotDevs/AstrBot-desktop#197 ·
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 75/100
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 68/100
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 82/100
stackabletech/airflow-operator#898 ·
Les mainteneurs répondent en général sous 1 jour
-
2 advisory ignore entries no longer match anything (`bytes`, `time` already patched in `Cargo.lock`)Peut-être pris @zyl71 l’a pris aujourd’hui. Ouverte
Difficulté 1/5 Moins d'une heure Accessibilité débutants 88/100