Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/corpus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defaults:
# The testsuite commit is a literal here (not read from a step output) so the
# checkout ref is fixed by this file; a step checks it against the pin.
env:
TESTSUITE_COMMIT: 337262eda0483ceaa43a02cc52362c5b721e5eb3
TESTSUITE_COMMIT: bcd1a578adcb7230639f6c366d034d85f933c7b2
PIN: spec/fixtures/testsuite-pin.yml

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
env:
# The commit pinned in spec/fixtures/testsuite-pin.yml (a step checks
# it); fixtures/ is unchanged there since 281059b.
TESTSUITE_COMMIT: 337262eda0483ceaa43a02cc52362c5b721e5eb3
TESTSUITE_COMMIT: bcd1a578adcb7230639f6c366d034d85f933c7b2
FIXTURES_SHA256: 22ef60184fc547150c4f525f627b2bec22d9a3c4bb52794f772cf2a2dde78b59
# Parsanol ships a precompiled native extension for x86_64 Linux;
# fail instead of skipping the native-engine examples if it is missing.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/stage-cases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ env:
# spec/fixtures/testsuite-pin.yml (a step checks it). The payloads are
# generated from its generation 1, which every later generation keeps
# byte for byte.
TESTSUITE_COMMIT: 337262eda0483ceaa43a02cc52362c5b721e5eb3
TESTSUITE_COMMIT: bcd1a578adcb7230639f6c366d034d85f933c7b2
SOURCE_GENERATION: "1"
SOURCE_DIGEST: sha256:9b362ce57706c5ca154bfc295b2037b9e626775d8a82a4557f3702c9ad2c74ba
# Parsanol ships a precompiled native extension for x86_64 Linux; fail
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
derived attribute that a row does not record, such as `MathSymbol#value`
and `#kind` in the generation 3 rows, is left out of the comparison and
listed in the report.
- The testsuite pin moves to latex generation 4, which adds revision-2
typed-model rows that record `MathSymbol#value` and `#kind`. All raw-tree
and typed-model rows match on both engines.

### Fixed

Expand Down
17 changes: 13 additions & 4 deletions docs/testsuite-pin.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ named in `spec/fixtures/testsuite-pin.yml`:
----
schema: plurimath-stage/pin/1
repository: https://github.com/plurimath/plurimath-testsuite
commit: 337262eda0483ceaa43a02cc52362c5b721e5eb3
commit: bcd1a578adcb7230639f6c366d034d85f933c7b2
language: latex
generation: 3
snapshot_digest: sha256:782cb6ee7c75ec1e38ed343301c2220ad14c283b96e5cf9eac2a4ff39b1aeceb
generation: 4
snapshot_digest: sha256:a657a0c61602ffdc9c02f3533f8671f92e38c42ee679d50ded38efd0e69ae0ce
----

Generation 2 keeps every case of generation 1 (the legacy corpus, produced by
Expand All @@ -33,6 +33,15 @@ not record it, and lists those rows in its report
(`unrecorded_derived_rows`). A derived attribute that a row does record must
match, like every other field.

Generation 4 keeps every payload of generation 3 byte for byte and adds 108
revision-2 typed-model rows (`<id>-r2`) written by `scripts/stage_cases.rb`
at the merged head of this gem's PR 68. Each supersedes the typed-model row of
the same id: `Latexmath::Model::MathSymbol` now records its derived `value`
and `kind` beside `spelling`. The replay compares the revision-2 rows in full
and still compares the 108 superseded rows without the unrecorded derived
attributes. All 139 raw-tree rows and all 247 typed-model rows match on the
Ruby and the native engine.

== What CI checks

The `corpus` workflow checks out the testsuite at the pinned commit and then:
Expand Down Expand Up @@ -61,7 +70,7 @@ To run the replay locally:
[source,sh]
----
git clone https://github.com/plurimath/plurimath-testsuite tmp/testsuite
git -C tmp/testsuite checkout 337262eda0483ceaa43a02cc52362c5b721e5eb3
git -C tmp/testsuite checkout bcd1a578adcb7230639f6c366d034d85f933c7b2
bundle exec ruby scripts/replay_corpus.rb --testsuite tmp/testsuite --report tmp/replay.json
----

Expand Down
4 changes: 2 additions & 2 deletions spec/corpus/replay_corpus_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ def run_replay(testsuite, pin, **options)
end

describe "the committed pin" do
it "names latex generation 3 at an exact testsuite commit" do
it "names latex generation 4 at an exact testsuite commit" do
pin = described_class.load_pin(PIN_FILE)
expect(pin.language).to eq("latex")
expect(pin.generation).to eq(3)
expect(pin.generation).to eq(4)
expect(pin.commit).to match(/\A\h{40}\z/)
expect(pin.digest).to match(/\Asha256:\h{64}\z/)
end
Expand Down
6 changes: 3 additions & 3 deletions spec/fixtures/testsuite-pin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
---
schema: plurimath-stage/pin/1
repository: https://github.com/plurimath/plurimath-testsuite
commit: 337262eda0483ceaa43a02cc52362c5b721e5eb3
commit: bcd1a578adcb7230639f6c366d034d85f933c7b2
language: latex
generation: 3
snapshot_digest: sha256:782cb6ee7c75ec1e38ed343301c2220ad14c283b96e5cf9eac2a4ff39b1aeceb
generation: 4
snapshot_digest: sha256:a657a0c61602ffdc9c02f3533f8671f92e38c42ee679d50ded38efd0e69ae0ce
Loading