Skip to content

docs(sdk): state which commit CI.CommitSha and the PR context each record (#233) - #237

Merged
xping-admin merged 3 commits into
mainfrom
docs/233-commit-sha-meanings
Oct 5, 2026
Merged

xping-admin merged 3 commits into
mainfrom
docs/233-commit-sha-meanings

Conversation

@xping-admin

Copy link
Copy Markdown
Collaborator

Closes #233.

  • XML docs: PullRequestContext.CommitSha is the PR head; EnvironmentInfo.CustomProperties documents CI.CommitSha (commit the build tested) and CI.IsPullRequest, plus the precedence rule Xping Cloud follows.
  • ci-cd-setup.md: new Which Commit Is Recorded section with the per-platform table; the GitHub, Azure and GitLab metadata lists link to it.
  • Tests: CI.CommitSha is the built (merge) commit on GitHub pull_request, Azure Pipelines PR and GitLab merged-results builds, even with the head variable set; it is the pushed commit on GitHub push. pull_request_target omission was already covered.
  • No behavior change. Cloud side: xping-dev/dashboard#368.

🤖 Generated with Claude Code

…cord (#233)

CI.CommitSha is the commit the build tested (a merge commit on most PR
builds); PullRequestContext.CommitSha is the PR head the author pushed.
Xping Cloud keys a PR run by the head and uses CI.CommitSha only when
CI.IsPullRequest is false. The XML docs on both and ci-cd-setup.md now
say so, and tests pin CI.CommitSha to the built commit on GitHub
pull_request, Azure Pipelines PR and GitLab merged-results builds, and
to the pushed commit on GitHub push. No behavior change.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.54839% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/Xping.Cli/Report/Contract/EvidenceHeadline.cs 94.73% 1 Missing ⚠️
src/Xping.Sdk.MSTest/XpingTestBase.cs 0.00% 0 Missing and 1 partial ⚠️
Files with missing lines Coverage Δ
...ore/Extensions/XpingServiceCollectionExtensions.cs 96.26% <ø> (ø)
...ng.Sdk.Core/Models/Environments/EnvironmentInfo.cs 100.00% <ø> (ø)
...Sdk.Core/Models/PullRequests/PullRequestContext.cs 100.00% <ø> (ø)
...Xping.Sdk.Core/Models/Statistics/SessionSummary.cs 100.00% <100.00%> (ø)
...vices/Environment/Internals/EnvironmentDetector.cs 71.94% <ø> (+1.03%) ⬆️
src/Xping.Sdk.Core/XpingContextOrchestrator.cs 93.54% <ø> (ø)
src/Xping.Sdk.MSTest/XpingBaseServices.cs 100.00% <100.00%> (ø)
src/Xping.Sdk.NUnit/XpingAttributeServices.cs 100.00% <100.00%> (ø)
src/Xping.Sdk.Shared/ArgumentValidation.cs 14.92% <ø> (ø)
src/Xping.Sdk.XUnit/Retry/XUnitRetryDetector.cs 87.50% <ø> (ø)
... and 4 more
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

xping-admin and others added 2 commits October 5, 2026 14:19
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@xping-admin
xping-admin merged commit 83be91f into main Oct 5, 2026
2 checks passed
@xping-admin
xping-admin deleted the docs/233-commit-sha-meanings branch October 5, 2026 12:29
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.

Document what CI.CommitSha and PullRequestContext.CommitSha each mean on PR runs

1 participant