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

未关闭 适合新手
#1,347 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
62/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
git, github-actions, rust, typescript

调研方向

从正文中提到的两个测试夹具开始: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 规则进行比较。当两个 harness 测试在 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 分钟
30 天内合并 PR
244

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

quarto-dev/q2 的其他 Issue

查看 quarto-dev/q2 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。