Skip to content

chore: sync workflow templates - #5336

Closed
stranske wants to merge 1 commit into
phase-3from
sync/workflows-f823f728bf45
Closed

stranske wants to merge 1 commit into
phase-3from
sync/workflows-f823f728bf45

Conversation

@stranske

Copy link
Copy Markdown
Owner

Sync Summary

Files Updated

  • maint-coverage-guard.yml: Coverage guard - daily baseline monitoring with automatic issue creation

Files Skipped

  • pr-00-gate.yml: File exists and sync_mode is create_only
  • ci.yml: File exists and sync_mode is create_only
  • dependabot.yml: File exists and sync_mode is create_only
  • AGENTS.md: Repo keeps historical Agents.md casing to avoid case-only path conflicts
  • llm_slots.json: None

Review Checklist

  • CI passes with updated workflows
  • No repo-specific customizations were overwritten

Source: stranske/Workflows
Source SHA: c3f00747347439f9bc6f023734df6f8b7aa682c9
Template hash: f823f728bf45
Sync branch: sync/workflows-f823f728bf45
Consumer repo: stranske/Trend_Model_Project
Manifest: .github/sync-manifest.yml

Automated sync from stranske/Workflows
Template hash: f823f728bf45

Changes synced from sync-manifest.yml
Copilot AI review requested due to automatic review settings May 26, 2026 06:56
@stranske stranske added sync Automated sync from Workflows automated Automated sync from Workflows labels May 26, 2026
@stranske
stranske temporarily deployed to agent-standard May 26, 2026 06:56 — with GitHub Actions Inactive

@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: 8df49ca033

ℹ️ 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".

Comment on lines +164 to +165
for (const run of runs) {
const artifacts = await withRetry(() =>

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 Filter out failed Gate runs before selecting artifacts

This loop now considers every completed Gate run, so the first run with a gate-coverage-trend artifact is selected even when the run conclusion is failure/cancelled. The previous selector explicitly limited candidates to successful/neutral runs, which avoids baselining coverage on failed CI executions. If failed runs still publish the trend artifact, this change can drive incorrect coverage-guard issues from invalid data.

Useful? React with 👍 / 👎.

Comment on lines +165 to +169
const artifacts = await withRetry(() =>
github.rest.actions.listWorkflowRunArtifacts({
owner,
repo,
run_id: run.id,

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Continue past artifact lookup errors when scanning runs

The artifact lookup is no longer wrapped in a per-run try/catch, so a single non-retryable API error from listWorkflowRunArtifacts aborts the entire discovery step instead of skipping that run and checking older ones. This is a regression from the prior helper behavior and can make the daily coverage monitor fail even though a valid older run exists.

Useful? React with 👍 / 👎.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR syncs the maint-coverage-guard.yml workflow template from the central Workflows repo, updating how the maintenance job discovers the most recent Gate workflow run to use as the coverage baseline input.

Changes:

  • Replaced the shared select_coverage_gate_run helper usage with inline GitHub API pagination + artifact inspection logic.
  • Added optional use of .github/scripts/github-api-with-retry.js (with a fallback) to make API calls more resilient.
  • Simplified the “Using Gate workflow run …” notice output.

Comment on lines +164 to +172
for (const run of runs) {
const artifacts = await withRetry(() =>
github.rest.actions.listWorkflowRunArtifacts({
owner,
repo,
run_id: run.id,
per_page: 100,
}),
);
@stranske

Copy link
Copy Markdown
Owner Author

Closing as stale; newer sync workflow templates PR #5337 exists for the latest Workflows sync wave.

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

Labels

automated Automated sync from Workflows sync Automated sync from Workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants