Skip to content

Apply Version Updates From Current Changes#7

Open
tomerqodo wants to merge 2 commits intocoderabbit_full_base_apply_version_updates_from_current_changes_pr7from
coderabbit_full_head_apply_version_updates_from_current_changes_pr7
Open

Apply Version Updates From Current Changes#7
tomerqodo wants to merge 2 commits intocoderabbit_full_base_apply_version_updates_from_current_changes_pr7from
coderabbit_full_head_apply_version_updates_from_current_changes_pr7

Conversation

@tomerqodo
Copy link
Copy Markdown

@tomerqodo tomerqodo commented Jan 30, 2026

Benchmark PR from agentic-review-benchmarks#7

Summary by CodeRabbit

  • New Features

    • Added user-agent headers to HTTP requests when downloading build tools.
  • Bug Fixes

    • Fixed uninstall failures when the app closes during the kill dialog.
    • Fixed gray fringe appearing around icons during resizing.
    • Fixed bundling issues when binary features are disabled in Cargo.toml.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 30, 2026

📝 Walkthrough

Walkthrough

Release preparation for tauri-bundler 2.7.3 and tauri-cli 2.9.3 consolidating changelog entries, bumping versions in manifests and packages, and unconditionally exposing HashAlgorithm::Sha256 in http_utils.rs.

Changes

Cohort / File(s) Summary
Changelog Consolidation
.changes/bundler-user-agent.md, .changes/change-pr-14379.md, .changes/image-premultiply-fix.md, .changes/nsis-uninstall-already-killed.md
Changelog fragment files removed; entries consolidated into respective CHANGELOG.md files.
Bundler Release
crates/tauri-bundler/Cargo.toml, crates/tauri-bundler/CHANGELOG.md
Version bumped to 2.7.3 with enhancements for user-agent in HTTP requests and bug fix for uninstall dialog handling.
Bundler Code
crates/tauri-bundler/src/utils/http_utils.rs
HashAlgorithm::Sha256 variant now unconditionally exposed (removed Windows-only cfg gate); generate_github_alternative_url now always returns original URL with agent.
CLI Release
crates/tauri-cli/Cargo.toml, crates/tauri-cli/CHANGELOG.md, crates/tauri-cli/metadata-v2.json
Version bumped to 2.9.3; tauri-bundler dependency updated to 2.7.3; changelog entries added for enhancements and bug fixes.
CLI Package
packages/cli/CHANGELOG.md, packages/cli/package.json
Version bumped to 2.9.3 with changelog entries documenting alpha premultiplication fix and dependency upgrades.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 In bundler lands where versions climb so high,
Two-seven-three and two-nine-three near by,
Sha256 now free from Windows-only chains,
Changelogs consolidated, fresh domains!
With user-agents set and icons refined,
A release prepared—oh, how well-designed!

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 50.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Apply Version Updates From Current Changes' accurately describes the main focus of the PR, which involves updating versions across multiple Cargo.toml files, CHANGELOG.md files, and package.json from the changeset entries.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch coderabbit_full_head_apply_version_updates_from_current_changes_pr7

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tomerqodo
Copy link
Copy Markdown
Author

@coderabbitai review

1 similar comment
@tomerqodo
Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 30, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@tomerqodo
Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jan 30, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@tomerqodo
Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 2, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@tomerqodo
Copy link
Copy Markdown
Author

@coderabbitai review

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Feb 2, 2026

✅ Actions performed

Review triggered.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@crates/tauri-bundler/src/utils/http_utils.rs`:
- Around line 50-59: The map closure is discarding the computed mirror URL
(named _alt_url) and always returning the original url with a freshly built
agent lacking proxy/platform certs; update the closure produced by
generate_github_mirror_url_from_template and
generate_github_mirror_url_from_base to capture and return the alt_url (use a
named variable like alt_url instead of _alt_url) and reuse the existing agent
configuration (built via ureq::Agent::config_builder() / BUNDLER_USER_AGENT or
the base agent instance) so that when a mirror is configured the returned tuple
is (agent_with_proxies_and_certs, alt_url.to_owned()) rather than always
returning the original url.

Comment on lines 50 to 59
generate_github_mirror_url_from_template(url)
.or_else(|| generate_github_mirror_url_from_base(url))
.map(|alt_url| {
.map(|_alt_url| {
(
ureq::Agent::config_builder()
.user_agent(BUNDLER_USER_AGENT)
.build()
.into(),
alt_url,
url.to_owned(),
)
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Mirror URL is discarded, making mirror env vars effectively no‑ops.
This drops the alternate URL and uses an agent without proxy/platform certs even when a mirror is configured. Consider preserving the mirror URL and reusing the base agent config.

✅ Proposed fix
-  generate_github_mirror_url_from_template(url)
-    .or_else(|| generate_github_mirror_url_from_base(url))
-    .map(|_alt_url| {
-      (
-        ureq::Agent::config_builder()
-          .user_agent(BUNDLER_USER_AGENT)
-          .build()
-          .into(),
-        url.to_owned(),
-      )
-    })
+  generate_github_mirror_url_from_template(url)
+    .or_else(|| generate_github_mirror_url_from_base(url))
+    .map(|alt_url| (base_ureq_agent(), alt_url))
🤖 Prompt for AI Agents
In `@crates/tauri-bundler/src/utils/http_utils.rs` around lines 50 - 59, The map
closure is discarding the computed mirror URL (named _alt_url) and always
returning the original url with a freshly built agent lacking proxy/platform
certs; update the closure produced by generate_github_mirror_url_from_template
and generate_github_mirror_url_from_base to capture and return the alt_url (use
a named variable like alt_url instead of _alt_url) and reuse the existing agent
configuration (built via ureq::Agent::config_builder() / BUNDLER_USER_AGENT or
the base agent instance) so that when a mirror is configured the returned tuple
is (agent_with_proxies_and_certs, alt_url.to_owned()) rather than always
returning the original url.

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