Repository navigation
salam check: fail when errors are printed, match what build reports - #2685
Conversation
load_package threw these results away, so any driver went on after printing the error. Also count printed errors in the logger and add the package accessors salam check needs.
Share the per-module step with build_impl, so sibling files of a package entry, package name clashes and the missing entry error now show up in check. It follows the backend build would pick and honours --target. Exit 1 whenever an error was printed.
|
Deployment failed for project salam with the following error: |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 37 minutes. View limit details
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. |
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
salam checkcould print errors and still exit 0, and could report "no errors" on codebuildrejects.sm.Run, soinspectexits 1 too and other drivers abort instead of continuing.checkshares the front end ofbuild(driver_front.salam), so it reads package siblings and reports no entry point, package name claims, E066 in an included package and--target. It also fixes a false E012 on valid multi-file packages.checkexits 1 whenever an error was printed.Old vs new
checkover 1837 test files: 3 changed.exec/mathandexec/consolenow fail, andbuildrejects them the same way (they only run underexec).typesense/collectionswas a false claim from the implicit collections load, fixed here with a test.Still different from
build, documented in GETTING_STARTED: library files with no entry are accepted, and C compiler, codegen and link errors need a build. LLVM and native read only the entry file, so a multi-file entry gets E012 there but builds on C;checkfollows the backendbuildwould pick. That should get its own fix.checkon the compiler: 21.3 to 22.0s, was 23.1 to 24.0s, at load about 12.Tested on merged main: check, lint, errors, project, packages 805 passed, native selfhost, MCP protocol test 136 passed. Before the last merge: test_lsp 71 passed and 3 failed, the same 3 as the baseline. MCP, emacs and geany still call
inspect, so they get the exit code but not the sibling and entry checks.