Skip to content

refactor[next]: delete dead OTF workflow code (SkippableStep, BindingStep, fast fingerprinter) - #2736

Open
egparedes wants to merge 1 commit into
mainfrom
otf-split-0-trivial-deletions
Open

refactor[next]: delete dead OTF workflow code (SkippableStep, BindingStep, fast fingerprinter)#2736
egparedes wants to merge 1 commit into
mainfrom
otf-split-0-trivial-deletions

Conversation

@egparedes

@egparedes egparedes commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

First PR of a stack refactoring the gt4py.next.otf toolchain (phases 0-4 of the otf-toolchain-split proposal). This one only deletes dead code, with no behavior change:

  • workflow.SkippableStep: unused combinator (no subclasses, no instantiations in the repo). The corresponding section in docs/user/next/advanced/WorkflowPatterns.md is removed and the StrToIntFactory example simplified to the traits actually demonstrated.
  • stages.fast_compilable_program_fingerprinter and the key_function helper in runners/gtfn.py: an unused alternative cache-key function. Persistent-cache users (gtfn, dace) all use the strict fingerprinter, which they now reference directly as fingerprinting.strict_fingerprinter.
  • interface.BindingStep protocol: never implemented by any class; binding steps are plain callables.

No public gtx.* API is affected. Cache keys are unchanged (fingerprints use fully-qualified class names, which none of these deletions touch).

Requirements

  • All fixes and/or new features come with corresponding tests. (Deletion-only; existing suites cover the surviving code paths.)
  • Important design decisions have been documented in the appropriate ADR inside the docs/development/ADRs/ folder. (None needed for dead-code deletion; the naming/pipeline ADR lands later in this stack.)

https://claude.ai/code/session_01R8zRtFMhdJ8c96XJYCXkRk

…Step, fast fingerprinter)

Trivial deletions from the OTF toolchain, the first step of dissolving
'gt4py.next.otf' into a toolchain core and DSL-agnostic build
infrastructure:

- 'otf.workflow.SkippableStep': zero code users; its section in the
  WorkflowPatterns guide is removed and the factory example there is
  simplified accordingly.
- 'otf.definitions.BindingStep': zero users.
- 'otf.stages.fast_compilable_program_fingerprinter' and its only
  (vestigial) consumer 'GTFNBackendFactory.Params.key_function': no
  production users left. This also removes 'otf.stages'' only IR-side
  imports ('itir', 'common').

No behavior change.

Claude-Session: https://claude.ai/code/session_01R8zRtFMhdJ8c96XJYCXkRk
@egparedes
egparedes marked this pull request as ready for review July 30, 2026 17:58
@egparedes
egparedes force-pushed the otf-split-0-trivial-deletions branch from 13da480 to e377ee3 Compare July 30, 2026 17: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