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

オープン 初心者向け
#1,346 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
testing-qa

調査の方向性

失敗している定数は hub-client/e2e-author/setup.ts(25行目付近)の AUTHOR_E2E_INFO_PATH です。これは250行目の globalSetup と author-attribution.spec.ts で読み込まれています。e2e/helpers/globalSetup.ts が tmpdir() と join() でパスを組み立てている方法と比較してください。Windows で author-attribution の E2E を実行するか、パスが OS の一時ディレクトリ配下に解決されることを確認してください。情報ファイルが Windows と Ubuntu の両方で書き込まれ、読み込まれれば完了です。

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Rust
スター
316
フォーク
23
平均マージ
8時間 19分
マージ済み PR(30日)
244

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

quarto-dev/q2 のほかの issue

quarto-dev/q2 の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。