acoustic-carpenter-78188
06/18/2026, 11:28 PMflyte run --label KEY=VALUE — attach labels to a run (repeatable):
flyte run --label team=ml --label env=prod my_workflow.py main
• flyte get run --with-label KEY=VALUE / --with-label-key KEY — filter runs by labels:
flyte get run --with-label team=ml --with-label env=prod
flyte get run --with-label-key team
• Runs now surface their labels in the rich representation.
This rebases @afbrock's #1140 (adam/labels-part-1) onto current main.
Notes on the rebase
main diverged from the original PR's base, so a few adaptations were needed:
• Single labels concept. The current proto exposes only one labels field (RunSpec.labels), so the --label flag now feeds the existing labels parameter on `with_runcontext`/`_Runner` instead of introducing a parallel run_labels param. The original PR's CreateRunRequest.labels top-level field no longer exists.
• List filtering via the generic filter API. The proto no longer has `LabelSelector`/`label_selector`. Label filters are now expressed through the existing list_pb2.Filter mechanism using a labels.<key> field convention (EQUAL for --with-label k=v, EXISTS for --with-label-key k), ANDed with the other filters. Backend support for the labels.<key> filter field should be confirmed.
Checks
• make fmt — clean
• make mypy — Success: no issues found in 289 source files
🤖 Generated with Claude Code
flyteorg/flyte-sdkacoustic-carpenter-78188
06/18/2026, 11:37 PM