Coverage for /home/airflow/.local/lib/python3.12/site-packages/airflow/api_fastapi/execution_api/versions/__init__.py: 100%

11 statements  

« prev     ^ index     » next       coverage.py v7.15.2, created at 2026-10-07 14:22 +0000

1# Licensed to the Apache Software Foundation (ASF) under one 

2# or more contributor license agreements. See the NOTICE file 

3# distributed with this work for additional information 

4# regarding copyright ownership. The ASF licenses this file 

5# to you under the Apache License, Version 2.0 (the 

6# "License"); you may not use this file except in compliance 

7# with the License. You may obtain a copy of the License at 

8# 

9# http://www.apache.org/licenses/LICENSE-2.0 

10# 

11# Unless required by applicable law or agreed to in writing, 

12# software distributed under the License is distributed on an 

13# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 

14# KIND, either express or implied. See the License for the 

15# specific language governing permissions and limitations 

16# under the License. 

17 

18from __future__ import annotations 

19 

20from cadwyn import HeadVersion, Version, VersionBundle 

21 

22from airflow.api_fastapi.execution_api.versions.v2025_04_28 import AddRenderedMapIndexField 

23from airflow.api_fastapi.execution_api.versions.v2025_05_20 import DowngradeUpstreamMapIndexes 

24from airflow.api_fastapi.execution_api.versions.v2025_08_10 import ( 

25 AddDagRunStateFieldAndPreviousEndpoint, 

26 AddIncludePriorDatesToGetXComSlice, 

27) 

28from airflow.api_fastapi.execution_api.versions.v2025_09_23 import AddDagVersionIdField 

29from airflow.api_fastapi.execution_api.versions.v2025_10_27 import MakeDagRunConfNullable 

30from airflow.api_fastapi.execution_api.versions.v2025_11_05 import AddTriggeringUserNameField 

31from airflow.api_fastapi.execution_api.versions.v2026_04_06 import ( 

32 AddDagEndpoint, 

33 AddDagRunDetailEndpoint, 

34 AddNoteField, 

35 AddPartitionKeyField, 

36 AddRunAfterField, 

37 AddTaskInstanceStartDateField, 

38 MakeDagRunStartDateNullable, 

39 ModifyDeferredTaskKwargsToJsonValue, 

40 MovePreviousRunEndpoint, 

41 RemoveUpstreamMapIndexesField, 

42) 

43from airflow.api_fastapi.execution_api.versions.v2026_06_30 import ( 

44 AddAssetsByAliasEndpoint, 

45 AddAwaitingInputStatePayload, 

46 AddConnectionTestEndpoint, 

47 AddConsumedAssetEventPartitionKeyField, 

48 AddPartitionDateField, 

49 AddRetryPolicyFields, 

50 AddTaskAndAssetStateStoreEndpoints, 

51 AddTaskInstanceQueueField, 

52 AddTeamNameField, 

53 AddVariableKeysEndpoint, 

54) 

55 

56bundle = VersionBundle( 

57 HeadVersion(), 

58 Version( 

59 "2026-06-30", 

60 AddVariableKeysEndpoint, 

61 AddConnectionTestEndpoint, 

62 AddAwaitingInputStatePayload, 

63 AddTaskInstanceQueueField, 

64 AddRetryPolicyFields, 

65 AddTeamNameField, 

66 AddTaskAndAssetStateStoreEndpoints, 

67 AddAssetsByAliasEndpoint, 

68 AddPartitionDateField, 

69 AddConsumedAssetEventPartitionKeyField, 

70 ), 

71 Version( 

72 "2026-04-06", 

73 AddPartitionKeyField, 

74 MovePreviousRunEndpoint, 

75 AddDagRunDetailEndpoint, 

76 MakeDagRunStartDateNullable, 

77 ModifyDeferredTaskKwargsToJsonValue, 

78 RemoveUpstreamMapIndexesField, 

79 AddNoteField, 

80 AddTaskInstanceStartDateField, 

81 AddRunAfterField, 

82 AddDagEndpoint, 

83 ), 

84 Version("2025-11-05", AddTriggeringUserNameField), 

85 Version("2025-10-27", MakeDagRunConfNullable), 

86 Version("2025-09-23", AddDagVersionIdField), 

87 Version( 

88 "2025-08-10", 

89 AddDagRunStateFieldAndPreviousEndpoint, 

90 AddIncludePriorDatesToGetXComSlice, 

91 ), 

92 Version("2025-05-20", DowngradeUpstreamMapIndexes), 

93 Version("2025-04-28", AddRenderedMapIndexField), 

94 Version("2025-04-11"), 

95)