Skip to content

Commit ee6216f

Browse files
committed
Fix default strategy plugin artifact bucket
1 parent 2240f0b commit ee6216f

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

scripts/build_runtime_switch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
)
2424

2525

26-
DEFAULT_ARTIFACT_BUCKET_URI = "gs://qsl-runtime-logs-interactivebrokersquant"
26+
DEFAULT_ARTIFACT_BUCKET_URI = "gs://qsl-runtime-logs-shared"
2727
MARKET_REGIME_CONTROL_PROFILES = frozenset(
2828
{
2929
"tqqq_growth_income",

tests/test_runtime_settings.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ def test_build_switch_target_defaults_longbridge_sg_tqqq(self):
249249
self.assertEqual(assignments["LONGBRIDGE_DRY_RUN_ONLY"], "false")
250250
plugin_payload = json.loads(assignments["LONGBRIDGE_STRATEGY_PLUGIN_MOUNTS_JSON"])
251251
self.assertEqual(plugin_payload["strategy_plugins"][0]["plugin"], "market_regime_control")
252+
self.assertEqual(
253+
plugin_payload["strategy_plugins"][0]["signal_path"],
254+
"gs://qsl-runtime-logs-shared/strategy-artifacts/us_equity/"
255+
"tqqq_growth_income/plugins/market_regime_control/latest_signal.json",
256+
)
252257
self.assertEqual(plugin_payload["strategy_plugins"][0]["expected_schema_version"], "market_regime_control.v1")
253258

254259
def test_build_switch_target_uses_fork_repository_overrides(self):
@@ -654,6 +659,11 @@ def test_build_switch_target_patches_ibkr_service_targets_json(self):
654659
selected["IBKR_STRATEGY_PLUGIN_MOUNTS_JSON"]["strategy_plugins"][0]["plugin"],
655660
"market_regime_control",
656661
)
662+
self.assertEqual(
663+
selected["IBKR_STRATEGY_PLUGIN_MOUNTS_JSON"]["strategy_plugins"][0]["signal_path"],
664+
"gs://qsl-runtime-logs-shared/strategy-artifacts/us_equity/"
665+
"tqqq_growth_income/plugins/market_regime_control/latest_signal.json",
666+
)
657667
self.assertEqual(untouched["runtime_target"]["strategy_profile"], "soxl_soxx_trend_income")
658668

659669
def test_build_switch_target_can_clear_preserved_ibkr_reserved_cash_fields(self):

0 commit comments

Comments
 (0)