GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||
GeezerVison is showing github.com — Fix yarnrc compressionLevel comment refusal (#370) by mikolalysenko · Pull Request #508 · SocketDev/socket-patch Conversation
|
| Test | Layer | Without fix | With fix |
|---|---|---|---|
yarnrc_compression_level_drops_a_trailing_comment |
reader unit | FAIL | pass |
yarnrc_compression_level_keeps_an_unseparated_hash |
fail-closed guard | pass | pass |
commented_default_compression_level_vendors |
vendored gate | FAIL | pass |
berry_hosted_preflight_mirrors_the_rewriter_gates (+2 asserts) |
hosted gate | FAIL | pass |
yarn_berry_vendor_commented_default_compression_level |
real yarn 4.12.0 e2e: full vendored capstone (fresh checkout --immutable --check-cache, VEX, revert) with the commented knob |
FAIL (vendor_yarn_berry_cache_unsupported) |
pass |
The e2e capstone also asserts that the lock real yarn writes has cacheKey: 10c0. That shows yarn itself reads the commented line as 0.
cargo clippy --workspace --all-features -- -D warnings: clean.cargo test --workspace --all-features: all pass except three covgap_commands_vendor state-write-failure tests. They depend on chmod 0o555 blocking writes, which root ignores in this container, and the file is unrelated to this change.e2e_vendor_yarn_berry_build + e2e_redirect_yarn_berry_build on yarn 4.12.0: 14/14 + 14/14.cargo fmt: the new lines follow rustfmt. I didn't run cargo fmt --all, because main itself isn't fmt-clean (it would reformat about 120 unrelated files) and CI doesn't check formatting.npm/, pypi/, gem/): no change needed. The change is entirely inside the Rust core.compressionLevel: 0 # comment in .yarnrc.yml as a non-default compression level #370: vendored and hosted no longer refuse compressionLevel: 0 # comment; non-default levels with comments still refuse. Covered by the reader, gate and e2e tests above.All checks are green on 933280e. Two backtest legs that can't reach this code failed on the first attempt and passed on their one re-run each:
Poetry patch compatibility / native (ubuntu-latest, 1.3.2)Bun patch compatibility / native (ubuntu-latest, 1.1.39)Bugbot reviewed 933280e and found no issues.
🤖 Generated with Claude Code
Generated by Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Assisted-by: Claude Code:claude-opus-5-5
A .yarnrc.yml line like `compressionLevel: 0 # keep yarn default` is the yarn default (cacheKey 10c0), but socket-patch read the comment as part of the value and refused the project in both vendored and hosted mode. The reader now parses the value as a YAML scalar: a quoted value ends at its closing quote and a plain value ends before a whitespace-separated `#`. Anything not positively `0` still refuses. Fixes #370 Assisted-by: Claude Code:claude-opus-5-5
|
[agent] I don't think this failure comes from this PR. The only code changed is The same leg passed on the heads of the other open agent PRs, all based on the same Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
[agent] A second check also failed on 933280e: The reasoning is the same as for the Bun leg above: this PR only changes the yarn berry I've used this check's one re-run ( Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
BugBot review Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 933280e. Configure here.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
[agent] Ready for review at
Generated by Claude Code |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Reviewed No blocking findings. The shared parser strips whitespace-separated trailing comments while retaining an unseparated hash as part of a plain scalar; both hosted and vendored gates consume the same parsed value and continue refusing unsupported compression levels. Validation: Ran |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Yarn berry vendored and hosted modes refusecompressionLevel: 0 # comment in .yarnrc.yml as a non-default compression level
There was an error while loading. Please reload this page.