test: add comprehensive unit tests for write_wide_out #1245
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1255"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Ayoub-devv on 2026-11-24T13:47:41Z.
What is in it
Adds 5 new unit tests for the
write_wide_outhelper inutil.rs, covering:size, null-terminated atsize-1, sets ERROR_INSUFFICIENT_BUFFER)This function is used by
kernelxand previously had no direct test coverage.Tested
cargo test util -- --test-threads=4: 10 passed; 0 failed; 0 ignored; 0 measured; 714 filtered out(5 new tests + 5 existing util tests, all ok in 0.01s)
Regression run
Not needed — this PR changes only
crates/xcl/src/util.rsinside a#[cfg(test)] mod testsblock. No runtime code is modified.Not tested
AI use
Imported from ivall/xcl. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T13:47:58Z.
Review: COMMENTED
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.
Imported from ivall/xcl. Originally posted by Ayoub-devv on 2026-11-24T13:54:59Z.
Hi maintainers — this diff only adds a
#[cfg(test)] mod testsblock tocrates/xcl/src/util.rs; no runtime code is changed. The PR-description check flags it as a runtime change because the file lives undersrc/, but every added line is inside the test module. Could a maintainer approve the workflow run and, if appropriate, apply the test-only label so the smoke requirement is waived per #452? Thanks!Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T14:02:11Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:Thanks!
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:19:44Z.
Regression run of
5e78ffe6on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.upstream-sync referenced this pull request2026-11-25 07:04:28 +00:00
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-26T04:40:49Z.
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:31:39Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:15:23Z.
Triage (#1607) – head
5e78ffeNo other open PR adds tests for
write_wide_out. #1200 changes its zero-size behaviour (sets ERROR_INSUFFICIENT_BUFFER);test_null_or_zero_sizehere checks only the return value and buffer, so it stays compatible with that change.The branch contains a merge commit from the fork's main (
5e78ffe, with the default merge message); it should be rebased away, and the commit subject should use the repo'sTests:prefix instead oftest:.The PR description check is failing.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.