Skip to content

fix(deps): update rust crate sqlx to 0.9#94

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/sqlx-0.x
Open

fix(deps): update rust crate sqlx to 0.9#94
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/sqlx-0.x

Conversation

@renovate

@renovate renovate Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
sqlx dependencies minor 0.80.9

Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • "before 9am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Jun 7, 2026
@renovate

renovate Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor Author

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: apps/backend/Cargo.lock
Command failed: cargo update --config net.git-fetch-with-cli=true --manifest-path apps/backend/crates/job/Cargo.toml --workspace
error: failed to select a version for `sqlx`.
    ... required by package `job v0.1.0 (/tmp/renovate/repos/github/koyori-app/task/apps/backend/crates/job)`
versions that meet the requirements `^0.9` (locked to 0.9.0) are: 0.9.0

package `job` depends on `sqlx` with feature `runtime-tokio-rustls` but `sqlx` does not have that feature.
help: available features: _rt-async-global-executor, _rt-async-std, _rt-smol, _rt-tokio, _sqlite, _unstable-all-types, _unstable-docs, all-databases, any, bigdecimal, bit-vec, bstr, chrono, default, derive, ipnet, ipnetwork, json, mac_address, macros, migrate, mysql, mysql-rsa, postgres, regexp, runtime-async-global-executor, runtime-async-std, runtime-smol, runtime-tokio, rust_decimal, sqlite, sqlite-bundled, sqlite-deserialize, sqlite-load-extension, sqlite-preupdate-hook, sqlite-unbundled, sqlite-unlock-notify, sqlx-macros, sqlx-mysql, sqlx-postgres, sqlx-sqlite, sqlx-toml, time, tls-native-tls, tls-none, tls-rustls, tls-rustls-aws-lc-rs, tls-rustls-ring, tls-rustls-ring-native-roots, tls-rustls-ring-webpki, uuid


failed to select a version for `sqlx` which could resolve this conflict

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 7, 2026

Copy link
Copy Markdown

Deploying koyori with  Cloudflare Pages  Cloudflare Pages

Latest commit: b71dbcd
Status: ✅  Deploy successful!
Preview URL: https://533ac239.koyori.pages.dev
Branch Preview URL: https://renovate-sqlx-0-x.koyori.pages.dev

View logs

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch 23 times, most recently from 208d63e to e461b46 Compare June 9, 2026 17:56
@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

バックエンドの Cargo.tomlsqlx 依存をバージョン 0.8 から 0.9 にアップグレード。既存の runtime-tokio-rustlspostgrestime 機能フラグは変更なし。

Changes

SQLx 依存関係アップグレード

Layer / File(s) Summary
SQLx バージョン更新
apps/backend/Cargo.toml
SQLx 依存関係が 0.8 から 0.9 にアップグレード。既存の runtime-tokio-rustlspostgrestime 機能フラグは維持。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 依存関係のスキップに、
SQLx が新しい世界へ、
マイナーバージョン、上昇す、
機能フラグは変わらぬまま、
アップデートの道を歩み続け.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed プルリクエストのタイトルは、変更セットの主要な目的であるsqlx依存関係を0.8から0.9に更新することを明確かつ簡潔に説明しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch renovate/sqlx-0.x

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/backend/Cargo.toml`:
- Line 56: The dependency line sqlx = { version = "0.9", features =
["runtime-tokio-rustls", "postgres", "time"] } requires MSRV 1.94.0, so add
rust-version = "1.94.0" to the same Cargo.toml containing that sqlx entry and
also pin the CI toolchain (create or update rust-toolchain.toml or set the
dtolnay/rust-toolchain action to channel 1.94.0) so CI uses Rust 1.94.0
consistently; ensure changes reference the existing sqlx declaration and the
rust-version key to make the MSRV explicit.
- Line 56: The public APIs in jobs (e.g., the connect/setup functions referenced
in apps/backend/src/jobs/mod.rs and apps/backend/src/jobs/github_webhook.rs)
expose Result<..., sqlx::Error>, which can clash because apalis-postgres pulls
sqlx 0.8 while the crate uses sqlx 0.9; change those function signatures to
return a non-sqlx public error type (for example anyhow::Error or Box<dyn
std::error::Error + Send + Sync>) or the apalis_postgres-specific error type,
and map/convert any internal sqlx errors to that chosen type before returning
(use .map_err(|e| e.into() / anyhow::Error::from(e)) in the connect/setup and
related functions so callers never see sqlx::Error across the crate boundary).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 3a24f089-ce72-475d-bfbd-d114de36b944

📥 Commits

Reviewing files that changed from the base of the PR and between cd8f868 and e461b46.

📒 Files selected for processing (1)
  • apps/backend/Cargo.toml

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch from e461b46 to 1bb6dff Compare June 9, 2026 20:25

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

♻️ Duplicate comments (1)
apps/backend/Cargo.toml (1)

56-56: ⚠️ Potential issue | 🟠 Major | 🏗️ Heavy lift

既存の主要な懸念事項が未解決のまま、SQLx 0.9 の破壊的変更による影響確認が必要です

過去のレビューで指摘された2つの重大な問題(MSRV 1.94.0 の未設定、apalis-postgres との sqlx バージョン競合)が未解決です。さらに、PR の説明に記載されている SQLx 0.9 の破壊的変更(query*()SqlStr 要件、Migrate トレイトの変更、型・ライフタイムパラメータの調整、Postgres 固有の動作変更)がコードベースに影響を与えないか確認が必要です。

以下のスクリプトで、sqlx 0.9 へのアップグレード後もコンパイルとテストが通るか検証してください:

#!/bin/bash
set -euo pipefail

echo "== Cargo.toml の sqlx バージョン確認 =="
rg -n 'sqlx.*version' apps/backend/Cargo.toml

echo
echo "== cargo check でコンパイル確認 =="
cd apps/backend
cargo check 2>&1 | head -100

echo
echo "== 依存関係の競合確認(sqlx 0.8 と 0.9 の混在) =="
cargo tree -p sqlx 2>&1 | head -50
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/backend/Cargo.toml` at line 56, The Cargo.toml upgrade to sqlx = "0.9"
may break build and conflicts with apalis-postgres and MSRV requirements; run
the provided verification script in the repository root to (1) confirm the sqlx
version entry in apps/backend/Cargo.toml, (2) run cargo check in apps/backend to
surface compile errors caused by sqlx 0.9 breaking changes (e.g., query*()
requiring SqlStr, Migrate trait signature changes, type/lifetime parameter
adjustments, Postgres-specific behavior), and (3) inspect cargo tree -p sqlx to
detect mixed 0.8/0.9 dependencies and apalis-postgres version mismatches; if
issues appear, either pin sqlx back to a compatible 0.8 version or update
dependent crates (including apalis-postgres) and adjust code paths that use
query*(), Migrate implementations, and any Postgres-specific APIs to the sqlx
0.9 signatures, and ensure MSRV is set to >=1.94.0 in CI/toolchain
configuration.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Duplicate comments:
In `@apps/backend/Cargo.toml`:
- Line 56: The Cargo.toml upgrade to sqlx = "0.9" may break build and conflicts
with apalis-postgres and MSRV requirements; run the provided verification script
in the repository root to (1) confirm the sqlx version entry in
apps/backend/Cargo.toml, (2) run cargo check in apps/backend to surface compile
errors caused by sqlx 0.9 breaking changes (e.g., query*() requiring SqlStr,
Migrate trait signature changes, type/lifetime parameter adjustments,
Postgres-specific behavior), and (3) inspect cargo tree -p sqlx to detect mixed
0.8/0.9 dependencies and apalis-postgres version mismatches; if issues appear,
either pin sqlx back to a compatible 0.8 version or update dependent crates
(including apalis-postgres) and adjust code paths that use query*(), Migrate
implementations, and any Postgres-specific APIs to the sqlx 0.9 signatures, and
ensure MSRV is set to >=1.94.0 in CI/toolchain configuration.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e9ffbdff-e52a-40fb-b04b-4fe96b1d928c

📥 Commits

Reviewing files that changed from the base of the PR and between e461b46 and 1bb6dff.

📒 Files selected for processing (1)
  • apps/backend/Cargo.toml

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch 2 times, most recently from d6f0ce1 to 1beedb7 Compare June 16, 2026 17:21
@opencode-agent

Copy link
Copy Markdown
Contributor

User renovate[bot] does not have write permissions

github run

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch 5 times, most recently from ae4cc72 to c5226e5 Compare June 16, 2026 18:30
@github-actions

Copy link
Copy Markdown

User renovate[bot] does not have write permissions

github run

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch from c5226e5 to 45941d5 Compare June 16, 2026 18:44
@github-actions

Copy link
Copy Markdown

User renovate[bot] does not have write permissions

github run

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch from 45941d5 to a9f17fc Compare June 17, 2026 05:37
@github-actions

Copy link
Copy Markdown

User renovate[bot] does not have write permissions

github run

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch from a9f17fc to d55d995 Compare June 17, 2026 09:56
@github-actions

Copy link
Copy Markdown

User renovate[bot] does not have write permissions

github run

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch from d55d995 to 629d030 Compare June 17, 2026 13:35
@github-actions

Copy link
Copy Markdown

User renovate[bot] does not have write permissions

github run

@renovate renovate Bot force-pushed the renovate/sqlx-0.x branch 12 times, most recently from 08ae086 to 7ad1a02 Compare June 19, 2026 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants