Skip to content

Commit 7867fad

Browse files
Pigbibicodex
andauthored
chore: allow US equity watcher source (#118)
Co-authored-by: Codex <noreply@openai.com>
1 parent c20c81a commit 7867fad

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/strategy_optimization_watcher.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,10 @@ jobs:
5353
SOURCE_WORKFLOW_FILE: ${{ github.event.inputs.workflow_file || vars.STRATEGY_WATCH_WORKFLOW_FILE || 'monthly_publish.yml' }}
5454
METRICS_FILENAME: ${{ github.event.inputs.metrics_filename || vars.STRATEGY_WATCH_METRICS_FILENAME || 'strategy_metrics.json' }}
5555
STRATEGY_WATCH_DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.dry_run) || vars.STRATEGY_WATCH_DRY_RUN || 'true' }}
56-
ALLOWED_SOURCE_REPOS: ${{ vars.STRATEGY_WATCH_ALLOWED_SOURCE_REPOS || 'QuantStrategyLab/CryptoLivePoolPipelines' }}
56+
# Keep the watcher opt-in (dry-run remains the default), while allowing
57+
# the canonical US-equity metrics producer to be selected without a
58+
# repository-variable migration.
59+
ALLOWED_SOURCE_REPOS: ${{ vars.STRATEGY_WATCH_ALLOWED_SOURCE_REPOS || 'QuantStrategyLab/CryptoLivePoolPipelines,QuantStrategyLab/UsEquitySnapshotPipelines' }}
5760
ALLOWED_SOURCE_REFS: ${{ vars.STRATEGY_WATCH_ALLOWED_SOURCE_REFS || 'main' }}
5861
steps:
5962
- name: Checkout Bridge

‎tests/test_strategy_optimization_watcher_workflow.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ def test_workflow_uses_source_metrics_checkout(self) -> None:
2525

2626
self.assertIn("SOURCE_REPO", text)
2727
self.assertIn("QuantStrategyLab/CryptoLivePoolPipelines", text)
28+
self.assertIn("QuantStrategyLab/UsEquitySnapshotPipelines", text)
2829
self.assertIn("STRATEGY_WATCH_ALLOWED_SOURCE_REPOS", text)
2930
self.assertIn("STRATEGY_WATCH_ALLOWED_SOURCE_REFS", text)
3031
self.assertIn("SOURCE_REF is not allowed", text)

0 commit comments

Comments
 (0)