Skip to content

Report a step by a label, the name of its class - #3

Merged
JoshuaWink merged 1 commit into
betafrom
step-labels
Oct 10, 2026
Merged

JoshuaWink merged 1 commit into
betafrom
step-labels

Conversation

@JoshuaWink

Copy link
Copy Markdown
Member

What changes

  • State and Hooks report a step by the name of its class: DiscountFilter. Before, they gave the full path of the class.
  • The second use of a class in one pipeline is DiscountFilter#2. A Valve has the label of its Filter.
  • A step without the method of its role is refused with a TypeError when it is added.

Removed

  • AnonymousStep, and the refusal of a class from a function or from the entry script.
  • Pipeline.identities (now Pipeline.labels) and Pipeline.step_sites.
  • Lint rule CUP-A006.

Not compatible with 1.0.0

The strings in state.executed, state.skipped, state.errors, state.timings and in Hook calls change.

Checks

Tests on Python 3.9 and 3.12, both linters, the conformance suite, and 2,000 random pipelines.

This pull request is part of a stack. Merge the stack in order, with a merge commit: step-labels, typescript-runtime, typescript-lint, typescript-compile, python-compile-rename, version-2-beta. Each one shows only its own change.

🤖 Generated with Claude Code

State and Hooks reported each step by the full path of its class
(module.QualName). They now report the class name: DiscountFilter.
The second use of a class in one pipeline is DiscountFilter#2. A Valve
has the label of its Filter.

Removed, because they existed only for the full path:
- AnonymousStep, and the refusal of classes from a function or from the
  entry script. A step without the method of its role is refused with a
  TypeError when it is added.
- Pipeline.identities (now Pipeline.labels) and Pipeline.step_sites.
- Lint rule CUP-A006 (entry-script step).

BREAKING CHANGE: the strings in state.executed, state.skipped,
state.errors, state.timings and in Hook calls are class names, not
module paths. AnonymousStep, Pipeline.identities and Pipeline.step_sites
are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@JoshuaWink
JoshuaWink merged commit 4e0852e into beta Oct 10, 2026
9 checks passed
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