Windows: two hub-client harness tests fail on CRLF-checked-out fixtures

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

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
git, github-actions, rust, typescript

調査の方向性

本文で挙げられている2つのフィクスチャから始めます: crates/quarto-core/tests/fixtures/import-recordings/basic-docx/expected.qmd と crates/quarto-core/tests/fixtures/pandoc-goldens/smoke-all/mermaid/backticks.qmd。これらに対して git ls-files --eol を実行し、pandoc-goldens/parity/** に対する .gitattributes のルールと比較します。両方のハーネステストが windows-latest で成功すれば完了です。おそらくこれらのパスに eol=lf ルールを追加することになります。そのうえで、失敗していた仕様ファイルがローカルでも引き続き成功することを確認します。

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

説明

bug testing windows

Two hub-client harness tests fail on windows-latest in the firefox job:

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

  • pandoc-import-emf.harness.spec.ts:126, "importDocument imports basic-docx to its expected.qmd": the line diff shows a trailing invisible character on each expected line.
  • pandoc-parity.harness.spec.ts:30, "docx parity: smoke-all/mermaid/backticks.qmd": the expected text is on one line, the received text is split over real newlines.

Both pass on ubuntu at the same commit.

I think these are CRLF checkouts. On my Windows checkout git ls-files --eol reports i/lf w/crlf for both inputs, and no .gitattributes rule covers them (pandoc-goldens/parity/** is pinned to eol=lf, these two files aren't):

  • crates/quarto-core/tests/fixtures/import-recordings/basic-docx/expected.qmd
  • crates/quarto-core/tests/fixtures/pandoc-goldens/smoke-all/mermaid/backticks.qmd

I haven't confirmed the runner's autocrlf setting, and I can't explain why a CR changes how the mermaid SourceCode renders. We could pin both paths to eol=lf and rerun.

Related: #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 を短くまとめたダイジェスト。