Skip to content

Open GitHub issues for failed tooling checks on main - #1270

Open
zlareb1 wants to merge 9 commits into
mainfrom
ci/tooling-failure-issues
Open

zlareb1 wants to merge 9 commits into
mainfrom
ci/tooling-failure-issues

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Changelog category

  • CI Fix or Improvement

Why

Failures in default-branch tooling need an issue to track the repair.

Scope and risk

Create one GitHub issue for each covered check group whose latest trusted default-branch run failed or timed out. An hourly run also checks open CodeQL and Scorecard alerts and creates one review issue per scanner. An open issue covers repeated findings. If a workflow already publishes issues, the central reporter is a fallback for an incomplete publishing job. A closed issue acknowledges the workflow run or scanner alert numbers already recorded. A higher run or alert number can open a new issue. GitHub Security tracks reopenings of existing alerts. If a lookup or issue write fails, report other findings and mark the sweep incomplete. A lookup budget leaves time to publish collected findings. The sweep rotates its sources and uses the latest conclusive result for each check in a shared workflow.

Issue bodies use fixed text and a link to the workflow run or the GitHub code scanning view. The script does not copy logs, artifacts, or alert details. Pull requests exercise issue handling with synthetic API responses and read-only permissions.

Compatibility, rollout and rollback

The reporter runs after merge. Covered workflows must run on the default branch for their failures to create issues. Existing issue markers still work. Revert the workflow to stop future issue creation.

Tests

Fifteen unit tests cover trusted events, completed-run selection, deduplication, shared CI failures, alert detail exclusion, and continued reporting after a failed lookup or issue write. The two scripts passed Ruff. The reporter passed strict mypy, and actionlint and ShellCheck passed the workflow.

AI assistance

  • AI-generated with Codex. Reviewed the write conditions, API payloads, and focused tests.

Checklist

  • Applicable focused checks ran locally.
  • The commits are signed off.

Report default-branch failures with stable issue identities and Actions run links.

Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
@vercel

vercel Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
loom-docs Ready Ready Preview Nov 23, 2026 9:25pm UTC

Request Review

The repository checks Python formatting with a 100-column line length. Apply that configuration to the reporter and its tests.

Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Add the contributor lab, HTTP contract, endpoint probes, and workflow audit to the default branch reporter. Create one review issue per scanner from open alerts and link to the security view.

Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Use the central reporter as a fallback for workflows that already have their own issue publisher. A successful publisher covers the failure.

Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Retain the newest reported identifier so resolving one alert cannot file another issue for an older alert.

Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>
Signed-off-by: zlareb1 <lareb.zafar@clickhouse.com>

This branch has not been deployed

No deployments
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