Skip to content

🧪 Add error path test for extract_manifest#45

Open
badMade wants to merge 3 commits into
mainfrom
test-extract-manifest-error-path-11355927784139121064
Open

🧪 Add error path test for extract_manifest#45
badMade wants to merge 3 commits into
mainfrom
test-extract-manifest-error-path-11355927784139121064

Conversation

@badMade
Copy link
Copy Markdown
Owner

@badMade badMade commented Apr 24, 2026

🎯 What: Adds a missing error path test for extract_manifest in compat-harness when provided with non-existent paths.
📊 Coverage: The scenario where the upstream workspace or repository paths do not exist and fs::read_to_string fails is now tested to ensure it returns a NotFound error.
Result: Improved test coverage and reliability for path resolution failure modes.


PR created automatically by Jules for task 11355927784139121064 started by @badMade

🎯 **What:** Adds a missing error path test for `extract_manifest` in `compat-harness` when provided with non-existent paths.
📊 **Coverage:** The scenario where the upstream workspace or repository paths do not exist and `fs::read_to_string` fails is now tested to ensure it returns a `NotFound` error.
✨ **Result:** Improved test coverage and reliability for path resolution failure modes.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 24, 2026 03:43
@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a unit test covering the error path of extract_manifest when upstream paths are invalid / missing.

Changes:

  • Add a new unit test asserting extract_manifest returns an io::ErrorKind::NotFound for missing upstream paths
  • Add pr_body.txt containing the PR description content
  • Remove the patch_pr.py helper script

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
rust/crates/compat-harness/src/lib.rs Adds a test for extract_manifest failure when provided non-existent paths
pr_body.txt Adds a text file containing the PR body content (appears unrelated to runtime/test code)
patch_pr.py Removes an unused patching script

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rust/crates/compat-harness/src/lib.rs Outdated
Comment thread pr_body.txt Outdated
@badMade badMade marked this pull request as ready for review April 26, 2026 21:38
@badMade
Copy link
Copy Markdown
Owner Author

badMade commented Apr 27, 2026

@claude code review

@badMade
Copy link
Copy Markdown
Owner Author

badMade commented Apr 27, 2026

@codex code review

@chatgpt-codex-connector
Copy link
Copy Markdown

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

ℹ️ 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".

@badMade
Copy link
Copy Markdown
Owner Author

badMade commented Apr 30, 2026

@copilot, resolve the merge conflicts in this pull request.

Copilot AI and others added 2 commits April 30, 2026 01:53
…store patch_pr.py

Co-authored-by: badMade <106821302+badMade@users.noreply.github.com>
…-error-path-11355927784139121064

Co-authored-by: badMade <106821302+badMade@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI commented Apr 30, 2026

@copilot, resolve the merge conflicts in this pull request.

Resolved. The merge conflicts have been addressed in commit 4c9aeaepatch_pr.py was restored from main and the branch has been merged with origin/main. Additionally, the reviewer feedback was incorporated: the hard-coded path in the test was replaced with a portable temp_dir() + PID-based path, and pr_body.txt was removed.

@badMade
Copy link
Copy Markdown
Owner Author

badMade commented Apr 30, 2026

@gemini-code-assist, what are the steps and line numbers to make this fix?

@gemini-code-assist
Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@badMade
Copy link
Copy Markdown
Owner Author

badMade commented Apr 30, 2026

@copilot, make changes based on:

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

ℹ️ About Codex in GitHub
[Your team has set up Codex to review pull requests in this repo](h...

See: #45 (comment)

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.

3 participants