-
-
Notifications
You must be signed in to change notification settings - Fork 794
fix(cli): css parsing arguments for ci command #7840
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
Conversation
🦋 Changeset detectedLatest commit: 0d10c4c The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughThis patch fixes a bug preventing the Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
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.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (4)
crates/biome_cli/tests/snapshots/main_cases_css_parsing/ci_combined_css_parser_flags.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_css_parsing/ci_css_parse_css_modules_false.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_css_parsing/ci_css_parse_css_modules_true.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_css_parsing/ci_css_parse_tailwind_directives_false.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (3)
.changeset/afraid-meals-help.md(1 hunks)crates/biome_cli/src/commands/ci.rs(1 hunks)crates/biome_cli/tests/cases/css_parsing.rs(2 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
.changeset/*.md
📄 CodeRabbit inference engine (CONTRIBUTING.md)
.changeset/*.md: In changesets, only use #### or ##### headers; other header levels are not allowed
Changesets should cover user-facing changes only; internal changes do not need changesets
Use past tense for what you did and present tense for current Biome behavior in changesets
When fixing a bug in a changeset, start with an issue link (e.g., “Fixed #1234: …”)
When referencing a rule or assist in a changeset, include a link to its page on the website
Include code blocks in changesets when applicable to illustrate changes
End every sentence in a changeset with a period
Files:
.changeset/afraid-meals-help.md
crates/biome_*/**
📄 CodeRabbit inference engine (CLAUDE.md)
Place core crates under /crates/biome_*/
Files:
crates/biome_cli/tests/cases/css_parsing.rscrates/biome_cli/src/commands/ci.rs
**/tests/**
📄 CodeRabbit inference engine (CLAUDE.md)
Place test files under a tests/ directory in each crate
Files:
crates/biome_cli/tests/cases/css_parsing.rs
**/*.rs
📄 CodeRabbit inference engine (CONTRIBUTING.md)
**/*.rs: Format Rust files before committing (e.g., viajust fwhich formats Rust)
Document rules, assists, and options with inline rustdoc in source
Files:
crates/biome_cli/tests/cases/css_parsing.rscrates/biome_cli/src/commands/ci.rs
🧬 Code graph analysis (2)
crates/biome_cli/tests/cases/css_parsing.rs (2)
crates/biome_cli/tests/main.rs (1)
run_cli(332-347)crates/biome_cli/tests/snap_test.rs (1)
assert_cli_snapshot(407-409)
crates/biome_cli/src/commands/ci.rs (1)
packages/@biomejs/backend-jsonrpc/src/workspace.ts (1)
CssConfiguration(120-141)
🪛 LanguageTool
.changeset/afraid-meals-help.md
[style] ~5-~5: Would you like to use the Oxford spelling “recognized”? The spelling ‘recognised’ is also correct.
Context: ...new --css-parse-* arguments not being recognised by the ci command.
(OXFORD_SPELLING_Z_NOT_S)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
- GitHub Check: Documentation
- GitHub Check: Test (depot-ubuntu-24.04-arm-16)
- GitHub Check: Test (depot-windows-2022-16)
- GitHub Check: Check Dependencies
- GitHub Check: Lint project (depot-windows-2022)
- GitHub Check: Test Node.js API
- GitHub Check: autofix
🔇 Additional comments (5)
crates/biome_cli/src/commands/ci.rs (1)
87-89: Correct fix for CSS parser flag recognition.The change from
clone_fromtomerge_withproperly allows CLI-provided CSS parser flags to merge with existing configuration rather than overwriting it. This resolves the issue where--css-parse-*arguments weren't being respected.crates/biome_cli/tests/cases/css_parsing.rs (3)
222-274: Good test coverage for CI CSS Modules parsing.These tests properly validate that the
cicommand respects the--css-parse-css-modulesflag in both enabled and disabled states, mirroring the coverage provided for thecheckcommand.
310-342: Completes Tailwind directives test coverage.This test complements the existing
ci_css_parse_tailwind_directives_truetest, ensuring both enabled and disabled states are validated for the CI command.
344-378: Excellent coverage of combined parser flags.Testing multiple CSS parser flags together is crucial for ensuring they interact correctly. This validates that
--css-parse-css-modulesand--css-parse-tailwind-directiveswork harmoniously in CI workflows..changeset/afraid-meals-help.md (1)
1-5: Changeset follows guidelines correctly.The changeset properly documents the patch-level fix with an issue reference, uses appropriate tense, and ends with a period. The spelling "recognised" is correct for British English, so the static analysis hint can be disregarded.
|
I'll fix the linting in another PR. The fix is rather urgent |
Co-authored-by: siketyan <[email protected]>
Co-authored-by: siketyan <[email protected]>
Summary
Closes #7838
The code fix has been implemented by me, I used AI to generate the tests.
Test Plan
CI should pass
Docs