[Feature] Test Quarto PDF rendering on Connect

Open
#812 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
74/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
python
Domain
backend, testing

Research direction

Find the existing VIP Connect Quarto HTML rendering test and use it as the entry point; the issue does not name a test file. Read how it uploads a document, invokes Connect rendering, checks the output, and cleans up deployed content. Add a small PDF case using format: pdf and pdf-engine: lualatex with default TeX settings; done means it fails on an affected image and produces a nonempty PDF on a fixed image in a fresh rendering environment, with logs retained on failure.

Written by the indexing model from the issue text.

Description

enhancement team: connect

Verify that Connect can render a Quarto document to PDF. Split from #801, which covered Connect and Workbench together.

Problem

TinyTeX can be installed in a root-owned directory that other users can't write to. LuaLaTeX then can't create its font cache, and PDF rendering fails.

VIP's current Connect Quarto test renders HTML, so it doesn't catch this.

Proposed solution

Upload a small Quarto document with format: pdf and pdf-engine: lualatex and let Connect render it. Check that rendering succeeds and the output is a nonempty PDF.

  • Use the default TeX settings. Don't add cache settings that could hide the bug.
  • Keep the render logs if the test fails, and clean up the deployed content.
  • Keep the existing HTML test.
  • Confirm the test fails on an affected image and passes on a fixed one, using a fresh rendering environment.

Image-level goss tests can catch this during image builds; this test checks that rendering works through the deployed product.

Related: posit-dev/images-shared#855

Dominant language
Python
Stars
9
Forks
1
Avg merge
15h 31m
Merged PRs (30d)
44

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

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 posit-dev/vip

All issues in posit-dev/vip

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.