Skip to content

Conversation

@bbrks
Copy link
Member

@bbrks bbrks commented Aug 21, 2025

CBG-4166

Unskip now working tests.

The failing one is still failing for a different reason and I've filed a new ticket.

Dependencies

Integration Tests

n/a - should be rosmar compatible tests

bbrks added 15 commits August 20, 2025 14:28
…ociated attachment endpoints) using existing `rev` parameter - which can automatically detect RevTreeID/CV.

Switch test helpers to use CV in writes when available for coverage, and allow fallback to RevTreeID.
Prevent CV OCC value in doc updates for docs in conflict or against non-current versions, since we don't maintain linear version history like we do for RevTrees and can't correlate an old CV with a branched revision ID.
…ter.GetDocVersion for general test coverage.
Base automatically changed from CBG-4832 to main August 21, 2025 22:45
Copilot AI review requested due to automatic review settings August 21, 2025 22:46
Copy link
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 unskips several vector version (VV) subtests that were previously disabled but are now working. The changes remove test skip conditions that are no longer needed and update skip reasons for tests that still need to remain disabled.

  • Removes skip conditions for tests that are now working with vector versions
  • Updates skip reason for TestSendReplacementRevision to reference a new ticket (CBG-4833)
  • Modifies condition logic to handle both legacy rev IDs and vector version strings

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
rest/blip_api_crud_test.go Removes skip for TestOnDemandImportBlipFailure, updates skip reason for TestSendReplacementRevision and TestBlipPushRevOnResurrection, adds vector version handling in callback condition
rest/audit_test.go Removes skip condition for TestAuditChangesFeedStart vector version subtest

// underneath the client's response to changes - we'll update the document so the requested rev is not available by the time SG receives the changes response.
changesEntryCallbackFn := func(changeEntryDocID, changeEntryRevID string) {
if changeEntryDocID == docID && changeEntryRevID == version1.RevTreeID {
if changeEntryDocID == docID && changeEntryRevID == version1.RevTreeID || changeEntryRevID == version1.CV.String() {
Copy link

Copilot AI Aug 21, 2025

Choose a reason for hiding this comment

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

The logical condition lacks proper operator precedence. The || operation will be evaluated before the && operation, making the condition equivalent to (changeEntryDocID == docID && changeEntryRevID == version1.RevTreeID) || (changeEntryRevID == version1.CV.String()). This means the second part will match any document with the CV string, not just the specific docID. Add parentheses: if changeEntryDocID == docID && (changeEntryRevID == version1.RevTreeID || changeEntryRevID == version1.CV.String()) {

Suggested change
if changeEntryDocID == docID && changeEntryRevID == version1.RevTreeID || changeEntryRevID == version1.CV.String() {
if changeEntryDocID == docID && (changeEntryRevID == version1.RevTreeID || changeEntryRevID == version1.CV.String()) {

Copilot uses AI. Check for mistakes.
@torcolvin torcolvin merged commit 57f3cd7 into main Aug 22, 2025
42 checks passed
@torcolvin torcolvin deleted the CBG-4166 branch August 22, 2025 01:32
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