Skip to content

Commit 0635c18

Browse files
Pigbibicodex
andcommitted
feat: schedule dedicated SOXL optimization monitoring
Co-Authored-By: Codex <noreply@openai.com>
1 parent 6280654 commit 0635c18

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/strategy_optimization_watcher.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ on:
3030
default: true
3131
schedule:
3232
- cron: "17 6 * * *"
33+
- cron: "23 6 * * *"
3334

3435
permissions:
3536
contents: read
@@ -49,10 +50,10 @@ jobs:
4950
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
5051
SOURCE_REPO: ${{ github.event.inputs.source_repo || vars.STRATEGY_WATCH_SOURCE_REPO || 'QuantStrategyLab/CryptoLivePoolPipelines' }}
5152
SOURCE_REF: ${{ github.event.inputs.source_ref || vars.STRATEGY_WATCH_SOURCE_REF || 'main' }}
52-
METRICS_PATH: ${{ github.event.inputs.metrics_path || vars.STRATEGY_WATCH_METRICS_PATH || 'data/output/strategy_metrics.json' }}
53-
SOURCE_WORKFLOW_FILE: ${{ github.event.inputs.workflow_file || vars.STRATEGY_WATCH_WORKFLOW_FILE || 'monthly_publish.yml' }}
53+
METRICS_PATH: ${{ github.event.schedule == '23 6 * * *' && 'data/output/soxl-p3-watcher-comparison.json' || github.event.inputs.metrics_path || vars.STRATEGY_WATCH_METRICS_PATH || 'data/output/strategy_metrics.json' }}
54+
SOURCE_WORKFLOW_FILE: ${{ github.event.schedule == '23 6 * * *' && 'soxl-p1-p3-daily-research.yml' || github.event.inputs.workflow_file || vars.STRATEGY_WATCH_WORKFLOW_FILE || 'monthly_publish.yml' }}
5455
METRICS_FILENAME: ${{ github.event.inputs.metrics_filename || vars.STRATEGY_WATCH_METRICS_FILENAME || 'strategy_metrics.json' }}
55-
TERMINAL_PROFILE: ${{ vars.STRATEGY_WATCH_TERMINAL_PROFILE || '' }}
56+
TERMINAL_PROFILE: ${{ github.event.schedule == '23 6 * * *' && 'soxl_soxx_trend_income' || vars.STRATEGY_WATCH_TERMINAL_PROFILE || '' }}
5657
STRATEGY_WATCH_DRY_RUN: ${{ github.event_name == 'workflow_dispatch' && format('{0}', inputs.dry_run) || vars.STRATEGY_WATCH_DRY_RUN || 'true' }}
5758
# Keep the watcher opt-in (dry-run remains the default), while allowing
5859
# the canonical US-equity metrics producer to be selected without a

tests/test_strategy_optimization_watcher_workflow.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ def test_workflow_is_issue_only_and_dry_run_by_default(self) -> None:
1212
text = WORKFLOW_PATH.read_text(encoding="utf-8")
1313

1414
self.assertIn("name: Strategy Optimization Watcher", text)
15+
self.assertIn('cron: "17 6 * * *"', text)
16+
self.assertIn('cron: "23 6 * * *"', text)
17+
self.assertIn("github.event.schedule == '23 6 * * *'", text)
18+
self.assertIn("soxl-p1-p3-daily-research.yml", text)
1519
self.assertIn("default: true", text)
1620
self.assertIn("STRATEGY_WATCH_DRY_RUN", text)
1721
self.assertIn("python -m scripts.run_strategy_optimization_watcher", text)

0 commit comments

Comments
 (0)