Skip to content

fix(doc-healer): gate artifact constant check on actual artifact production#44134

Merged
pelikhan merged 2 commits into
mainfrom
copilot/doc-healer-fix-artifact-check
Jul 8, 2026
Merged

fix(doc-healer): gate artifact constant check on actual artifact production#44134
pelikhan merged 2 commits into
mainfrom
copilot/doc-healer-fix-artifact-check

Conversation

Copilot AI commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

The doc-healer's Step 2 artifact constant check flagged any ArtifactName = "..." constant missing from artifacts.md as a documentation gap — including forward-declared constants for unimplemented features (e.g. EvalsArtifactName = "evals", whose buildEvalsJob returns nil, nil).

Changes

  • .github/workflows/daily-doc-healer.md — Refines Step 2 artifact constant check to require production confirmation before treating a missing artifacts.md entry as a gap:
    • Verify the artifact name appears in the name: field of an actions/upload-artifact step in any .github/workflows/*.lock.yml, or in pkg/workflow/js/ upload helpers
    • Verify the corresponding job builder is not a no-op stub (return nil, nil + TODO)
    • Skip constants that fail either check — they are forward-declared placeholders, not documentation drift
  • .github/workflows/daily-doc-healer.lock.yml — Recompiled from updated markdown

Production check (added to Step 2)

grep -rn "name: <artifact-value>" .github/workflows/*.lock.yml
grep -rn '"<artifact-value>"' pkg/workflow/js/

Only constants whose artifact name appears in those outputs — and whose job builder is implemented — are eligible to be flagged as documentation gaps.

…tant check

Before treating a missing artifacts.md entry as a documentation gap,
the healer now verifies the artifact is actually produced by checking:
1. Whether the artifact name appears in upload-artifact steps in any
   .github/workflows/*.lock.yml file or in pkg/workflow/js/ helpers
2. Whether the job builder is not a no-op stub (return nil, nil)

Forward-declared constants like EvalsArtifactName (whose buildEvalsJob
returns nil) are now skipped rather than incorrectly flagged as gaps.

Closes #44133

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix artifact constant check to verify actual artifact production fix(doc-healer): gate artifact constant check on actual artifact production Jul 8, 2026
Copilot AI requested a review from pelikhan July 8, 2026 00:19
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Triage

Field Value
Category bug
Risk 🟢 Low
Score 23/100 (impact:10 urgency:5 quality:8)
Action defer

Rationale: Draft. Small fix (17+/2−) for doc-healer false-positive flagging forward-declared constants for nil-returning builders. Low-risk. Promote when draft resolved and CI runs.

Run §28909358158

Generated by 🔧 PR Triage Agent · 112.1 AIC · ⌖ 6.5 AIC · ⊞ 5.4K ·

@pelikhan
pelikhan marked this pull request as ready for review July 8, 2026 01:45
Copilot AI review requested due to automatic review settings July 8, 2026 01:45
@pelikhan
pelikhan merged commit cc1f7b4 into main Jul 8, 2026
@pelikhan
pelikhan deleted the copilot/doc-healer-fix-artifact-check branch July 8, 2026 01:45

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 updates the Daily Documentation Healer workflow instructions to avoid treating forward-declared / unimplemented artifact constants as documentation drift, and recompiles the generated lock workflow to match.

Changes:

  • Adds a “production confirmation” gate to the Step 2 artifact-constant check (lock workflow + JS helper presence, plus “not a no-op builder” check).
  • Updates the compiled .lock.yml to reflect the markdown workflow change.
Show a summary per file
File Description
.github/workflows/daily-doc-healer.md Refines artifact constant gap-check instructions by gating on actual artifact production and implemented job builders.
.github/workflows/daily-doc-healer.lock.yml Recompiled generated workflow reflecting the updated markdown instructions.

Review details

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Low

Comment on lines +163 to +164
grep -rn "name: <artifact-value>" .github/workflows/*.lock.yml
grep -rn '"<artifact-value>"' pkg/workflow/js/
grep -rn '"<artifact-value>"' pkg/workflow/js/
```

An artifact is **produced** if its name appears in the `name:` field of an `actions/upload-artifact` step in any generated `.github/workflows/*.lock.yml` file, or in the JS upload helpers under `pkg/workflow/js/`.
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.4

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

Projects

None yet

3 participants