Repository navigation
website: fix the examples that fail the Check the examples gate - #3665
Conversation
… as variable and method names
… the initial bytes
|
Caution Review failedThe pull request is closed.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
…from the baseline
sha=4d0d7f020652f2994d446a6f0abc1463e5bac253
🤖 Salam AI reviewVerdict: 🛠️ Changes needed before merging commit SummaryThis pull request updates roughly 93 website example and lesson files to make them compile and run under the current compiler and standard library, covering Persian comparison operators, reserved-word renames, proxy secure defaults, page DSL value fixes, tui method capitalization, and refreshed expected outputs. Most edits follow the documented language rules, but a few look like partial or inconsistent edits that should be cleaned up before merging. What changedThe PR rewrites many English and Persian website examples so they pass the "Check the examples" gate: Persian files now use the word comparison operators ( Review
TestsNo test files were added; the PR relies on the existing RisksThe broad mechanical edits (especially the Persian comparison-operator replacements) risk touching strings or generics; the author states they were located via lexer errors, which mitigates this, but a spot check of files with string literals containing operators is still worthwhile. The inconsistent
|
The Check the examples gate of website-deploy.yml has been red since #3352 (comparison operators by language) because the examples job only runs when website files change and nobody looked at it after that. About 235 examples failed in the last runs. The compiler and std causes are fixed in #3660 to #3664 (user function size, E234 in derived code, cookie jar key, os.temp chmod, reality link encoding, X11 headers in the job). This PR fixes what is left in the examples themselves.
What changed, by cause:
Testing: every changed example and every example that failed in runs 44358822902 and 44379938786 was run with check-example.sh against a compiler built from main plus these fixes (results in the first comment). The Persian operator edits were checked by compiling each file until the lexer had nothing left to report.
Known leftovers outside this PR: tests/en/stdlib/reality_loopback is red on main for another reason (the private address defaults), and the gui.ui examples need libx11-dev and headless mode, added to the job in #3664.