Windows: hub-client author-attribution E2E writes its info file to /tmp

Aperta Adatta ai principianti
#1,346 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
1/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
testing-qa

Direzione di ricerca

La costante che fallisce è AUTHOR_E2E_INFO_PATH in hub-client/e2e-author/setup.ts (intorno alla riga 25), letta da globalSetup alla riga 250 e da author-attribution.spec.ts. Confrontala con il modo in cui e2e/helpers/globalSetup.ts costruisce il suo percorso con tmpdir() e join(). Esegui l'E2E author-attribution su Windows oppure verifica che il percorso si risolva nella directory temporanea del sistema operativo. È completato quando il file di informazioni viene scritto e letto sia su Windows sia su Ubuntu.

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

Descrizione

bug testing windows

The author-attribution E2E crashes in its global setup on windows-latest, before any test runs:

https://github.com/quarto-dev/q2/actions/runs/45607179507

Error: ENOENT: no such file or directory, open 'D:\tmp\hub-author-e2e.json'
> 250 |     writeFileSync(AUTHOR_E2E_INFO_PATH, JSON.stringify(info));
    at globalSetup (D:\a\q2\q2\hub-client\e2e-author\setup.ts:250:5)

The path is a literal /tmp, which on Windows resolves to D:\tmp, a directory that doesn't exist:

https://github.com/quarto-dev/q2/blob/49036fc2d6f8dfc4eeddb7b44f3ad69be313aad2/hub-client/e2e-author/setup.ts#L25

author-attribution.spec.ts reads the same constant. #1295 fixed this class of error for hub-e2e-server.json in e2e/helpers/globalSetup.ts, and that error is gone in this run, but it didn't touch e2e-author. Ubuntu passes because /tmp exists there.

We could build the path with join(tmpdir(), 'hub-author-e2e.json') like the other helper. I haven't run the fix.

Related: #1295, #1275.

Lingua principale
Rust
Stelle
316
Fork
23
Merge medio
8h 19m
PR unite (30g)
244

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 quarto-dev/q2

Tutte le issue di quarto-dev/q2

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.