8000 refactor(op): break the materialize/oci_image import cycle by gominimal-aw-bot[bot] · Pull Request #2343 · gominimal/minimal · GitHub
[go: up one dir, main page]

Skip to content

refactor(op): break the materialize/oci_image import cycle - #2343

Merged
norrietaylor merged 1 commit into
mainfrom
inbox-patch/materialize-events-module-34de8bd726500b48
Oct 20, 2026
Merged

norrietaylor merged 1 commit into
mainfrom
inbox-patch/materialize-events-module-34de8bd726500b48

Conversation

@gominimal-aw-bot
Copy link
Copy Markdown
Contributor

Routing-Key: inbox-route/I_kwDOSUhdos8AAAABYJPo1A

crates/op's materialize and oci_image modules imported each other:
materialize owned MaterializeEvent and the Emitter helper that
oci_image consumed, while materialize needed OciImage to drive
image outputs. This moves both types into a new materialize_events
module that imports neither side, so the dependency between the two
modules now runs one way (materialize -> oci_image). No behaviour
changes: the public op::MaterializeEvent path is preserved via lib.rs,
and a crate-visible constructor replaces direct construction of
Emitter from outside the new module.

Verification

  • cargo fmt --all --check --manifest-path target/Cargo.toml — passed, no diff
  • cargo clippy --workspace --all-targets --locked --manifest-path target/Cargo.toml -- -D warnings — passed, zero warnings
  • cargo test --locked --manifest-path target/Cargo.toml -p op — passed, 37/37 tests
  • import-edge check: oci_image.rs now imports crate::materialize_events (not crate::materialize); materialize_events.rs imports neither module — the cycle is gone

materialize and oci_image imported each other: materialize owned
MaterializeEvent and Emitter, which oci_image consumed, while
materialize needed OciImage to drive image outputs. Move both
types into a new materialize_events module that imports neither
side, so the dependency between the two modules now runs one
way. The public op::MaterializeEvent path is unchanged; a
constructor replaces the direct struct-literal construction of
Emitter from outside the new module.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@gominimal-aw-bot
gominimal-aw-bot Bot requested a review from a team as a code owner October 19, 2026 06:19
@gominimal-aw-bot gominimal-aw-bot Bot added agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. refactor labels Oct 19, 2026
@coderabbitai
coderabbitai Bot commented Oct 19, 2026 •
Copy link
Copy Markdown
Contributor

Warning

Review limit reached

  • Run on-demand review

This review includes 4 billable files and costs up to $1.00.

Or wait 14 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available. Your 32 included PR review attempts over the past 7 days set your current allowance at 4 reviews per hour.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Essentials
  • Run ID: a4d512ee-4253-4cfc-ac1a-264538d001d6
📥 Commits

Reviewing files that changed from the base of the PR and between 1bec117 and a8d3a0f.

📒 Files selected for processing: 4
  • crates/op/src/lib.rs
  • crates/op/src/materialize.rs
  • crates/op/src/materialize_events.rs
  • crates/op/src/oci_image.rs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@gominimal-aw-bot gominimal-aw-bot Bot added the agent:resolve Consent gate: pr-conflict-resolver may rewrite this branch label Oct 19, 2026
@coderabbitai
coderabbitai Bot commented Oct 19, 2026
Copy link
Copy Markdown
Contributor

Add Carrot credits or activate Agent usage billing to use Autofix

@norrietaylor norrietaylor left a comment
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. The cycle is broken: oci_image no longer imports from materialize. Optional nits:

  • events_render_as_log_lines (materialize.rs:520) tests the render code that moved, so it could move into materialize_events.rs as well.
  • The title says fix:, but the commit is refactor(op):. A squash merge would land it as a fix in the changelog.

Generated by Claude Code

@norrietaylor
norrietaylor added this pull request to the merge queue Oct 20, 2026
@norrietaylor norrietaylor changed the title fix: op: break the materialize/oci_image import cycle refactor(op): break the materialize/oci_image import cycle Oct 20, 2026
Merged via the queue into main with commit 0c146d9 Oct 20, 2026
36 checks passed
@norrietaylor
norrietaylor deleted the inbox-patch/materialize-events-module-34de8bd726500b48 branch October 20, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:fix Agentic fix PR eligible for review iteration; min-aw's worker-iterate gates on it. agent:resolve Consent gate: pr-conflict-resolver may rewrite this branch refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0