fix(functions): remove py310 from RunTime and docs - #2726
Draft
dbrattli wants to merge 1 commit into
Draft
Conversation
py310 is being disabled as a Functions runtime (see cognitedata/infrastructure#37224). py314 support will be added in a follow-up PR. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request removes the "py310" runtime option from the Cognite Functions API, updating the RunTime TypeAlias, docstrings, and unit tests accordingly. Additionally, some helper constants and regex patterns were added to the sync functions API module. There are no review comments, so I have no feedback to provide.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2726 +/- ##
==========================================
- Coverage 93.71% 93.68% -0.03%
==========================================
Files 504 504
Lines 51294 51300 +6
==========================================
- Hits 48070 48062 -8
- Misses 3224 3238 +14
🚀 New features to boost your workflow:
|
dbrattli
marked this pull request as draft
July 28, 2026 10:21
Contributor
Author
|
@haakonvt We need to wait until 2026-10-01 because of https://docs.cognite.com/cdf/deprecated/#deprecated-and-retired-features-and-functionality so flipping back to draft |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
py310from theRunTimeLiteral type incognite/client/data_classes/functions.py_api/functions/__init__.py, regenerated_sync_api/functions/__init__.py) to droppy310from the allowed runtime valuesfunctions/limitstest fixture accordinglyRef:
py314 support will be added in a follow-up PR.
Test plan
uv run pytest tests/tests_unit/test_api/test_functions.pypassesuv run mypyon touched files passes