-
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(scripts): repair readiness-check doc gate — 3 defects, gate was unsatisfiable #82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -94,21 +94,32 @@ check_markers() { | |
| check_doc_alignment() { | ||
| local status=0 | ||
|
|
||
| if ! rg -Fq 'model = from_pytorch("model.pt")' README.adoc; then | ||
| echo "README.adoc is missing the direct checkpoint `from_pytorch(\"model.pt\")` example." | ||
| # Assert the SUPPORTED import form. from_pytorch() throws on .pt/.pth/.ckpt by | ||
| # design (src/integrations/interop.jl) because those are Python pickles needing a | ||
| # PyTorch runtime, so requiring a "model.pt" example failed the gate for a README | ||
| # that was correct. Single-quoted: backticks in a double-quoted string are command | ||
| # substitution, which is what silently truncated this message. | ||
| if ! rg -Fq 'model = from_pytorch("model.pytorch.json")' README.adoc; then | ||
| echo 'README.adoc is missing the supported from_pytorch("model.pytorch.json") descriptor example.' | ||
| status=1 | ||
| fi | ||
|
|
||
| if ! rg -Fq "application/grpc+json" README.adoc; then | ||
| echo "README.adoc is missing gRPC bridge content-type coverage notes." | ||
| # Guard the no-Python posture: the README must keep warning that raw checkpoints | ||
| # need a PyTorch/Python runtime, so a future edit cannot quietly reintroduce one. | ||
| if ! rg -Fq '.pt/.pth/.ckpt' README.adoc; then | ||
| echo 'README.adoc no longer warns that raw .pt/.pth/.ckpt need a PyTorch/Python runtime.' | ||
| status=1 | ||
| fi | ||
|
Comment on lines
+107
to
112
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Match the warning text, not only the file extensions. Line [109] passes whenever 🤖 Prompt for AI Agents |
||
|
|
||
| if ! rg -Fq "## Deferred Commitments (Tracked)" ROADMAP.md; then | ||
| echo "ROADMAP.md is missing the deferred commitments section." | ||
| if ! rg -Fq "application/grpc+json" README.adoc; then | ||
| echo "README.adoc is missing gRPC bridge content-type coverage notes." | ||
| status=1 | ||
| fi | ||
|
|
||
| # The ROADMAP.md check that used to sit here was a leftover from the .md -> .adoc | ||
| # migration: the repo ships only ROADMAP.adoc, so `rg` failed on a missing file and | ||
| # `! rg` was permanently true, making check_doc_alignment unsatisfiable regardless of | ||
| # documentation quality. The .adoc check below is the migrated equivalent. | ||
| if ! rg -Fq "== Deferred Commitments (Tracked)" ROADMAP.adoc; then | ||
| echo "ROADMAP.adoc is missing the deferred commitments section." | ||
| status=1 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⚪ LOW RISK
Nitpick: The error message would be more helpful if it matched the strictness of the search pattern. Since the
rgcheck specifically requires themodel =assignment to pass, the message should include this detail.