[workflow-patrol] Workflow drift detected: duplicate-issue-detector missing runtime setup pattern

Aperta Adatta ai principianti
#2,517 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
github-actions, yaml
Ambito
ci-cd, tooling

Direzione di ricerca

Inizia da .github/workflows/gh-aw-duplicate-issue-detector.md e confronta i suoi import, workflow_call.inputs e passaggi con i tre workflow di esempio indicati nell’issue. Aggiungi l’import per la configurazione dell’ambiente di esecuzione, l’input setup-commands e il passaggio di configurazione protetto prima di Prescan issue index. Esegui di nuovo compile e lint per verificare la coerenza del workflow generato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Findings

1. gh-aw-duplicate-issue-detector.md is the only workflow source missing the runtime-setup + setup-commands pattern

Deviating workflow

  • .github/workflows/gh-aw-duplicate-issue-detector.md

    • Imports block has no gh-aw-fragments/runtime-setup.md (lines 4-10)
    • workflow_call.inputs has no setup-commands input (lines 21-51)
    • steps begins directly with Prescan issue index instead of the standard Repo-specific setup step (line 76)

Majority pattern

  • 53/54 gh-aw-*.md sources include all three:

    1. runtime-setup fragment import
    2. setup-commands input
    3. Repo-specific setup step
  • Example workflows following the pattern:

    • .github/workflows/gh-aw-issue-triage.md (lines 8, 39, 98)
    • .github/workflows/gh-aw-pr-review.md (lines 7, 40, 99)
    • .github/workflows/gh-aw-create-comment-on-issue.md (lines 7, 46, 87)

Why this looks like drift

  • This repository has standardized on this structure across nearly all workflow sources.
  • The outlier appears to have missed that refactor and now differs from peers in the same workflow family.

Suggested fix

  • Update .github/workflows/gh-aw-duplicate-issue-detector.md to match the common structure:

    • add gh-aw-fragments/runtime-setup.md to imports
    • add workflow_call.inputs.setup-commands
    • add the standard Repo-specific setup step (guarded on inputs.setup-commands != '') before Prescan issue index

Suggested Actions

  • Add runtime-setup import to gh-aw-duplicate-issue-detector.md
  • Add setup-commands workflow input
  • Add Repo-specific setup step before prescan
  • Re-run compile/lint to verify generated workflow consistency

Generated by Internal: Workflow Patrol · copilot · gpt53codex · 157.6 AIC · ⌖ 5.06 AIC · ⊞ 15.7K · ◷

  • expires on Nov 23, 2026, 1:43 PM UTC
Lingua principale
Python
Stelle
13
Fork
16
Merge medio
45m
PR unite (30g)
1

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di elastic/ai-github-actions

Tutte le issue di elastic/ai-github-actions

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.