Skip to content

chore: update otlp.md with xml docs#33468

Merged
mnkiefer merged 4 commits into
mainfrom
fix-docs-xml
May 20, 2026
Merged

chore: update otlp.md with xml docs#33468
mnkiefer merged 4 commits into
mainfrom
fix-docs-xml

Conversation

@mnkiefer
Copy link
Copy Markdown
Collaborator

@mnkiefer mnkiefer commented May 20, 2026

Hide Required Secrets Documentation from Rendered Output

Summary

This PR hides the "Required secrets" documentation sections in workflow configuration files by wrapping them in HTML comment tags. This prevents sensitive configuration details from appearing in rendered documentation while keeping them available in the source for reference.

Changes

Modified Files (4)

  1. .github/workflows/shared/datadog.md

    • Wrapped "Required secrets" section in HTML comments (<!-- -->)
    • No functional changes to workflow behavior
  2. .github/workflows/shared/grafana.md

    • Wrapped "Required secrets" section in HTML comments (<!-- -->)
    • No functional changes to workflow behavior
  3. .github/workflows/shared/otlp.md

    • Wrapped "Required secrets" section in HTML comments (<!-- -->)
    • No functional changes to workflow behavior
  4. .github/workflows/shared/sentry.md

    • Wrapped "Required secrets" section in HTML comments (<!-- -->)
    • No functional changes to workflow behavior

Impact Assessment

  • Breaking Changes: None
  • Overall Impact: Low
  • Affected Components: Documentation rendering for workflow configurations (Datadog, Grafana, OTLP, Sentry)
  • User Impact: Users viewing rendered documentation will no longer see "Required secrets" sections
  • Developer Impact: Source code still contains full documentation; only rendering is affected

Technical Details

  • Change Pattern: Documentation formatting (HTML comment wrapping)
  • Files Modified: 4 workflow documentation files
  • Change Type: Non-functional (documentation only)
  • Compilation: Workflows recompiled after documentation updates

Testing Recommendations

  • Verify that workflow documentation renders correctly without "Required secrets" sections
  • Confirm that HTML comments are properly closed and don't break markdown rendering
  • Validate that workflows continue to function as expected (no behavioral changes)
  • Check that source documentation remains accessible for developers

Related Commits

  • 56f866327 - Apply XML comments to docs in shared/sentry.md, datadog.md, grafana.md and recompile
  • 60fbf3c7f - Recompile workflows after otlp.md XML docs update
  • 662d6a632 - Merge branch 'main' into fix-docs-xml
  • 7e90232db - Update otlp.md with XML docs

Labels

documentation, non-breaking, low-impact

Generated by PR Description Updater for issue #33468 · ● 2.1M ·

@mnkiefer mnkiefer self-assigned this May 20, 2026
@mnkiefer mnkiefer marked this pull request as ready for review May 20, 2026 05:47
Copilot AI review requested due to automatic review settings May 20, 2026 05:47
@mnkiefer
Copy link
Copy Markdown
Collaborator Author

@copilot Recompile workflow

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

PR Code Quality Reviewer completed the code quality review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

🧪 Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR (only documentation changes to .github/workflows/shared/otlp.md). Test Quality Sentinel analysis skipped.

@github-actions
Copy link
Copy Markdown
Contributor

✅ smoke-ci: safeoutputs CLI comment + comment-memory run (26144012594)

Generated by 🧪 Smoke CI for issue #33468 ·

@github-actions
Copy link
Copy Markdown
Contributor

Comment Memory

CI lights the path
Green checks bloom at dawn
Quiet bots still sing

Note

This comment is managed by comment memory.

It stores persistent context for this thread in the code block at the top of this comment.
Edit only the text inside the backtick fences; workflow metadata and the footer are regenerated automatically.

Learn more about comment memory

Generated by 🧪 Smoke CI for issue #33468 ·

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 prevents the “Required secrets” documentation in the shared otlp.md import from being included in the runtime-imported prompt content by wrapping that section in an HTML/XML comment block.

Changes:

  • Wrapped the “Required secrets” section in <!-- ... --> so it’s stripped during prompt generation/sanitization.
  • Keeps the YAML front matter OTLP configuration unchanged while hiding human docs from the prompt.
Show a summary per file
File Description
.github/workflows/shared/otlp.md Wraps the post-front-matter docs section in an XML/HTML comment to prevent prompt leakage.

Copilot's findings

Tip

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Review Summary

This is a clean, focused fix with no issues.

What was reviewed:

  • Documentation section wrapped in HTML comments to prevent leakage into workflow prompts
  • Frontmatter configuration unchanged
  • Documentation preserved for human readers

Assessment:
✅ Correct approach - HTML comments are the right solution
✅ No impact on functional configuration
✅ Maintains documentation accessibility on GitHub
✅ No correctness, maintainability, or style concerns

Verdict: APPROVE - ready to merge.

🔎 Code quality review by PR Code Quality Reviewer · ● 1.4M

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /grill-with-docs based on the documentation fix in this PR.

Summary

This PR correctly wraps the "Required secrets" documentation in XML comments to prevent it from leaking into AI agent prompts. This aligns otlp.md with the established pattern already used in other shared workflows like activation-app.md and gh.md.

Key Observations

  • Pattern consistency: Matches the XML comment convention used across other shared workflow files
  • Surgical fix: Only wraps documentation text; leaves frontmatter intact
  • Correct syntax: Uses standard <!-- --> HTML/XML comments
  • Solves the problem: Prevents human-readable setup instructions from appearing in agent prompts

Positive Highlights

  • ✅ Minimal, focused change with clear intent
  • ✅ Follows existing codebase conventions without introducing new patterns
  • ✅ Addresses a real issue (documentation leakage) with the simplest possible fix

Minor Suggestion

The PR description could be slightly more explicit for future reviewers: consider mentioning that this aligns with the established convention (e.g., "Aligns otlp.md with the XML comment pattern used in activation-app.md, gh.md, etc."). However, this is a very minor point and doesn't affect the technical correctness of the change.

Verdict

Approving — This is a clean, correct fix that follows established patterns. No blocking issues. 🚀

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · ● 2.1M

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

🧪 Test Quality Sentinel completed test quality analysis.

No test files were added or modified in PR #33468. This PR only updates documentation (.github/workflows/shared/otlp.md with 2 line additions). Test Quality Sentinel analysis skipped.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

PR Code Quality Reviewer completed the code quality review.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 20, 2026

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented May 20, 2026

@copilot Recompile workflow

Done — recompiled all 231 workflows in 60fbf3c. Two lock files were updated (daily-fact.lock.yml and smoke-claude.lock.yml) to remove the secrets documentation that was previously leaking into the prompt (it's now correctly excluded via the XML comment in shared/otlp.md).

Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Code Review Summary

Approved — This is a clean, focused change that achieves its stated goal.

What was reviewed:

  • Wrapping the "Required secrets" documentation section in HTML comment tags
  • Intent: Prevent documentation from leaking into AI agent prompts
  • File: .github/workflows/shared/otlp.md

Findings:

  • ✅ Syntax is correct
  • ✅ Change is minimal and surgical
  • ✅ Achieves the stated goal of preventing prompt leakage
  • ✅ Documentation remains in source for human readers

No issues found. The change is appropriate for a shared OTLP configuration component where the secrets list should be visible in source but not processed into workflow prompts.

🔎 Code quality review by PR Code Quality Reviewer · ● 1.4M

@github-actions github-actions Bot mentioned this pull request May 20, 2026
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

Skills-Based Review 🧠

Applied /grill-with-docs to examine how this documentation change aligns with existing patterns and domain conventions.

Key Theme

Inconsistent pattern application: The PR introduces XML comment wrapping to prevent documentation from leaking into AI prompts in otlp.md, but three sibling files (datadog.md, sentry.md, grafana.md) with identical documentation sections remain unwrapped.

Positive Highlights

Good intent: Preventing documentation leakage into AI prompts is a valid concern for shared workflow imports
Clean implementation: The XML comment syntax is correct and properly closed

Verdict

Requesting changes to ensure consistent application of the new pattern. Either:

  1. Apply XML comment wrapping to all similar OTLP configuration files (datadog.md, sentry.md, grafana.md), OR
  2. Document why otlp.md requires special treatment that the others do not

Inconsistent patterns across similar files create confusion and technical debt.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · ● 3.5M

Comment thread .github/workflows/shared/otlp.md
@mnkiefer
Copy link
Copy Markdown
Collaborator Author

@copilot Also apply xml comments to docs in shared/: sentry.md, datadog.md and grafana.md.

…afana.md and recompile

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented May 20, 2026

@copilot Also apply xml comments to docs in shared/: sentry.md, datadog.md and grafana.md.

Done in the latest commit — XML comments applied to shared/sentry.md, shared/datadog.md, and shared/grafana.md, and workflows recompiled (design-decision-gate.lock.yml updated).

@github-actions
Copy link
Copy Markdown
Contributor

@copilot review all comments
Please address the unresolved review comment and explain the consistency choice, then rerun checks.

Generated by 👨‍🍳 PR Sous Chef · ● 17M ·

@mnkiefer mnkiefer merged commit 945b8fd into main May 20, 2026
25 checks passed
@mnkiefer mnkiefer deleted the fix-docs-xml branch May 20, 2026 07:25
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.

4 participants