Skip to content

Add execution report heartbeat alerts#60

Merged
Pigbibi merged 1 commit into
mainfrom
codex/report-heartbeat
Jun 2, 2026
Merged

Add execution report heartbeat alerts#60
Pigbibi merged 1 commit into
mainfrom
codex/report-heartbeat

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add an Execution Report Heartbeat workflow that checks recent runtime report JSON instead of Cloud Run request success
  • filter reports by platform/service so shared report buckets cannot mask a missing service report
  • document setup and behavior in English and Chinese

Validation

  • python -m py_compile scripts/execution_report_heartbeat.py
  • real read-only GCS smoke with Telegram disabled
  • git diff --check

@Pigbibi Pigbibi merged commit 261727b into main Jun 2, 2026
1 check passed
@Pigbibi Pigbibi deleted the codex/report-heartbeat branch June 2, 2026 12:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e25621c91a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if platform and not base.rstrip("/").endswith(f"/{platform}"):
base = f"{base}/{platform}"
for month in _month_segments(since, now):
globs.append(f"{base}/**/{month}/*.json")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Match the persisted month directory format

The default heartbeat glob is built with the raw month segment like 2026-06, but the strategy-run writer stores the period through safe_key(run_period), so the actual latest report path is under 2026_06/latest.json. With only FIRSTRADE_GCS_STATE_BUCKET / FIRSTRADE_STATE_PREFIX configured as documented, this glob never matches the persisted strategy-run JSON and the scheduled heartbeat will alert/fail even after a successful run.

Useful? React with 👍 / 👎.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant