Skip to content

test: add unit tests for services and tasks part-4#33223

Open
poojanInfocusp wants to merge 26 commits intolanggenius:mainfrom
infocusp-fullstack:test/service-unit-tests-part-4
Open

test: add unit tests for services and tasks part-4#33223
poojanInfocusp wants to merge 26 commits intolanggenius:mainfrom
infocusp-fullstack:test/service-unit-tests-part-4

Conversation

@poojanInfocusp
Copy link
Contributor

@poojanInfocusp poojanInfocusp commented Mar 10, 2026

Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Test Coverage Report

Coverage Summary

File Stmts Miss Branch BrPart LineCov BranchCov
services/model_provider_service.py 131 0 24 0 100.00% 100.00%
services/recommended_app_service.py 42 0 20 0 100.00% 100.00%
services/tools/tools_transform_service.py 190 1 100 11 99.47% 89.00%
services/tools/workflow_tools_manage_service.py 132 0 52 2 100.00% 96.15%
services/trigger/schedule_service.py 156 5 84 4 96.79% 95.24%
services/trigger/webhook_service.py 393 6 187 10 98.47% 94.65%
services/variable_truncator.py 266 4 163 13 98.50% 92.02%
services/workflow/workflow_converter.py 213 4 74 4 98.12% 94.59%
services/workflow_event_snapshot_service.py 229 10 66 8 95.63% 87.88%
services/workflow_run_service.py 59 0 12 0 100.00% 100.00%
tasks/document_indexing_task.py 119 9 57 9 92.44% 84.21%
api/core/tools/utils/configuration.py 73 1 34 5 98.63% 85.29%
TOTAL 2003 40 873 66 98.00% 92.44%

Screenshots

Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran make lint and make type-check (backend) and cd web && npx lint-staged (frontend) to appease the lint gods
    Fixes test: improve test coverage for services module #32582

@dosubot dosubot bot added the size:XXL This PR changes 1000+ lines, ignoring generated files. label Mar 10, 2026
@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-10 13:05:12.505117584 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-10 13:05:03.756099642 +0000
@@ -3721,32 +3721,6 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@gemini-code-assist
Copy link
Contributor

Warning

Gemini is experiencing higher than usual traffic and was unable to create the summary. Please try again in a few hours by commenting /gemini summary.

@poojanInfocusp
Copy link
Contributor Author

/gemini summary

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@poojanInfocusp
Copy link
Contributor Author

@gemini-code-assist, please review this PR.

@gemini-code-assist
Copy link
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-11 07:49:31.034999290 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-11 07:49:22.267884982 +0000
@@ -3799,32 +3799,6 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-11 08:24:03.073734921 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-11 08:23:54.040676242 +0000
@@ -3799,32 +3799,6 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-12 06:30:10.006322605 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-12 06:30:01.070254069 +0000
@@ -5300,24 +5300,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5336,18 +5326,30 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:945:56
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:954:61
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:967:26
+ERROR Argument `Literal['text/plain']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:968:26
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:981:64
+ERROR Argument `Literal['multipart/form-data']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:981:78
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:993:56
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1006:60
+ERROR Argument `dict[str, str]` is not assignable to parameter `node_data` with type `WebhookData` in function `services.trigger.webhook_service.WebhookService._validate_http_metadata` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1015:67
+ERROR Argument `dict[str, dict[str, int | object]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1284:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@autofix-ci
Copy link
Contributor

autofix-ci bot commented Mar 12, 2026

Hi! I'm autofix logoautofix.ci, a bot that automatically fixes trivial issues such as code formatting in pull requests.

I would like to apply some automated changes to this pull request, but it looks like I don't have the necessary permissions to do so. To get this pull request into a mergeable state, please do one of the following two things:

  1. Allow edits by maintainers for your pull request, and then re-trigger CI (for example by pushing a new commit).
  2. Manually fix the issues identified for your pull request (see the GitHub Actions output for details on what I would like to change).

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-12 06:48:06.225463820 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-12 06:47:57.417456629 +0000
@@ -5300,24 +5300,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5336,18 +5326,30 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:945:56
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:954:61
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:967:26
+ERROR Argument `Literal['text/plain']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:968:26
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:981:64
+ERROR Argument `Literal['multipart/form-data']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:981:78
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:993:56
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1006:60
+ERROR Argument `dict[str, str]` is not assignable to parameter `node_data` with type `WebhookData` in function `services.trigger.webhook_service.WebhookService._validate_http_metadata` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1015:67
+ERROR Argument `dict[str, dict[str, int | object]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1284:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-12 08:26:37.717694955 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-12 08:26:28.463728036 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,30 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:945:56
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `param_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._process_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:954:61
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:967:26
+ERROR Argument `Literal['text/plain']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:968:26
+ERROR Argument `list[dict[str, SegmentType | bool | str]]` is not assignable to parameter `body_configs` with type `Sequence[WebhookBodyParameter]` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:981:64
+ERROR Argument `Literal['multipart/form-data']` is not assignable to parameter `content_type` with type `ContentType` in function `services.trigger.webhook_service.WebhookService._process_body_parameters` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:981:78
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+   --> tests/unit_tests/services/test_webhook_service.py:993:56
+ERROR Argument `list[dict[str, bool | str]]` is not assignable to parameter `header_configs` with type `Sequence[WebhookParameter]` in function `services.trigger.webhook_service.WebhookService._validate_required_headers` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1006:60
+ERROR Argument `dict[str, str]` is not assignable to parameter `node_data` with type `WebhookData` in function `services.trigger.webhook_service.WebhookService._validate_http_metadata` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1015:67
+ERROR Argument `dict[str, dict[str, int | object]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1284:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-12 10:20:03.545196390 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-12 10:19:53.551213138 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions github-actions bot added the needs-revision for anti-slop label Mar 12, 2026
@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-12 10:23:53.879017141 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-12 10:23:45.081025219 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@poojanInfocusp
Copy link
Contributor Author

Hi @QuantumGhost, I have fixed the tests which were failing in the CI. Can you please review the change.

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 07:19:21.627355610 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 07:19:12.905265008 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 07:48:55.912380766 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 07:48:46.872369759 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 08:38:53.539327060 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 08:38:44.470296420 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 08:52:44.781411432 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 08:52:35.174464003 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 09:10:23.670511628 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 09:10:13.449506709 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 09:32:25.188909832 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 09:32:15.363818573 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 09:45:34.806487718 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 09:45:24.518439450 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 10:05:32.243246832 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 10:05:22.802137719 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 10:26:07.627732409 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 10:25:57.463727468 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 10:26:34.104080274 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 10:26:24.645056885 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 11:06:18.518533169 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 11:06:08.921483442 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 11:16:45.912741182 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 11:16:36.535755561 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-13 11:19:20.617046182 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-13 11:19:11.556967283 +0000
@@ -5520,18 +5520,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5546,12 +5542,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5570,18 +5560,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-14 12:13:06.086261001 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-14 12:12:57.294241524 +0000
@@ -5816,18 +5816,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5842,12 +5838,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5866,18 +5856,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

@github-actions
Copy link
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-03-14 12:13:36.396405733 +0000
+++ /tmp/pyrefly_pr.txt	2026-03-14 12:13:27.919465711 +0000
@@ -5816,18 +5816,14 @@
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:409:109
 ERROR Argument `None` is not assignable to parameter `plan` with type `CloudPlan` in function `RagPipelineTaskProxyTestDataFactory.create_mock_features` [bad-argument-type]
    --> tests/unit_tests/services/test_rag_pipeline_task_proxy.py:431:109
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:323:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:324:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:352:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:438:16
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:439:20
-ERROR `None` is not subscriptable [unsupported-operation]
-   --> tests/unit_tests/services/test_recommended_app_service.py:440:20
+ERROR Argument `dict[str, Any]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:229:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:243:56
+ERROR Argument `dict[str, dict[str, dict[str, str] | str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:260:61
+ERROR Argument `dict[str, dict[str, str] | str]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.schedule_service.ScheduleService.to_schedule_config` [bad-argument-type]
+   --> tests/unit_tests/services/test_schedule_service.py:272:56
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
   --> tests/unit_tests/services/test_summary_index_service.py:89:9
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
@@ -5842,12 +5838,6 @@
     --> tests/unit_tests/services/test_summary_index_service.py:1258:39
 ERROR Argument `SimpleNamespace` is not assignable to parameter `value` with type `ModuleType` in function `_pytest.monkeypatch.MonkeyPatch.setitem` [bad-argument-type]
     --> tests/unit_tests/services/test_summary_index_service.py:1320:66
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:204:50
-ERROR Argument `list[int]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:211:50
-ERROR Argument `list[LiteralString]` is not assignable to parameter `value` with type `list[object]` in function `services.variable_truncator.VariableTruncator._truncate_array` [bad-argument-type]
-   --> tests/unit_tests/services/test_variable_truncator.py:220:50
 ERROR Argument `dict[str, dict[Unknown, Unknown]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:194:79
 ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
@@ -5866,18 +5856,12 @@
    --> tests/unit_tests/services/test_webhook_service.py:515:83
 ERROR Argument `dict[str, dict[str, str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.extract_and_validate_webhook_data` [bad-argument-type]
    --> tests/unit_tests/services/test_webhook_service.py:535:83
+ERROR Argument `dict[str, dict[str, int | str]]` is not assignable to parameter `node_config` with type `NodeConfigDict` in function `services.trigger.webhook_service.WebhookService.generate_webhook_response` [bad-argument-type]
+    --> tests/unit_tests/services/test_webhook_service.py:1285:61
 ERROR Argument `Literal['api_key']` is not assignable to parameter `credential_type` with type `CredentialType` in function `services.tools.builtin_tools_manage_service.BuiltinToolManageService.list_builtin_provider_credentials_schema` [bad-argument-type]
   --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:84:89
 ERROR No matching overload found for function `_pytest.raises.raises` called with arguments: (tuple[type[ValueError], type[Exception]], match=Literal['not found|Provider']) [no-matching-overload]
    --> tests/unit_tests/services/tools/test_builtin_tools_manage_service.py:315:27
-ERROR Object of class `object` has no attribute `name` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:158:12
-ERROR Object of class `object` has no attribute `label` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:159:12
-ERROR Object of class `object` has no attribute `icon` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:160:12
-ERROR Object of class `object` has no attribute `version` [missing-attribute]
-   --> tests/unit_tests/services/tools/test_workflow_tools_manage_service.py:161:12
 ERROR Could not import `DatasetDocument` from `models.dataset` [missing-module-attribute]
    --> tests/unit_tests/services/vector_service.py:125:49
 ERROR `list[Document]` is not assignable to attribute `children` with type `list[ChildDocument] | None` [bad-assignment]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-revision for anti-slop size:XXL This PR changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test: improve test coverage for services module

2 participants