uranusjr commented on code in PR #77229:
URL: https://github.com/apache/airflow/pull/77229#discussion_r4738828766


##########
ts-sdk/tests/coordinator/integration.test.ts:
##########
@@ -130,7 +130,15 @@ function makeStartupDetails(
     dag_rel_path: "test.py",
     bundle_info: { name: "test", version: null },
     start_date: "2026-04-23T00:00:00Z",
-    ti_context: tiContext,
+    ti_context: {
+      dag_run: {
+        dag_id: dagId,
+        run_id: runId,
+        run_after: "2026-04-23T00:00:00Z",
+        run_type: "manual",
+      },
+      ...tiContext,

Review Comment:
   `...` only copy shallowly; this passes only because `toMatchObject` checks a 
subset. We need to merge one level deeper. (Or maybe just do it manually 
instead.)



##########
ts-sdk/src/coordinator/runtime.ts:
##########
@@ -497,14 +497,30 @@ function responseType(body: unknown): string {
   return "unknown";
 }
 
+function toDate(value: string | null | undefined): Date | null {
+  return value ? new Date(value) : null;
+}

Review Comment:
   Consider rejecting and/or logging when `getTime()` is `NaN`. (For 
comparision, Java logs and returns null.)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to