Skip to content

test(bindings): fix version state and conditional timestamp assertions - #8465

Merged
Xuanwo merged 3 commits into
mainfrom
xuanwo/ci-binding-current-state
Nov 2, 2026
Merged

Xuanwo merged 3 commits into
mainfrom
xuanwo/ci-binding-current-state

Conversation

@Xuanwo

@Xuanwo Xuanwo commented Nov 2, 2026

Copy link
Copy Markdown
Member

Which issue does this PR close?

Related to #5548.

Rationale for this change

Version listings can return version IDs with unknown current state. The generic Go and .NET tests require exactly one current version even when the service does not report that optional metadata, rejecting the GCS version-listing implementation in #5548.

The Go conditional read and stat tests also immediately use lastModified + 1s as a rejection threshold. That timestamp can still be in the future. Use the returned last-modified timestamp to check the unchanged boundary directly.

What changes are included in this PR?

  • Keep the version count and nonempty version-ID checks. Allow unknown current state, always require at most one known current version, and require exactly one when every state is known.
  • Check the unchanged timestamp boundary in the Go read and stat cases, preserving the earlier-timestamp success branch and ConditionNotMatch assertions.

Are there any user-facing changes?

None. This changes binding behavior tests only.

Breaking changes

Validation

Selected real-provider validation passed: Go GCS 90 subtests, Go versioned S3 103 subtests, and .NET GCS/S3 112 tests each. The version-list cases and the two S3 conditional-time cases executed and passed. Validation combines the exact test blobs in this PR with #5548 to enable the GCS version path.

The separate main HDFS listing failure is tracked by #8377. Complete CI for this PR head remains required.

AI Usage Statement

  • Harness: Codex desktop. Model: gpt-6.1-sol. Effort: max. Role: CI analysis, test changes, integration, and provider validation. The original failed conditional requests' wire timestamps were not captured.
  • Harness: Codex subagents. Model: group/deepseek. Effort: max. Role: Independent source and format review on nier.

@Xuanwo
Xuanwo requested a review from tisonkun as a code owner November 2, 2026 02:34
@github-actions github-actions Bot added bindings/dotnet bindings/go releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:S This PR changes 10-29 lines, ignoring generated files. labels Nov 2, 2026

@PsiACE PsiACE left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hugs from bub

@Xuanwo
Xuanwo merged commit b20ea85 into main Nov 2, 2026
127 checks passed
@Xuanwo
Xuanwo deleted the xuanwo/ci-binding-current-state branch November 2, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bindings/dotnet bindings/go releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants