Skip to content

Fix main build: add is_bare_url_ref to block_with_archive test fixture#136

Merged
tieguy merged 1 commit into
mainfrom
claude/fix-mcp-blockref-field
Jul 10, 2026
Merged

Fix main build: add is_bare_url_ref to block_with_archive test fixture#136
tieguy merged 1 commit into
mainfrom
claude/fix-mcp-blockref-field

Conversation

@tieguy

@tieguy tieguy commented Jul 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

One-line fix for the main build breakage: crates/sp42-mcp/src/page.rs's block_with_archive test helper constructs a BlockRef without the is_bare_url_ref field.

Root cause is a semantic merge conflict between two independently-green PRs: #109 added is_bare_url_ref to BlockRef (updating the sibling block_with helper), while #118 — written before #109 merged — added block_with_archive without it. Their merge fails workspace compilation (E0063 in sp42-mcp lib tests), which is currently failing CI for every open PR (first seen on #129, a docs-only PR).

Type

  • Bug fix
  • Feature
  • Refactor
  • Documentation
  • Build, CI, or release
  • Security-sensitive change

Validation Required

cargo test -p sp42-mcp   # 28 passed, 0 failed

The field value (false) matches the sibling block_with fixture: both helpers build ordinary cite refs, not bare-URL refs.

Risk

  • Touches auth/session/cookies/CSRF
  • Touches deployment/runtime configuration
  • Touches desktop packaging
  • Touches scoring or Wikimedia action behavior
  • Needs an ADR

Test-fixture-only change; no production code touched.

Notes For Reviewers

After this merges, open PRs need a CI re-run (or any push) to go green — merges to main don't re-trigger PR checks.

🤖 Generated with Claude Code

https://claude.ai/code/session_01ATEQwdt8J9mVb94EcgRFY3


Generated by Claude Code

PR #109 added the field to BlockRef and updated block_with; PR #118,
written before #109 merged, added block_with_archive without it. Both were
green independently; their merge broke the workspace build (E0063 in
sp42-mcp's lib tests), failing CI for every open PR.

cargo test -p sp42-mcp: 28 passed.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ATEQwdt8J9mVb94EcgRFY3
@tieguy tieguy requested a review from schiste as a code owner July 10, 2026 20:40
@tieguy tieguy merged commit faebcd0 into main Jul 10, 2026
4 checks passed
@tieguy tieguy deleted the claude/fix-mcp-blockref-field branch July 10, 2026 20:46
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.

2 participants