Repository navigation
The documentation samples run in CI, the wiki's and the website's - #1656
Merged
Merged
Conversation
DocSamples compiles every code sample in the wiki, and every one on the website marked with an amcheck comment, against the library in the checkout. It runs them and checks each stated output against the one produced. It fails on a sample that does not compile, throws, or prints something other than its page says. A sample that does not finish fails nothing. It clones the wiki beside itself. CI also checks AngouriMathSite out beside the library and passes it with --site. The job is its own, since it builds a generated project per language. A change to the F# wrapper alone now runs the workflow, because the F# samples compile against it. Its first run, against cd3b27b, found three wiki outputs that master no longer prints. All three were equal values in a new form, and the wiki is corrected (AngouriMath.wiki d23ca13). With that, 89 samples pass: 60 stated outputs verified, 0 failures. Measured.Commit(path) is back in the shared code, because this harness builds the library rather than referencing it. Part of #1256. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #1256: the documentation samples run in CI, the wiki's and the website's.
DocSamplescompiles every code sample in the wiki against the library in the checkout, plus every sample on the website that anamcheckcomment marks. It runs each one and checks it against the output its page states.--site.It runs as its own job, since it builds a generated project per language. A change to the F# wrapper alone now triggers the workflow, because the F# samples compile against the wrapper.
Measured.Commit(path)is back in the shared code, because this harness builds the library itself rather than referencing it.What its first run found: against
cd3b27b9, three wiki outputs that master no longer prints. Each is the same value in a different form:16 + (cos(x) + a) * x16 + x * (cos(x) + a)(1 + ln(x)) * x ^ xx ^ x * (1 + ln(x))(-oo; -1/2 * sqrt(6)) \/ (sqrt(6) / 2; +oo) \/ (0; +oo)(-oo; -1/2 * sqrt(6)) \/ (0; +oo)The first two are #1635's factor order, and the third is a union that now absorbs an interval it contains. The wiki is corrected (AngouriMath.wiki
d23ca13). With that, all 89 samples pass, 86 C# and 3 F#: 60 stated outputs verified and 0 failures.The run before the wiki was corrected exited 1, with those three mismatches named. That is the harness's negative control, on real data.
After this, three of the harnesses #1256 lists are still outside CI:
intbenchneeds the Rubi suite, which carries no licence;libcompareis a comparison, so nothing in it is a defect;egraphis a measurement of memory cost.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura