Skip to content

ownership: finish the corpus scan for E176, fix the last dropped reads and Persian fixtures - #3669

Merged
BaseMax merged 3 commits into
mainfrom
fix/ownership-scan
Nov 19, 2026
Merged

BaseMax merged 3 commits into
mainfrom
fix/ownership-scan

Conversation

@BaseMax

@BaseMax BaseMax commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Finishes the whole-corpus scan for the new E176 and E250 rules, which #3654 and #3666 started, and fixes what it found.

  • Scanned every .salam file under tests/, examples/ and website/content/ (about 7,500, excluding errors/ fixtures and page fixtures) with the merged compiler. Coverage is continuous across the four resumed runs.
  • The scan found the net reality example in English and Persian dropping a tcp.Read result (E176). main fixed both in website: fix the examples that fail the Check the examples gate #3665 while this was open, so this branch takes main's version.
  • It found three Persian fixtures still using rejected symbolic operators (tests/fa/fmt/messy, tests/fa/fmt/persian_syntax, tests/lsp/fa/binary). They use the word operators now, and each checks clean.

Checked: salam check on every touched file is clean; fmt is 18 of 21, and the 3 failing en golden checks (comparison_spacing, percent_color, tuples) fail identically on the 0.6.16 compiler, so they predate this branch.

Not in this PR: the Persian code inside website .txt and blog pages, and Vector<str> elements.

Summary by CodeRabbit

  • Tests
    • Updated Persian-language examples used in formatting and language-server tests to express comparison conditions with word-form operators. The examples now cover “greater than,” “less than,” and “greater than or equal to” conditions, while preserving the conditions’ existing meaning. This change affects test examples only; it does not alter application behavior or add user-facing functionality.

The fmt and lsp inputs still used symbols that Persian mode rejects, so they never reached their formatter or server checks.
Bare reads of tcp and tls results were dropped, which E176 rejects in user code. Both languages.
@BaseMax
BaseMax requested a review from a team as a code owner November 19, 2026 10:03
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Three Persian test conditions now use word-form comparison operators instead of symbolic operators. The comparisons retain their original operands and conditions.

Changes: Persian test fixtures

Layer / File(s) Summary
Persian comparison keywords
tests/fa/fmt/messy.salam, tests/fa/fmt/persian_syntax.salam, tests/lsp/fa/binary.salam
Conditions replace >, <, and >= with the Persian keywords بزرگتر, کوچکتر, and بزرگتربرابر.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Merge Risk: Minimal · up to 766fd

This updates three Persian test fixtures to use word-form comparison operators so that they pass the new compiler checks. It does not affect production behavior, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main work: finishing the corpus scan for rule E176 and fixing the dropped reads and Persian fixtures. The changeset matches this. The scan results and the net reality example fixes…
Description check Passed The description follows the template sections: it has a description of the scan, a list of proposed changes in effect, and testing notes covering salam check and fmt results. The Related Issue section…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main work: finishing the corpus scan for rule E176 and fixing the dropped reads and Persian fixtures. The changeset matches this. The scan results and the net reality example fixes are described in the description, but the raw summary only shows the three Persian fixture edits, so the title's mention of dropped reads is supported by the PR objectives rather than the file summaries. The title is specific and related to the main change.

Full details: Description check

Explanation

The description follows the template sections: it has a description of the scan, a list of proposed changes in effect, and testing notes covering salam check and fmt results. The Related Issue section is missing, since it cites #3654, #3666, #3665 and #3669 but does not use the template's reference format. The Checklist and Additional Notes sections are absent. The Proposed Changes section lists the work in prose rather than the template's bullet list. The description is mostly complete, so the check passes.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 2a1c1e37-9103-4121-bdc8-c100b6ea0603
Commits

Reviewing files that changed from the base of the PR and between 9810f8e and 766fdae.

Files selected for processing: 3

  • tests/fa/fmt/messy.salam
  • tests/fa/fmt/persian_syntax.salam
  • tests/lsp/fa/binary.salam

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@github-actions

Copy link
Copy Markdown
Contributor
sha=766fdae5694ef19ca1052c3234aa5673b72d3a6d

🤖 Salam AI review

Verdict: ✅ Good to merge

commit 766fdae · 3 files · +3 −3 · model salam

Summary

This PR completes the corpus scan for E176 and E250 by replacing rejected symbolic comparison operators with their Persian word forms in three Persian fixtures. The visible edits match Salam's documented Persian keywords, and no compiler or standard library code changes appear in the provided diff.

What changed

The diff updates three Persian fixtures: tests/fa/fmt/messy.salam, tests/fa/fmt/persian_syntax.salam, and tests/lsp/fa/binary.salam. Each replaces a symbolic comparison operator with the corresponding Persian word operator: > becomes بزرگتر, < becomes کوچکتر, and >= becomes بزرگتربرابر.

Review

  1. tests/fa/fmt/messy.salam, tests/fa/fmt/persian_syntax.salam, and tests/lsp/fa/binary.salam: the replacements are consistent with Salam's Persian keyword table, where gt, lt, and gte map to بزرگتر, کوچکتر, and بزرگتربرابر respectively. The spacing in the edited lines also matches normal Salam expression syntax.
  2. The PR description mentions a website net reality example that binds tcp.Read results, but that change is not present in the three-file diff shown here. Is it already included through the merge of main, or is it expected in a follow-up?
  3. The description also says three English golden fmt checks fail identically on the 0.6.16 compiler. That claim cannot be verified from this diff, so it should be confirmed in CI before merge if it affects release notes.
  4. The change is limited to test fixtures, so it does not alter compiler behavior or public APIs.

Tests

The PR states that salam check is clean on every touched file and that fmt passes 18 of 21 checks. I could not run those checks from the provided diff, but the edited operators are the documented Persian forms.

Risks

The main risk is that a fixture's expected formatted output may use a different accepted spelling or spacing for a Persian comparison operator. If so, the corresponding golden test would need updating alongside this change. The visible diff does not show those golden expectations, so this cannot be confirmed here.


⚠️ This review was written automatically by an AI and may contain mistakes. It is a helper for maintainers, not a replacement for a human review: check the code yourself before merging.

@BaseMax
BaseMax merged commit f0e9312 into main Nov 19, 2026
14 checks passed
@BaseMax
BaseMax deleted the fix/ownership-scan branch November 19, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant