Skip to content

judge: preserve checker language - #1239

Merged
undefined-moe merged 1 commit into
hydro-dev:masterfrom
lym12321:fix/checker-lang
Nov 30, 2026
Merged

undefined-moe merged 1 commit into
hydro-dev:masterfrom
lym12321:fix/checker-lang

Conversation

@lym12321

@lym12321 lym12321 commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

现有版本在 config.yaml 中为自定义 checker 显式指定 lang 后仍然覆盖成 auto,导致 checker 编译环境不符合预期。

Summary by CodeRabbit

  • Bug Fixes
    • Checker files with an extension now use the configured language when available, or automatically detect the language when none is specified. This improves consistency when loading cases and prevents the language from defaulting to automatic detection when a specific language was configured.

Copilot AI balanced review requested due to automatic review settings November 30, 2026 09:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@coderabbitai

coderabbitai Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

When a checker name contains an extension, readYamlCases now passes the checker file name and resolved language to checkFileWithLang. Previously, it passed only the name.

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

Change: Bug fix

Suggested reviewers: undefined-moe

Merge Risk: Minimal · up to 6ec92

This change makes custom checkers keep the language configured in config.yaml instead of being reset to auto. No merge-blocking risk was found. The CLA signature check still needs to be completed.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "judge: preserve checker language" matches the main change. When a custom checker file with an extension is configured with an explicit lang, readYamlCases now passes cfg.checker.lang (or 'a…
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 "judge: preserve checker language" matches the main change. When a custom checker file with an extension is configured with an explicit lang, readYamlCases now passes cfg.checker.lang (or 'auto') to checkFileWithLang, so the configured language is no longer overwritten with 'auto'. The title is concise, specific, and follows the conventional scope-prefix style.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

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

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

packages/common/cases.ts

ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.

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: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 96c2ff98-99ea-4273-9f24-4ae5187cdec9
Commits

Reviewing files that changed from the base of the PR and between 80e1541 and 6ec9271.

Files selected for processing: 1

  • packages/common/cases.ts

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

@lym12321

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@undefined-moe
undefined-moe merged commit 2fb9a9c into hydro-dev:master Nov 30, 2026
3 of 4 checks passed
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.

3 participants