Skip to content

chore: sync workflow templates - #5112

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

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

Conversation

@stranske

Copy link
Copy Markdown
Owner

Sync Summary

Files Updated

  • agents-weekly-metrics.yml: Weekly metrics - aggregates auto-pilot, keepalive, autofix and verifier metrics into summary reports
  • bot_comment_auth_coverage.js: Warning-only bot-comment App auth coverage preflight
  • weekly_metrics_artifacts.js: Bounded weekly metrics artifact selection contract

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
Manifest: .github/sync-manifest.yml

Automated sync from stranske/Workflows
Template hash: 73606b58133d

Changes synced from sync-manifest.yml
@stranske stranske added sync Automated sync from Workflows automated Automated sync from Workflows labels Apr 25, 2026
Copilot AI review requested due to automatic review settings April 25, 2026 19:17
@stranske-keepalive

Copy link
Copy Markdown
Contributor

⚠️ Action Required: Unable to determine source issue for PR #5112. The PR title, branch name, or body must contain the issue number (e.g. #123, branch: issue-123, or the hidden marker ).

@agents-workflows-bot

agents-workflows-bot Bot commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

🤖 Keepalive Loop Status

PR #5112 | Agent: Codex | Iteration 0/5

Current State

Metric Value
Iteration progress [----------] 0/5
Action wait (missing-agent-label)
Disposition skipped (transient)
Gate success
Tasks 0/8 complete
Timeout 45 min (default)
Timeout usage 10m elapsed (23%, 35m remaining)
Keepalive ❌ disabled
Autofix ❌ disabled

🔍 Failure Classification

| Error type | infrastructure |
| Error category | resource |
| Suggested recovery | Confirm the referenced resource exists (repo, PR, branch, workflow, or file). |

@agents-workflows-bot

agents-workflows-bot Bot commented Apr 25, 2026

Copy link
Copy Markdown
Contributor
Keepalive Work Log (click to expand)
# Time (UTC) Agent Action Result Files Tasks Progress Commit Gate
0 2026-04-25 19:19:17 Codex wait (missing-agent-label-transient) skipped 0 0/8
0 2026-04-25 19:22:39 Codex wait (missing-agent-label-transient) skipped 0 0/8 cancelled
0 2026-04-25 19:24:00 Codex wait (missing-agent-label-transient) retry skipped 0 0/8 cancelled
0 2026-04-25 19:27:51 Codex wait (missing-agent-label-transient) skipped 0 0/8 success

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

Syncs workflow templates from stranske/Workflows by extending the weekly metrics workflow to also preflight bot-comment App auth coverage, and updating artifact selection to include the new auth-coverage artifacts.

Changes:

  • Add a “Bot-comment auth coverage preflight” step and include its outputs in uploaded artifacts + hard-block enforcement.
  • Extend weekly metrics artifact selection to recognize/prioritize bot-comment auth coverage artifact families.
  • Introduce .github/scripts/bot_comment_auth_coverage.js to summarize/enforce bot-comment auth coverage from downloaded artifacts.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/agents-weekly-metrics.yml Runs bot-comment auth coverage preflight, uploads its reports, and hard-blocks when configured.
.github/scripts/weekly_metrics_artifacts.js Includes bot-comment auth coverage artifacts in the selection contract.
.github/scripts/bot_comment_auth_coverage.js New Node helper that scans downloaded artifacts, builds a coverage summary, and optionally fails in hard-block mode.

Comment on lines +1 to +35
const fs = require('fs');
const path = require('path');

const COVERAGE_SCHEMA = 'workflows-bot-comment-auth-coverage-summary/v1';
const AUTH_SCHEMA = 'workflows-bot-comment-auth-coverage/v1';
const DEFAULT_MODE = 'warning-only';
const HARD_BLOCK_MODE = 'hard-block';
const AUTH_ARTIFACT_FAMILIES = new Set([
'bot-comment-auth-coverage-wrapper',
'bot-comment-auth-coverage-reusable',
]);

const COMPONENT_POLICIES = {
'agents-bot-comment-handler-wrapper': {
expected_mode: 'client-id',
allowed_modes: ['client-id'],
missing_record_severity: 'no-data',
},
'reusable-bot-comment-handler': {
expected_mode: '',
allowed_modes: ['client-id', 'none'],
missing_record_severity: 'no-data',
},
};

function cleanString(value) {
if (value === null || value === undefined) return '';
return String(value).trim();
}

function normalizeBoolean(value) {
if (typeof value === 'boolean') return value;
const text = cleanString(value).toLowerCase();
return ['1', 'true', 'yes', 'y', 'approved', 'approve', 'on'].includes(text);
}

Copilot AI Apr 25, 2026

Copy link

Choose a reason for hiding this comment

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

New workflow helper script is introduced without corresponding unit tests. Per .github/scripts/README.md this repo expects lightweight tests for helper utilities under .github/scripts/__tests__; please add coverage for key behaviors (e.g., file discovery via collectJsonFiles/isPotentialAuthCoverageFile, and reporting/enforcement logic in summarizeBotCommentAuthCoverage).

Copilot uses AI. Check for mistakes.
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