Repository navigation
refactor(op): break the materialize/oci_image import cycle - #2343
Merged
norrietaylor merged 1 commit intoOct 20, 2026
Merged
Conversation
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>
Contributor
|
Warning Review limit reached
This review includes 4 billable files and costs up to $1.00. Or wait 14 minutes for your next included review. View limit details
Comment |
Contributor
|
Add Carrot credits or activate Agent usage billing to use Autofix |
norrietaylor
approved these changes
Oct 19, 2026
Member
There was a problem hiding this comment.
LGTM. The cycle is broken: oci_image no longer imports from materialize. Optional nits:
events_render_as_log_lines(materialize.rs:520) tests therendercode that moved, so it could move intomaterialize_events.rsas well.- The title says
fix:, but the commit isrefactor(op):. A squash merge would land it as a fix in the changelog.
Generated by Claude Code
norrietaylor
deleted the
inbox-patch/materialize-events-module-34de8bd726500b48
branch
October 20, 2026 04:25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Routing-Key: inbox-route/I_kwDOSUhdos8AAAABYJPo1A
crates/op's
materializeandoci_imagemodules imported each other:materializeownedMaterializeEventand theEmitterhelper thatoci_imageconsumed, whilematerializeneededOciImageto driveimage outputs. This moves both types into a new
materialize_eventsmodule that imports neither side, so the dependency between the two
modules now runs one way (
materialize->oci_image). No behaviourchanges: the public
op::MaterializeEventpath is preserved via lib.rs,and a crate-visible constructor replaces direct construction of
Emitterfrom outside the new module.Verification
cargo fmt --all --check --manifest-path target/Cargo.toml— passed, no diffcargo clippy --workspace --all-targets --locked --manifest-path target/Cargo.toml -- -D warnings— passed, zero warningscargo test --locked --manifest-path target/Cargo.toml -p op— passed, 37/37 testsoci_image.rsnow importscrate::materialize_events(notcrate::materialize);materialize_events.rsimports neither module — the cycle is gone