Skip to content

test: unify container smoke tests and make the fixture exercise the Dockerfiles #108

Closed

Description

@mmcky

Three drifted copies of the container smoke test, and a fixture exercising none of the non-trivial Dockerfile behaviour (2026-07 audit). v0.11.0 (#125) shipped most of the fix; v0.12.0 (#171) delivered items 1-3. containers/quantecon is the full image, containers/quantecon-build the lean one (containers/quantecon-build/README.md:1).

1. The fixture sidesteps the theme and the FreeSerif path

containers/quantecon/tests/minimal-jupyter-book/_config.yml:26 (html_theme: sphinx_book_theme) never imports the quantecon-book-theme both images ship; :28 (fontpkg: "") suppresses the FreeSerif path the .otf-symlink workaround exists to fix.

fontpkg matters most: both Dockerfiles symlink .otf for the FreeFont TTFs because Sphinx's default xelatex fontpkg wants Extension=.otf while Ubuntu ships .ttf (containers/quantecon/Dockerfile:54-61, stated :55-56; containers/quantecon-build/Dockerfile:54-59); emptying it takes the TeX-defaults path, so a symlink regression stays green. test-xelatex.tex:5 sets \setmainfont{DejaVu Serif}, so nothing else loads a FreeFont face through fontspec.

Theme versions can diverge too: full pins quantecon-book-theme==0.21.0 (containers/quantecon/environment.yml:17), lean a floor >=0.21.0 (containers/quantecon-build/environment.yml:66).

Real regression risk: dropping fontpkg can legitimately turn one image's pdflatex build red — the point of the change, so validate before merge (below).

2. test-container.sh is dead code the README still points at

containers/quantecon/tests/test-container.sh: untouched since 2025-11-20 (48d6a92), in no workflow, set -e only (:5, no -W), full image hardcoded at :14, :21, :29, :37 (lean invisible) — superseded by smoke-test.sh in a real container job. But containers/quantecon/README.md:223-228 still gives it as "To run all tests:", :230-234 presents its four steps as the test suite, and :241 demotes it only to an "Older…" entry. Deleting it loses no local Docker path: run-local-tests.sh:31-34 spells out the docker run … smoke-test.sh invocation, caveat HOME=/root so it cannot reproduce #85.

3. run-local-tests.sh drifts from the shared script

run-local-tests.sh:86 (html) and :99 (pdflatex) omit -W --keep-going, which smoke-test.sh:55 and :84 both pass, so a warning-level problem that fails CI passes locally. Align them, or comment that the divergence is deliberate for the macOS host toolchain.

Validating a fixture change (read before item 1)

test-container.yml fires only on workflow_dispatch or a completed Build QuantEcon Containers run (:6-11) — no pull_request trigger, so a fixture PR gets no CI signal. Dispatch on the branch with gh workflow run test-container.yml --ref <your-branch>; checkout uses github.event.workflow_run.head_sha || github.sha (:45), so it tests your fixture against the published :latest images. Otherwise the first signal is post-merge: build-containers.yml rebuilds on a push to main touching containers/**, then Test Container follows.

Not #100 (no automated tests for publish/preview/cache action logic), which stays open for that gap; this issue is the container tests being unable to fail.

Checklist

Activity

  1. added
    infrastructure
    on Jul 23, 2026
  2. quantecon-services commented on Sep 24, 2026

    @quantecon-services
    Collaborator

    The remaining items were delivered in v0.12.0 (#171); the rest shipped in v0.11.0 (#125). Test Container was dispatched on the branch before merge (run 35856212850) and was green on both images; it has been green on main since. The checklist above is ticked. Closing as completed.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    infrastructure

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions