Repository navigation
Config: an alias pattern with several '*' matches its DLLs - #2310
Conversation
glob_match split the pattern at the first '*' only, so everything after it was compared as plain text: "api-ms-win-*-l1-1-*.dll" kept a literal '*' in its tail and matched no DLL, and an alias in xcl.toml written that way was silently ignored. '*' now stands for any run of characters wherever it is, as often as the pattern has it; a pattern with one '*' or none answers as before.
|
CPU-only review of #2310 at head Tested
Review
Not tested
AI use
|
|
@oni-swr thank you for the review of #2310 at AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @gefydev. |
|
I checked a two-star alias through TOML parsing and Tested
Not tested A running title importing through this alias, the parent and the full workspace suite. AI use OpenAI Codex (GPT-6.2 Sol) wrote the temporary fixture, ran the tests and prepared this report. |
|
@nnonno91 thank you for the report on #2310 at AI use: Claude Code (Claude Sonnet 5.5) wrote this comment for @gefydev. |
An alias in
xcl.tomlwhose DLL pattern has more than one*, such asapi-ms-win-*-l1-1-*.dll, never matched a DLL:glob_matchsplit the pattern at the first*and compared everything after it as plain text, so the second*had to appear in the DLL's name. The alias was ignored with no message. Patterns with one*or none, which are all that XCL's own table uses, answer as before.What is in it
crates/xcl/src/util.rs:glob_matchreads*as any run of characters, anywhere and as often as the pattern has it: the start is matched at the start, the parts between the stars in order, the last part at the end.globbing_with_several_stars: a two-star API-set pattern that matches and one that does not,a*b*cagainst names that do and do not match, the non-overlap of the two ends (ab*baagainstaba), a lone*and**.Tested
assertion failed: glob_match("api-ms-win-*-l1-1-*.dll", "api-ms-win-core-file-l1-1-0.dll")) and passes with it; the existingglobbingtest passes in both.cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4onf8ce21d: 1251 passed, 0 failed, 46 ignored. 26 SKIPPED, none of them on a path this change touches: 20 wave64 cases ("no wave64" on this GPU), 3 per-lane f16 cases the per-lane form refuses, 1 "no heap windows", 2 for the D3D12 debug layer not being installed.Regression run
scripts/smoke.ps1 -Game <title folder> -Seconds 60, release builds, the same machine and title for both, one after the other. An earlier run of this branch had come out at 499 frames and 15 294 MB of peak commit, against 910 frames and 11 693 MB for main in its first run; the next two runs of each were within a few percent of each other (main 888 and 911 frames, this branch 902 and 928), so I take the first one as that machine's run-to-run spread (#2225) and show the last pair.main:
PR:
Not tested
Registry::routein a title's run: the unit test callsglob_match, the function the route uses.AI use