Skip to content

fix(infra): name the B2 endpoint's scheme, as Nix asks - #9642

Merged
kixelated merged 1 commit into
mainfrom
fix/nix-b2-endpoint-scheme
Nov 25, 2026
Merged

kixelated merged 1 commit into
mainfrom
fix/nix-b2-endpoint-scheme

Conversation

@kixelated

@kixelated kixelated commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

Problem

Since the nix.moq.dev move to B2 (moq-dev/moq#9625), every nix copy in cache.yml warns:

warning: the S3 'endpoint' value 's3.us-east-005.backblazeb2.com' does not specify a scheme; this form is deprecated, use a full URL such as 'https://s3.us-east-005.backblazeb2.com' instead

(run 45702716418). The push keeps working today, but stops once Nix drops the bare form.

Fix

infra/nix/justfile's endpoint now carries https://, and rclone's endpoint reuses it as is instead of adding the scheme itself.

Caused by

  • moq-dev/moq#9625 - passed the B2 endpoint to nix copy without a scheme (found by person, reading the CI log warning)

Impact

CI cache pushes only. Public API: none. Wire: none.

Validation

  • nix store info --store 's3://nix-moq-dev?endpoint=https://s3.us-east-005.backblazeb2.com&region=us-east-005' (Nix 2.35.4, dummy key) requests https://s3.us-east-005.backblazeb2.com/nix-moq-dev/nix-cache-info, the same URL as the bare form, and gets B2's 401 for the dummy key.
  • The real check is the first cache.yml run on main after merge: its nix copy steps push with the CI write key and print no deprecation warning. No local B2 write key exists to test a push before then.

Models

Size: XS
Implementer: Claude Code, claude-opus-5-5, high

🤖 Generated with Claude Code

(Written by Opus 5.5 with high)

Review

Rewritten by quest review after each round.

  • Head: 4250579

  • Base: origin/main at a1e6850

  • Risk: medium, The change only edits the infra/nix justfile so the rclone `b2:` remote gets a scheme-qualified endpoint (`https://` moved from the composed value into the variable itself); it touches no shipped code, API, wire format, token check, or release script, and nothing a consumer relies on. If wrong, the rclone B2 sync from infra/nix would fail or misbehave, which the repository's own runs meet first, and a revert of the two lines fully undoes it.

  • Classified: medium by Claude Code, claude-haiku-5-5, low effort, session 63d80c6c-a326-48ba-ba49-e44676bf9234

  • Reviewer: Codex, gpt-6.2-sol, low effort

  • Session: 01a214b5-9306-7f11-a155-276d36f40fa0, round 1

  • Score: 10/10, Both Nix consumers (`push` and `refresh`) now receive the HTTPS endpoint, while rclone retains its effective endpoint and callers retain their existing interfaces.

  • Rounds: 1; first round 0; findings 0: fixed 0, refuted 0, open 0

  • Findings: none

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 16 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ce6eeee1-2ebf-49d9-8334-df9ee522ad4d
Commits

Reviewing files that changed from the base of the PR and between a1e6850 and 4250579.

Files selected for processing: 1

  • infra/nix/justfile
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@kixelated
kixelated added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit bc6157b Nov 25, 2026
7 checks passed
@kixelated
kixelated deleted the fix/nix-b2-endpoint-scheme branch November 25, 2026 21:58
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