Skip to content

fix(offline): guard marketplace I/O paths for ENG-421 [cherry-pick → hotfix/1.14.1-fix.3]#36414

Merged
wylswz merged 1 commit into
hotfix/1.14.1-fix.3from
cherry-pick/pr-36335-to-hotfix-1.14.1-fix.3
May 20, 2026
Merged

fix(offline): guard marketplace I/O paths for ENG-421 [cherry-pick → hotfix/1.14.1-fix.3]#36414
wylswz merged 1 commit into
hotfix/1.14.1-fix.3from
cherry-pick/pr-36335-to-hotfix-1.14.1-fix.3

Conversation

@GareArc
Copy link
Copy Markdown
Contributor

@GareArc GareArc commented May 20, 2026

Summary

Cherry-pick of #36335 onto hotfix/1.14.1-fix.3.

  • Skip marketplace fetches, metadata lookups, and bulk-install pre-checks when MARKETPLACE_ENABLED=false
  • Covers plugin_service, plugin_migration, rag_pipeline, and rag_pipeline_transform_service

Test plan

  • Unit tests added in original PR pass (api/tests/unit_tests/services/plugin/, api/tests/unit_tests/services/rag_pipeline/)
  • Verify no marketplace API calls made when MARKETPLACE_ENABLED=false

Skip marketplace fetches, metadata lookups, and bulk-install
pre-checks when MARKETPLACE_ENABLED=false. Covers plugin_service,
plugin_migration, rag_pipeline, and rag_pipeline_transform_service.
@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 20, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

Pyrefly Type Coverage

Metric Base PR Delta
Type coverage 0.00% 43.66% +43.66%
Strict coverage 0.00% 43.19% +43.19%
Typed symbols 0 22,077 +22,077
Untyped symbols 0 28,798 +28,798
Modules 0 2556 +2,556

@github-actions
Copy link
Copy Markdown
Contributor

Pyrefly Diff

base → PR
--- /tmp/pyrefly_base.txt	2026-05-20 02:22:20.254923764 +0000
+++ /tmp/pyrefly_pr.txt	2026-05-20 02:22:08.004787737 +0000
@@ -587,7 +587,7 @@
 ERROR Argument `bool | str | Any` is not assignable to parameter `token` with type `str` in function `core.helper.encrypter.encrypt_token` [bad-argument-type]
    --> services/model_load_balancing_service.py:623:71
 ERROR `handled_tenant_count` was assigned in the current scope before the nonlocal declaration [unknown-name]
-  --> services/plugin/plugin_migration.py:92:34
+  --> services/plugin/plugin_migration.py:93:34
 ERROR `dict[str, Any]` is not assignable to attribute `credentials` with type `Never` [bad-assignment]
    --> services/trigger/trigger_provider_service.py:487:40
 ERROR `int` is not assignable to attribute `credential_expires_at` with type `Never` [bad-assignment]

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label May 20, 2026
@wylswz wylswz merged commit a79ee94 into hotfix/1.14.1-fix.3 May 20, 2026
5 checks passed
@wylswz wylswz deleted the cherry-pick/pr-36335-to-hotfix-1.14.1-fix.3 branch May 20, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants