Skip to content

Apply Version Updates From Current Changes#33

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#33
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

@tomerqodo tomerqodo commented Jan 29, 2026

Benchmark PR from agentic-review-benchmarks#7

Summary by CodeRabbit

  • New Features

    • User-agent headers now set in HTTP requests when fetching build tools.
  • Bug Fixes

    • Fixed uninstall failures when app is closed manually during the kill dialog.
    • Resolved gray fringe artifacts around icons by improving alpha channel handling.
  • Chores

    • Bumped tauri-bundler to v2.7.3 and tauri-cli to v2.9.3.

✏️ Tip: You can customize this high-level summary in your review settings.

@coderabbitai
Copy link

coderabbitai bot commented Jan 29, 2026

Walkthrough

This PR consolidates patch-level enhancements and bug fixes from interim changelog entries into main CHANGELOG files across tauri-bundler and tauri-cli packages, bumps versions (bundler 2.7.2→2.7.3, cli 2.9.2→2.9.3), and unconditionally enables Sha256 hashing in bundler HTTP utilities.

Changes

Cohort / File(s) Summary
Changelog Cleanup
.changes/bundler-user-agent.md, .changes/change-pr-14379.md, .changes/image-premultiply-fix.md, .changes/nsis-uninstall-already-killed.md
Deleted intermediate changelog entry files after consolidating their content into main CHANGELOG files.
Version Bumps
crates/tauri-bundler/Cargo.toml, crates/tauri-cli/Cargo.toml, crates/tauri-cli/metadata-v2.json, packages/cli/package.json
Updated package versions: tauri-bundler 2.7.2→2.7.3, tauri-cli 2.9.2→2.9.3. Tauri-cli dependency on tauri-bundler updated accordingly.
Changelog Updates
crates/tauri-bundler/CHANGELOG.md, crates/tauri-cli/CHANGELOG.md, packages/cli/CHANGELOG.md
Added new version entries (2.7.3 for bundler, 2.9.3 for cli packages) documenting enhancements, bug fixes, and dependency updates.
HTTP Utilities
crates/tauri-bundler/src/utils/http_utils.rs
Modified generate_github_alternative_url to return original URL instead of alternative; removed Windows-specific conditional compilation gate from HashAlgorithm::Sha256 variant, making Sha256 always available.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 Versions ascend with changelog care,
2.7.3, 2.9.3 float through the air,
Sha256 now always stands tall,
No platform walls—it works for all!
Consolidate, clean, prepare to release,
Our bundler finds hash algorithm peace. 🎉

🚥 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' directly describes the primary purpose of this PR, which systematically updates versions across multiple packages (tauri-bundler from 2.7.2 to 2.7.3, tauri-cli from 2.9.2 to 2.9.3, and packages/cli from 2.9.2 to 2.9.3) and processes associated changelog entries.

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

✨ Finishing touches
  • 📝 Generate docstrings

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

Copy link

@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 code maps the result of
generate_github_mirror_url_from_template(...).or_else(generate_github_mirror_url_from_base(...))
but ignores the computed alternative URL by returning url.to_owned(); change the
mapping to return the alternative URL (_alt_url) when present instead of the
original `url` so mirror env vars are used: update the closure that constructs
the tuple (ureq::Agent::config_builder()... , url.to_owned()) to use the
`_alt_url` (or rename to `alt_url`) as the second element; keep
BUNDLER_USER_AGENT and the Agent construction unchanged.
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 57faad0 and ab92188.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (12)
  • .changes/bundler-user-agent.md
  • .changes/change-pr-14379.md
  • .changes/image-premultiply-fix.md
  • .changes/nsis-uninstall-already-killed.md
  • crates/tauri-bundler/CHANGELOG.md
  • crates/tauri-bundler/Cargo.toml
  • crates/tauri-bundler/src/utils/http_utils.rs
  • crates/tauri-cli/CHANGELOG.md
  • crates/tauri-cli/Cargo.toml
  • crates/tauri-cli/metadata-v2.json
  • packages/cli/CHANGELOG.md
  • packages/cli/package.json
💤 Files with no reviewable changes (4)
  • .changes/bundler-user-agent.md
  • .changes/image-premultiply-fix.md
  • .changes/change-pr-14379.md
  • .changes/nsis-uninstall-already-killed.md
🔇 Additional comments (8)
packages/cli/CHANGELOG.md (1)

3-11: Changelog entry looks consistent.

The new 2.9.3 section follows the existing format and placement.

crates/tauri-bundler/CHANGELOG.md (1)

3-11: Changelog update is clear and well-structured.

crates/tauri-bundler/Cargo.toml (1)

3-3: Version bump looks consistent.

crates/tauri-cli/metadata-v2.json (1)

3-6: Metadata version bump is aligned.

crates/tauri-cli/Cargo.toml (2)

3-3: Version bump looks good.


50-50: Dependency bump aligns with bundler release.

packages/cli/package.json (1)

3-3: LGTM!

Version bump to 2.9.3 is consistent with the related changes in crates/tauri-cli/Cargo.toml and metadata-v2.json.

crates/tauri-cli/CHANGELOG.md (1)

3-17: LGTM!

The new changelog entry for version 2.9.3 follows the established format and conventions used throughout the file. The documented enhancements, bug fixes, and dependency upgrade align with the version bump in related files.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

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

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Return the mirror URL when available.

The alternative URL is computed but ignored, so mirror env vars won’t work and the original GitHub URL is always used. That’s a regression for users behind blocked/slow GitHub access.

🛠️ Proposed fix
-    .map(|_alt_url| {
+    .map(|alt_url| {
       (
         ureq::Agent::config_builder()
           .user_agent(BUNDLER_USER_AGENT)
           .build()
           .into(),
-        url.to_owned(),
+        alt_url,
       )
     })
🤖 Prompt for AI Agents
In `@crates/tauri-bundler/src/utils/http_utils.rs` around lines 50 - 59, The code
maps the result of
generate_github_mirror_url_from_template(...).or_else(generate_github_mirror_url_from_base(...))
but ignores the computed alternative URL by returning url.to_owned(); change the
mapping to return the alternative URL (_alt_url) when present instead of the
original `url` so mirror env vars are used: update the closure that constructs
the tuple (ureq::Agent::config_builder()... , url.to_owned()) to use the
`_alt_url` (or rename to `alt_url`) as the second element; keep
BUNDLER_USER_AGENT and the Agent construction unchanged.

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