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

Abierto Apto para principiantes
#1,346 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
1/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
testing-qa

Línea de trabajo

La constante que falla es AUTHOR_E2E_INFO_PATH en hub-client/e2e-author/setup.ts (alrededor de la línea 25), que lee globalSetup en la línea 250 y author-attribution.spec.ts. Compárala con la forma en que e2e/helpers/globalSetup.ts construye su ruta con tmpdir() y join(). Ejecuta el E2E de author-attribution en Windows o comprueba que la ruta se resuelve dentro del directorio temporal del sistema operativo. Está terminado cuando el archivo de información se escribe y se lee tanto en Windows como en Ubuntu.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Rust
Estrellas
316
Forks
23
Merge medio
8 h 19 min
PR fusionados (30 d)
244

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de quarto-dev/q2

Todos los issues de quarto-dev/q2

Issues similares

Más issues de Rust

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.