test(install): coverage follow-ups from the #387 / #388 reviews

Aperta
#389 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
bash
Ambito
cli, testing

Direzione di ricerca

Start with check-uninstall.sh, check-install-safety.sh, tests/lib/install-home.sh, and check-install-manifest.sh; read each listed follow-up and the related review context from #387 and #388. Implement the test and helper changes in the checklist, then run all four installer checks under /bin/bash 3.2. Done means every box is checked and all four checks pass.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement

Test-only lows from the GLM reviews of the installer manifest (#387) and uninstall (#388) PRs. They were left under the review stop rule; none affects installer behaviour.

  • check-uninstall.sh:
    • Add a skip case where a link's text drifted from the recorded source.
    • Add an uninstall run with managed settings present.
    • Assert every skip carries a string reason, so a skip can't slip through with only restore set.
    • Assert managed_settings == [] under the empty root.
    • Guard $WORK in run_at.
  • check-install-safety.sh:
    • Reap the lock-holder process when an assertion fails.
    • Add a real two-install race on the flock, beyond the held-lock case.
  • tests/lib/install-home.sh:
    • snap_tree's skip argument should prune a skipped directory's children.
    • Document that the lib owns the EXIT trap.
  • check-install-manifest.sh:
    • Field-check link records in plan mode, not only install mode.

Done when each box is checked and the four installer checks still pass under /bin/bash 3.2.

Lingua principale
HTML
Stelle
347
Fork
12
Merge medio
2g 16h
PR unite (30g)
95

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di coco-research/coco

Tutte le issue di coco-research/coco

Issue simili

Altre issue su CLI

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.