Skip to content

test: un-ignore hash tests and remove duplicate Rust unit tests - #3145

Draft
liangmiQwQ wants to merge 7 commits into
voidzero-dev:mainfrom
liangmiQwQ:test/rust-test-cleanup
Draft

liangmiQwQ wants to merge 7 commits into
voidzero-dev:mainfrom
liangmiQwQ:test/rust-test-cleanup

Conversation

@liangmiQwQ

@liangmiQwQ liangmiQwQ commented Oct 20, 2026 •

Copy link
Copy Markdown
Collaborator

test_verify_file_hash_sha1 and test_verify_file_hash_sha224 were ignored as flaky because they hashed the file before the tokio write finished. This PR adds the same flush() that the SRI test already uses, re-enables them, and asserts HashMismatch for a wrong hash.

test_http_client_retry_on_server_error only asserted an error, so it also passed without retries. It now asserts 3 requests (1 request and 2 retries).

This PR also removes tests that repeat another test's code path and assertions:

  • link, unlink, ping: directory and Yarn Classic variants of pass-through cases
  • vp_static_config: resolves_ts_config and resolves_js_config
  • vp_migration: five single-line reference-types cases already in test_rewrite_reference_types_env_d_ts_style, and test_rewrite_import_content_vite
  • vp_setup: two tests that rebuilt the package name inline instead of calling production code. The resolve_platform_package mock tests cover the real name.

No behavior changes.

🤖 Generated with Claude Code

@liangmiQwQ

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-20T14:32:39.651452Z 2a7e371 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 👍

Reviewed commit: 2a7e371913

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant