[Feature] Test Quarto PDF rendering in a Workbench session

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
latex, python
Domain
desktop, testing

Research direction

Start by reading the existing Workbench session tests and how VIP launches a normal user session; the issue does not name specific files or tests. Add a check that renders a small Quarto document with format: pdf and pdf-engine: lualatex using the user's normal home and TeX settings. Done means a nonempty PDF is created, failures retain logs, test files and the session are cleaned up, and the test fails on an affected image but passes on a fixed one in a fresh rendering environment.

Written by the indexing model from the issue text.

Description

enhancement team: workbench

Verify that a Workbench user 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 doesn't render anything to PDF in a Workbench session today, so it doesn't catch this.

Proposed solution

In a normal user session, render a small Quarto document with format: pdf and pdf-engine: lualatex. Check that rendering succeeds and creates a nonempty PDF.

  • Use the user's normal home directory and TeX settings. Don't add cache settings that could hide the bug.
  • Keep the render logs if the test fails, and clean up the test files and the session.
  • 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.