acoustic-carpenter-78188
06/18/2026, 8:41 PMfuntion_name should be function_name (missing the c). It lives on the ActionMetadata message and flows through the generated code in every language, the Go backend, and the published flyteidl2 package that the Python SDK depends on.
This spans two repos: most of the work is inBackground The field is defined here:(Parts 1ā3), plus a small follow-up inflyteorg/flyte(Part 4). It's totally fine to do Part 4 as a second PR ā see the note there.flyteorg/flyte-sdk
flyteidl2/workflow/run_definition.proto (around line 188)
message ActionMetadata {
...
// Function name
string funtion_name = 13; // š typo: "funtion" ā "function"
...
}
The = 13 is the field's wire number ā we keep it as 13 so this change is fully backward-compatible on the wire. We're only fixing the human-readable name.
What needs to change
1. Fix the proto (the only file you edit by hand for the IDL) ā repo: flyteorg/flyte
In `flyteidl2/workflow/run_definition.proto`:
- string funtion_name = 13;
+ string function_name = 13;
Leave the = 13 and the // Function name comment as-is.
2. Regenerate the code stubs (proto ā Go/Python/TypeScript/Rust) ā repo: flyteorg/flyte
The files under gen/ are generated ā don't edit them by hand. Regenerate them:
make buf
This rewrites the generated stubs, including:
⢠gen/go/flyteidl2/workflow/run_definition.pb.go ā Go field FuntionName ā FunctionName, getter GetFuntionName() ā GetFunctionName()
⢠gen/python/flyteidl2/workflow/run_definition_pb2.pyi (+ _pb2.py) ā Python attr funtion_name ā function_name (this is what gets published as the flyteidl2 package)
⢠gen/ts/flyteidl2/workflow/run_definition_pb.ts ā TypeScript funtionName ā functionName
⢠gen/rust/src/flyteidl2.workflow.rs ā Rust funtion_name ā function_name
š” Don't have the full toolchain (buf/go/uv/cargo) installed? No problem ā open your PR with just the proto change, then comment3. Fix the backend (Go) references ā repo:on the PR and CI will regenerate and commit the stubs for you./regen
flyteorg/flyte
Two hand-written spots use the old generated name. In `runs/service/run_service.go`:
- FuntionName: action.FunctionName,
+ FunctionName: action.FunctionName,
(around line 1534, inside actionMetadataFromModel)
- metadata.FuntionName = action.FunctionName
+ metadata.FunctionName = action.FunctionName
(around line 1832)
Note action.FunctionName (the DB model side) is already spelled correctly ā you're only renaming the generated proto symbol on the left.
4. Update the Python SDK ā repo: flyteorg/flyte-sdk
flyte-sdk doesn't vendor the stubs ā it depends on the published flyteidl2 package (see flyteidl2==2.0.x in its pyproject.toml) and imports from flyteidl2.workflow import run_definition_pb2.
So, once the change above is merged and a new flyteidl2 package is released:
1. Bump the flyteidl2== pin in `flyte-sdk`'s pyproject.toml to the version that contains the fix.
2. Search the SDK for any reference to the old name and update it:
grep -rn "funtion_name\|funtionName" . # in the flyte-sdk repo
(As of now there are no references, so this is mostly a dependency bump + a sanity grep ā but please double-check, since src/flyte/remote/_condition.py imports run_definition_pb2.)
ā³ Ordering: Part 4 depends on aHow to verify you're done (therelease, which happens after theflyteidl2PR merges. Open it as a separate follow-up PR againstflyteorg/flyte. If you only want to tackle theflyte-sdkside, that's a complete and valuable contribution on its own ā just leave a comment so someone can pick up the SDK bump.flyteorg/flyte
flyteorg/flyte side)
# 1. No occurrences of the typo anywhere:
grep -rn "funtion" . | grep -v ".git/" # should print nothing
# 2. Backend compiles:
go build ./runs/...
CI's check-generate job also runs make buf and fails if the generated files weren't updated ā so make sure the regenerated gen/ files are committed.
Acceptance criteria
In `flyteorg/flyte`:
⢠funtion_name ā function_name in flyteidl2/workflow/run_definition.proto (field number stays 13)
⢠All gen/ stubs regenerated (Go, Python, TypeScript, Rust) and committed
⢠Both references in runs/service/run_service.go updated to FunctionName
⢠grep -rn "funtion" . returns nothing; go build ./runs/... passes
⢠Commits are signed off (git commit -s)
In flyteorg/flyte-sdk (follow-up, after a new flyteidl2 release):
⢠flyteidl2== pin bumped to the version containing the fix
⢠grep -rn "funtion_name\|funtionName" . returns nothing
Pointers for first-time contributors
⢠Contributing guide: see CONTRIBUTING.md in the repo root.
⢠The PR template will ask you to pick a changelog label ā use changed.
⢠Stuck on anything? Comment on this issue and a maintainer will help. š
flyteorg/flyte