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

Open Beginner friendly
#1,347 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
git, github-actions, rust, typescript

Research direction

Start with the two fixtures named in the body: crates/quarto-core/tests/fixtures/import-recordings/basic-docx/expected.qmd and crates/quarto-core/tests/fixtures/pandoc-goldens/smoke-all/mermaid/backticks.qmd. Run git ls-files --eol on them and compare against the .gitattributes rule for pandoc-goldens/parity/**. Done when both harness tests pass on windows-latest, most likely by adding eol=lf rules for these paths and confirming the failing spec files still pass locally.

Written by the indexing model from the issue text.

Description

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.

Dominant language
Rust
Stars
316
Forks
23
Avg merge
8h 19m
Merged PRs (30d)
244

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-dev/q2

All issues in quarto-dev/q2

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.