Skip to content

chore(types): delete the dag_export module - #617

Draft
zzylol wants to merge 1 commit into
stack/cleanup-1-dag-export-binfrom
stack/cleanup-2-dag-export-module
Draft

zzylol wants to merge 1 commit into
stack/cleanup-1-dag-export-binfrom
stack/cleanup-2-dag-export-module

Conversation

@zzylol

@zzylol zzylol commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #574 → #620 → #618 → #621 → #627 → #625 → #628 → #632 → #634 → #616 → #617 → #622 → #624 → #629 → #630 → #631 → #633 → #635 → #636 → #637

Problem

With the dag_export bin gone (#616), nothing outside a few tests and comments used asap_types::dag_export. The viewer reads stage_pipeline documents instead.

Changes

  • Delete crates/types/src/dag_export.rs and its lib.rs module.
  • Remove its test dependents:
    • logical-optimizer pass1/explanation.rs: the node_hash_matches_dag_export_hash_for_the_same_sub_dag test, plus doc comments that pointed at dag_export.
    • pass1/replacement.rs: the export_summary assertion now checks the candidate node's own guarantee, which is what the exported field held.
    • integration-tests/tests/exact_composition.rs: the dag_export_carries_explicit_stage_and_plain_schema_for_a_composed_plan test.
  • Fix stale comments in types/src/cost.rs, ir/properties/guarantee.rs, types/Cargo.toml, tools/dag-viewer/node-style.js, crates/devtools/tests/viewer_contract.rs, and .github/workflows/rust.yml. The viewer kind contract is checked by the devtools viewer_contract test, not by the types tests.

Stacked on #616.

Test plan

  • cargo fmt --all --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace: 1646 passed, 0 failed, 13 ignored (after the rebase on main d4869a7; was 1643 passed, 13 ignored)

🤖 Generated with Claude Code

Nothing outside tests and comments used it once the dag_export bin was
gone; the viewer reads stage_pipeline documents.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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