Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
46380be
docs: M2 shipped as v0.2.0; correct the release status
Jonathan-Schaefer-git Aug 21, 2026
0eb3797
core: promote the PNG encoder out of the SVG backend (D65)
Jonathan-Schaefer-git Aug 21, 2026
b1f0d60
plot: a byte-shaped output path (D60)
Jonathan-Schaefer-git Aug 21, 2026
5d4096e
core: the asset-carrying render result (D64)
Jonathan-Schaefer-git Aug 21, 2026
6dda7de
tikz: Rasters = true, via includegraphics and a sidecar (D64)
Jonathan-Schaefer-git Aug 21, 2026
9c906c0
plot: Chart.image, and the golden pair that proves the sidecar (D64)
Jonathan-Schaefer-git Aug 21, 2026
a106f22
skia: the package and the traversal, to PNG (D66)
Jonathan-Schaefer-git Aug 21, 2026
627226d
skia: real text shaping (D61, D62)
Jonathan-Schaefer-git Aug 23, 2026
d3f360b
skia: PDF, with pinned metadata (D63)
Jonathan-Schaefer-git Aug 23, 2026
7a2866c
skia: the verification sweep, and gate 8
Jonathan-Schaefer-git Aug 23, 2026
ae54ef6
docs: the M2.5 sweep
Jonathan-Schaefer-git Aug 23, 2026
c365f5c
skia: measure the unshaped face linearly, and state the tolerance as one
Jonathan-Schaefer-git Aug 30, 2026
cefa6e5
toolchain: one module resolves an external tool, and drains both pipe…
Jonathan-Schaefer-git Aug 30, 2026
5196491
ir: a tenth node case, and the producer names what it drew (D67, D68)
Jonathan-Schaefer-git Aug 30, 2026
27c99c4
anim: the algebra, and the clock that clamps in exactly one place (D7…
Jonathan-Schaefer-git Aug 31, 2026
435bae7
anim: a transform joins the witness, and a shape morphs by arc length…
Jonathan-Schaefer-git Sep 2, 2026
941ad20
plot: one arrangement for the whole shot, and the prefix pinned to it…
Jonathan-Schaefer-git Sep 3, 2026
1f6cdc1
storyboard: `let!` binds a name, and one mark gets a node (D69)
Jonathan-Schaefer-git Sep 3, 2026
b468735
frames: one measurer for the whole film, and the contract that says s…
Jonathan-Schaefer-git Sep 3, 2026
8e6df6d
video: a frame sequence becomes a file, and ffmpeg's licence stays ff…
Jonathan-Schaefer-git Sep 3, 2026
e2e6367
text: a run is split by coverage, and the fallback says what it did (…
Jonathan-Schaefer-git Sep 8, 2026
c2a83ba
tex: a formula becomes geometry, so every backend can already draw it…
Jonathan-Schaefer-git Sep 8, 2026
b0939d5
m3: the close — the census, the reel, and a film that plays in a cell…
Jonathan-Schaefer-git Sep 29, 2026
d123140
v0.3.0
Jonathan-Schaefer-git Sep 29, 2026
3499749
examples: shaped-text separates widths from kerning, so its claims ho…
Jonathan-Schaefer-git Oct 5, 2026
eb2e797
repo: the repository moved to Axym-Labs/marey
Jonathan-Schaefer-git Oct 5, 2026
ed81b0f
ci: the package count is twelve, as publish.yml has said since M3 pha…
Jonathan-Schaefer-git Oct 5, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# The default on Windows (`core.autocrlf=true`) checks text files out as CRLF, which means the
# bytes a contributor edits are not the bytes committed. That is usually harmless. It is not
# harmless here, because the two backends emit `\n` unconditionally -- SvgWriter.fs: "line endings
# are always `\n`, never `Environment.NewLine`" -- and 29 golden baselines are their recorded
# are always `\n`, never `Environment.NewLine`" -- and the golden baselines are their recorded
# output. `Golden.normalise` already defends the comparison on both sides, so this file is not
# fixing a bug; it stops the working tree and the repository from disagreeing about the contents
# of files whose whole purpose is to be compared as text and reviewed as a diff.
Expand All @@ -27,3 +27,9 @@
*.png binary
*.pdf binary
*.nupkg binary
# The stated faces, under tests/Marey.Tests/fonts/: D62's Liberation Sans and D78's CJK subset.
# A font is the one binary in this tree a text-classifying heuristic might plausibly get wrong,
# and a mangled one fails as "Skia opens the file and the metrics are nonsense", which is a bad
# afternoon.
*.ttf binary
*.otf binary
23 changes: 21 additions & 2 deletions .github/tex-packages.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# The TeX and raster toolchain, installed identically by ci.yml and publish.yml.
# The external toolchain, installed identically by ci.yml and publish.yml.
#
# One file rather than two inline lists, because they drifted once already: publish.yml was
# still missing texlive-latex-extra after ci.yml gained it, which would have failed a release
Expand All @@ -11,7 +11,22 @@
# texlive-pictures tikz/pgf
# texlive-science siunitx (and, as a hard Depends, texlive-lang-greek -- 79 MB,
# over half this list's download, unavoidable while we use siunitx)
# poppler-utils pdftoppm, for the ink gate
# poppler-utils pdftoppm, for the ink gate -- which reads the Skia PDF as well
# as the compiled TeX since M2.5
# libfontconfig1 a hard runtime dependency of libSkiaSharp. Present on the hosted
# libfreetype6 image today and pulled in by TeX besides, so this is belt and
# braces -- but a Skia backend that cannot load its native library
# takes out every raster gate at once, and naming the dependency
# costs nothing next to diagnosing it on a slimmer runner later.
# ffmpeg the muxer D75 shells out to, and ffprobe, which is in the same
# package and is how the video gates read a container back. Without
# it every gate in VideoTests that needs a binary skips itself and
# says so -- which is right on a laptop and wrong here.
# dvisvgm turns the DVI that `latex` writes into vector paths (D79). Its
# own package on Debian and Ubuntu, and NOT pulled in by any of the
# texlive entries above -- which is the same omission the Skia
# native assets made twice. `latex` itself comes from
# texlive-latex-base, alongside the pdflatex the TeX gates use.
#
# Changing this file changes the apt cache key in both workflows, so a package added here is
# fetched fresh once and then cached.
Expand All @@ -21,3 +36,7 @@ texlive-latex-recommended
texlive-pictures
texlive-science
poppler-utils
libfontconfig1
libfreetype6
ffmpeg
dvisvgm
45 changes: 35 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,22 @@ jobs:
path: ~/apt-archives
key: apt-tex-${{ runner.os }}-${{ hashFiles('.github/tex-packages.txt') }}

# Two of this suite's gates shell out, and both are written to report "not installed"
# rather than to fail -- which is right on a contributor's laptop and wrong here.
# Several of this suite's gates shell out, and every one of them is written to report
# "not installed" rather than to fail -- which is right on a contributor's laptop and
# wrong here.
#
# pdflatex compiles all 16 golden .tex baselines. Without it, the single most
# pdflatex compiles every golden .tex baseline. Without it, the single most
# valuable test in the milestone does not run.
# pdftoppm rasterises the compiled PDF for the ink gate, which exists because D33
# once produced a perfectly valid document containing no visible markers
# while every other test passed.
# pdftoppm rasterises a PDF for the ink gate, which exists because D33 once produced
# a perfectly valid document containing no visible markers while every other
# test passed. Since M2.5 it reads the Skia backend's own PDF as well as the
# one pdflatex produces.
# ffmpeg encodes a frame sequence (D75). Without it the whole of VideoTests'
# ffprobe encoding half skips, and ffprobe is what reads the container back --
# which is the difference between gating a video and gating an exit code.
#
# The package list and the reason for each entry live in .github/tex-packages.txt.
- name: Install the TeX and raster toolchain
- name: Install the external toolchain
run: |
set -e
pkgs=$(grep -vE '^[[:space:]]*(#|$)' .github/tex-packages.txt | tr '\n' ' ')
Expand Down Expand Up @@ -79,7 +84,7 @@ jobs:
- name: Assert the gates can actually run
run: |
set -e
for tool in pdflatex pdftoppm; do
for tool in pdflatex pdftoppm ffmpeg ffprobe latex dvisvgm; do
command -v "$tool" >/dev/null || { echo "::error::$tool missing; the gate that needs it would silently skip"; exit 1; }
echo "$tool -> $(command -v "$tool")"
done
Expand Down Expand Up @@ -114,7 +119,22 @@ jobs:
- name: Build
run: dotnet build Marey.slnx --configuration Release --no-restore

# MAREY_REQUIRE_TOOLCHAIN turns "the tool is not installed, so the gate did not run" from
# a printed skip into a failure. Right here and wrong on a contributor's laptop: the steps
# above install the toolchain on purpose, so a gate that skips on this runner means the
# install silently stopped working, and every one of those gates degrades rather than
# throwing -- a green run proving nothing.
#
# Not a duplicate of "Assert the gates can actually run" above, which asks a shell whether
# six binaries are on PATH. This asks the test host, in process, through the same Lazy the
# gates themselves read, and it covers the two things a shell cannot see: the SkiaSharp and
# HarfBuzz natives, which are not on PATH and take out every raster, PDF, frame and ink
# gate at once, and a PATH that differs between the shell and the runner. The census in
# Verification.fs prints all nine dependencies either way; this decides whether an absent
# one is fatal.
- name: Test
env:
MAREY_REQUIRE_TOOLCHAIN: '1'
run: dotnet test Marey.slnx --configuration Release --no-build --logger "console;verbosity=normal"

# Packaging is part of what CI protects. It has broken on its own before -- a package
Expand All @@ -128,11 +148,16 @@ jobs:
# hardcoded name goes stale the moment a project gains or loses its readme -- which is
# exactly how this check broke once. The invariant worth asserting is the one that failed:
# the nuspec must declare a readme, and the package must contain the file it declares.
#
# The count is publish.yml's, and the two must move together. This one said 7 from M2 until
# M3's close: publish.yml was raised at every phase that added a package and this file at
# none, and nothing noticed because a failing example stopped every run at the Test step
# first. The same drift .github/tex-packages.txt was created to end, in a different list.
- name: Check every package carries its metadata
run: |
set -e
count=$(ls artifacts/*.nupkg | wc -l)
[ "$count" -eq 7 ] || { echo "::error::expected 7 packages, packed $count"; exit 1; }
[ "$count" -eq 12 ] || { echo "::error::expected 12 packages, packed $count"; exit 1; }
for pkg in artifacts/*.nupkg; do
unzip -p "$pkg" '*.nuspec' > /tmp/nuspec.xml
readme=$(grep -o '<readme>[^<]*</readme>' /tmp/nuspec.xml | sed 's:<readme>::;s:</readme>::')
Expand All @@ -141,7 +166,7 @@ jobs:
unzip -l "$pkg" | grep -q "$readme" || { echo "::error::$pkg declares $readme but does not contain it"; exit 1; }
echo " $(basename "$pkg"): $readme"
done
echo "7 packages, each with an MIT expression and the readme it declares"
echo "12 packages, each with an MIT expression and the readme it declares"

- uses: actions/upload-artifact@v4
with:
Expand Down
32 changes: 24 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name: Publish

# Publishes the seven packages to nuget.org using **trusted publishing**: GitHub mints a
# Publishes the twelve packages to nuget.org using **trusted publishing**: GitHub mints a
# short-lived OIDC token, nuget.org validates it against a policy you registered and hands back
# an API key valid for one hour. No long-lived secret is stored in this repository.
#
# ## The nuget.org side, which must exist before this can work
#
# nuget.org -> your username -> Trusted Publishing -> add a policy:
#
# Repository Owner Jonathan-Schaefer-git
# Repository Owner Axym-Labs
# Repository marey
# Workflow File publish.yml <- filename only, no .github/workflows/ prefix
# Environment (leave empty; see the note at the bottom of this file)
Expand Down Expand Up @@ -89,17 +89,21 @@ jobs:
path: ~/apt-archives
key: apt-tex-${{ runner.os }}-${{ hashFiles('.github/tex-packages.txt') }}

# Two of this suite's gates shell out, and both are written to report "not installed"
# rather than to fail -- which is right on a contributor's laptop and wrong here.
# Several of this suite's gates shell out, and every one of them is written to report
# "not installed" rather than to fail -- which is right on a contributor's laptop and
# wrong here.
#
# pdflatex compiles all 16 golden .tex baselines. Without it, the single most
# pdflatex compiles every golden .tex baseline. Without it, the single most
# valuable test in the milestone does not run.
# pdftoppm rasterises the compiled PDF for the ink gate, which exists because D33
# once produced a perfectly valid document containing no visible markers
# while every other test passed.
# ffmpeg encodes a frame sequence (D75), and ffprobe -- in the same package --
# reads the container back, which is the difference between gating a video
# and gating an exit code.
#
# The package list and the reason for each entry live in .github/tex-packages.txt.
- name: Install the TeX and raster toolchain
- name: Install the external toolchain
run: |
set -e
pkgs=$(grep -vE '^[[:space:]]*(#|$)' .github/tex-packages.txt | tr '\n' ' ')
Expand Down Expand Up @@ -134,8 +138,13 @@ jobs:
-p:Version=${{ steps.version.outputs.value }} \
-p:ContinuousIntegrationBuild=true

# As in ci.yml, and it matters more here: this is the run that decides whether twelve
# packages go to nuget.org. A toolchain gate that skipped would publish on a green tick
# that never compiled a document, encoded a frame or typeset a formula.
- name: Test
run: dotnet test Marey.slnx --configuration Release --no-build
env:
MAREY_REQUIRE_TOOLCHAIN: '1'
run: dotnet test Marey.slnx --configuration Release --no-build --logger "console;verbosity=normal"

- name: Pack
run: |
Expand All @@ -145,8 +154,15 @@ jobs:
- name: Check the packages before anything leaves the machine
run: |
set -e
# Twelve since M3 phase 8, which published Marey.Tools.Tex. Eleven since phase 6,
# which published Marey.Tools.Video and — because a published package may not depend
# on an unpublished one — Marey.Toolchain with it. Nine since M3 phase 3 published
# Marey.Anim; eight before that, when M2.5 added Marey.Backend.Skia. The literal is
# the point: the solution is packed whole, so a new project joins a release
# automatically, and a count that has to be edited by hand is what stops one
# appearing on nuget.org because somebody added an .fsproj.
count=$(ls artifacts/*.nupkg | wc -l)
[ "$count" -eq 7 ] || { echo "::error::expected 7 packages, packed $count"; exit 1; }
[ "$count" -eq 12 ] || { echo "::error::expected 12 packages, packed $count"; exit 1; }
for pkg in artifacts/*.nupkg; do
unzip -p "$pkg" '*.nuspec' > /tmp/nuspec.xml
grep -q "<version>${{ steps.version.outputs.value }}</version>" /tmp/nuspec.xml \
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ artifacts/
*.actual.svg
*.actual.tex
*.actual.txt
*.actual.png

# TeX byproducts from the golden-compile gate (the .tex baselines themselves are tracked).
*.aux
Expand Down
Loading
Loading