Skip to content

[WIP] Refactor to create shared/guard-otlp.md bundle for workflows#42983

Closed
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/refactoring-create-shared-guard-otlpmd
Closed

[WIP] Refactor to create shared/guard-otlp.md bundle for workflows#42983
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/refactoring-create-shared-guard-otlpmd

Conversation

Copilot AI commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>[refactoring] [skill] Create shared/guard-otlp.md bundle for 7 workflows using github-guard-policy + otlp only</issue_title>
<issue_description>### Overview

7 workflows import exactly shared/github-guard-policy.md + shared/otlp.md with no other shared components. Following the pattern of shared/reporting-otlp.md, a new shared/guard-otlp.md bundle would let these workflows collapse two imports into one — and ensure new guard-requiring workflows always include telemetry.

Additionally, 8 more workflows use guard + reporting + otlp; these could migrate to guard + reporting-otlp.md (2 imports instead of 3).

Priority

Medium — 15 workflows affected, very low extraction complexity

Affected Workflows

Exact (guard + otlp) — 7 workflows:

  • daily-doc-updater.md
  • smoke-agent-public-approved.md
  • smoke-agent-scoped-approved.md
  • stale-repo-identifier.md
  • weekly-blog-post-writer.md
  • weekly-safe-outputs-spec-review.md
  • workflow-generator.md

Can use guard + reporting-otlp.md — 8 workflows:

  • auto-triage-issues.md
  • discussion-task-miner.md
  • issue-arborist.md
  • issue-triage-agent.md
  • org-health-report.md
  • smoke-copilot-aoai-apikey.md
  • smoke-copilot-aoai-entra.md
  • smoke-copilot.md

Estimated Impact

  • 7 workflows reduced from 2 imports to 1
  • 8 workflows reduced from 3 imports to 2
  • Total: 15 import lines removed
  • Ensures every guard-policy workflow is auto-enrolled in OTLP telemetry

Proposed Shared Component

Create .github/workflows/shared/guard-otlp.md:

---
# GitHub guard policy + OTLP telemetry bundle
# Use for workflows that need community-contributor approval labels AND telemetry.
#
# Usage:
#   imports:
#     - shared/guard-otlp.md

imports:
  - shared/github-guard-policy.md
  - shared/otlp.md
---

Migration Plan

  1. Create shared/guard-otlp.md with the content above.
  2. In the 7 exact-match workflows, replace:
    imports:
      - shared/github-guard-policy.md
      - shared/otlp.md
    with:
    imports:
      - shared/guard-otlp.md
  3. In the 8 guard+reporting+otlp workflows, replace:
    imports:
      - shared/github-guard-policy.md
      - shared/reporting.md
      - shared/otlp.md
    with:
    imports:
      - shared/github-guard-policy.md
      - shared/reporting-otlp.md
  4. Run make recompile and verify compiled output.

Example Usage

imports:
  - shared/guard-otlp.md
  # other workflow-specific imports

References

  • Pattern precedent: .github/workflows/shared/reporting-otlp.md
  • Guard policy source: .github/workflows/shared/github-guard-policy.md
  • OTLP source: .github/workflows/shared/otlp.md

[!WARNING]

Firewall blocked 1 domain

The following domain was blocked by the firewall during workflow execution:

  • awmgmcpg

To allow these domains, add them to the network.allowed list in your workflow frontmatter:

network:
  allowed:
    - defaults
    - "awmgmcpg"

See Network Configuration for more information.

Generated by 🔍 Workflow Skill Extractor · 63.8 AIC · ⌖ 11.6 AIC · ⊞ 4.7K ·

  • expires on Jul 3, 2026, 9:03 PM UTC-08:00

Comments on the Issue (you are @copilot in this section)

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.

[refactoring] [skill] Create shared/guard-otlp.md bundle for 7 workflows using github-guard-policy + otlp only

2 participants