Repository navigation
test(text): isolate metric-font fallback tests from host fonts - #1890
TimotheusG wants to merge 1 commit into
Conversation
|
@coderabbitai Please clarify the current architecture assessment for this PR: it labels architecture risk High, merge risk Minimal, and says no architecture-level concerns were identified. The explanation lists broad blast-radius/dependent-count factors for crates, but no specific architectural defect. What concrete concern supports High, or is this an impact score rather than a finding requiring a code change? We independently compared the public resolver behavior before/after the extraction and checked its interaction with #1907. The focused alias/style/original-precedence tests pass. Expanded testing found a separate preexisting layout-cache invalidation bug on both the base and this PR; that fix is being prepared separately, not being attributed to this extraction. The summary also retains 'Clippy execution timed out'. Please identify the executed command/tool budget or a supported way to rerun that tool with sufficient build time. A successful overall review status is not being treated as successful Clippy execution. |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
gh api repos/storytold/effectcraft/issues/1890/comments --paginate --jq '.[] | {user: .user.login, body: .body}'
gh api repos/storytold/effectcraft/pulls/1890/reviews --paginate --jq '.[] | {user: .user.login, body: .body}'
rg -n -C3 'clippy|architecture' .github Cargo.toml README.md
fd -i 'xtask|config.toml|coderabbit'Length of output: 14064 🤖 web_search executed:
Length of output: 12092 🏁 Script executed: #!/bin/bash
ast-grep outline xtask --items all --type function --match 'clippy|ci|main|run'
rg -n -C5 'clippy|timeout|all-targets|all-features' xtask .github CONTRIBUTING.md docs/testing.md
fd -H '^config\.toml$|^rust-toolchain(\.toml)?$'Length of output: 3890 ⚙️ CodeRabbit configuration inspected Length of output: 98174
Architecture assessmentI checked the published assessment through The evidence supports reading “High” as an impact indicator, not a defect-severity finding. I cannot verify the scoring formula from the available report. Presenting that indicator as “Architecture risk” without this distinction is misleading. “Merge risk: Minimal” is a separate assessment of the reviewed change. Neither label proves that validation tools passed. There is no supported architecture-specific blocker in the posted assessment. Thanks for the clarification about your testing. Your reported base-versus-PR reproduction places the layout-cache invalidation bug outside this extraction. I have not independently reproduced those results. Clippy timeoutThe published warning establishes only:
It does not expose the executed command, elapsed time, or timeout budget. I cannot supply those values from the available evidence. I checked the current configuration schema. The Clippy settings expose only For independent verification, run the repository’s strict Clippy command locally or on a CI runner with sufficient build time: cargo clippy --workspace --all-targets --release -- -D warningsThis is the command in Please retry that check on the exact PR revision and retain the command, toolchain, commit SHA, and exit result. Your reported combined-branch CI success remains evidence for that combined tree, not for each independent branch. The hosted Clippy result remains incomplete, not passed. A successful overall review status does not change that result. To obtain the hosted command and budget, provide the run ID above to CodeRabbit support. ✏️ Learnings added
You are interacting with an AI system. |
The metric-font substitution test assumes Calibri and Cambria are absent. On a Windows host with those fonts installed, the resolver correctly selects the originals and the test incorrectly expects Carlito/Caladea.
Separate resolution against a fixed face list from system-font discovery, and exercise the existing resolver logic using local synthetic fonts. The scenario covers missing originals with substitutes, missing substitutes falling back to Inter, unknown families, synthetic bold, and installed originals taking precedence without a missing-font flag. It neither changes the shared font database nor depends on installed proprietary fonts. Related: #1677.
All 62 text-crate unit tests passed. Companion fixes: Unix-only test-helper guard (#1889) and socket write cancellation (#1891).
Validation on Windows x64 (release, LTO disabled and 16 codegen units):
cargo xtask cipassed with all three maintenance fixes applied together: 3,657 tests passed, 32 existing opt-in tests ignored; format, strict Clippy, dependency/layer/asset audits and all 32 wasm crate checks passed.theme::script_font_tests::simplified_chinese_interface_draws_simplified_hanzi_after_another_languagefailure. The identical failure was reproduced in the pre-change UI test binary (run 23 with--test-threads=64). Five complete UI runs with this patch passed, followed by the successful full CI rerun. This separate intermittent issue remains unresolved; no test was disabled to get the passing run.Summary by CodeRabbit