ci(ci): gate bossbot on passing tests#937
Conversation
Signed-off-by: phernandez <paul@basicmachines.co>
4b13258 to
9a24ada
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b132588ba
ℹ️ 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 [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then | ||
| tests_run_id="$( | ||
| gh api -X GET "repos/${GITHUB_REPOSITORY}/actions/workflows/test.yml/runs" \ | ||
| -f event=pull_request \ |
There was a problem hiding this comment.
Query the push-triggered Tests runs on manual dispatch
When BM Bossbot is run via workflow_dispatch, this lookup asks GitHub for successful test.yml runs whose event is pull_request, but I checked .github/workflows/test.yml and it only triggers on push. The REST workflow-runs event parameter filters by the triggering event, so even a current PR head with green Tests will return no rows here, set should_review=false, and skip Codex/status/assets for the manual fallback path.
Useful? React with 👍 / 👎.
Signed-off-by: phernandez <paul@basicmachines.co>
Summary
Testsworkflow runs instead of direct PR events.Verification
uv run pytest tests/ci/test_bm_bossbot_workflow.py tests/scripts/test_generate_pr_infographic.py tests/test_codex_plugin_package.py -quv run ruff check scripts/generate_pr_infographic.py tests/ci/test_bm_bossbot_workflow.py tests/scripts/test_generate_pr_infographic.py tests/test_codex_plugin_package.pyjust typecheckjust package-checkReviewed SHA:
1da2ec08ba2ea5f80ebf308b6d2853efdd487981Verdict:
approveStatus:
success- BM Bossbot approved this head SHASummary:
Reviewed the full provided diff against the Basic Memory engineering style and Bossbot merge-gate priorities. The prior manual-dispatch blocker is addressed by matching the push-only Tests workflow, and I found no remaining concrete merge blockers.
Blocking findings:
Non-blocking findings:
BM Bossbot image provenance
#937/home/runner/work/basic-memory/basic-memory/docs/assets/infographics/pr-937.webpgpt-image-21536x1024highautononeTheme / choice instruction:
None supplied.
Image prompt sent to
gpt-image-2:Images API revised prompt:
Not provided by the Images API.