Skip to content

Skip doc reproducibility test if document is a copy - #2672

Merged
Davis Goodin (dagood) merged 1 commit into
microsoft/mainfrom
dev/dagood/ok-gen-doc-copy
Oct 28, 2026
Merged

Davis Goodin (dagood) merged 1 commit into
microsoft/mainfrom
dev/dagood/ok-gen-doc-copy

Conversation

@dagood

@dagood Davis Goodin (dagood) commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Fixes test failure in doc sync PRs like these by skipping the doc reproducibility test when the copy prefix is present:

Tested locally on top of #2670: _util tests passed.

Copilot AI balanced review requested due to automatic review settings October 28, 2026 18:55
@dagood
Davis Goodin (dagood) requested a review from a team as a code owner October 28, 2026 18:55
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

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.

🟢 Approval recommended

No active review issues are recorded for the change to skip reproducibility checks on automatically copied documentation.

No open issues 🎉

What changed in this PR

Avoids documentation reproducibility failures in release-branch doc sync PRs by skipping regeneration checks when a document starts with the automatic-copy notice.

Changes:

  • Adds a shared copy-notice detector supporting LF and CRLF line endings.
  • Tests copied documents, ordinary content, and prefix edge cases.
  • Skips crypto documentation and user guide reproducibility checks for copied documents.
File Description
eng/​_util/​internal/​docutil/​docutil.go Adds automatic-copy notice detection.
eng/​_util/​internal/​docutil/​docutil_test.go Tests notice detection and line-ending handling.
eng/​_util/​cmd/​updatecryptodocs/​updatecryptodocs_test.go Skips both reproducibility checks for copied documents.

Review effort: Balanced

@dagood
Davis Goodin (dagood) merged commit 8ae8f0d into microsoft/main Oct 28, 2026
75 checks passed
@dagood
Davis Goodin (dagood) deleted the dev/dagood/ok-gen-doc-copy branch October 28, 2026 21:58
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.

3 participants