Skip to content

On Windows, TestBulkDeleteForcing and TestBulkDeleteManyForcing are flaky #512

@miparnisari

Description

@miparnisari

See https://github.com/authzed/zed/actions/runs/14919640636/job/41912449065?pr=511

--- FAIL: TestBulkDeleteForcing (0.03s)
    relationship_test.go:697: 
        	Error Trace:	D:/a/zed/zed/internal/commands/relationship_test.go:822
        	            				D:/a/zed/zed/internal/commands/relationship_test.go:[79](https://github.com/authzed/zed/actions/runs/14919477817/job/41911991374?pr=511#step:4:81)4
        	            				D:/a/zed/zed/internal/commands/relationship_test.go:697
        	Error:      	Not equal: 
        	            	expected: 0
        	            	actual  : 1
        	Test:       	TestBulkDeleteForcing
FAIL

It also fails on my Windows machine:

=== RUN   TestBulkDeleteManyForcing
    relationship_test.go:732: written 200
GhUKEzE3NDY3NTU4Mjc3MTI0MjkxMDA=
Deleted relationships: 200
    relationship_test.go:739: 
        	Error Trace:	C:/Users/mparn/Documents/GitHub/zed/internal/commands/relationship_test.go:822
        	            				C:/Users/mparn/Documents/GitHub/zed/internal/commands/relationship_test.go:794
        	            				C:/Users/mparn/Documents/GitHub/zed/internal/commands/relationship_test.go:739
        	Error:      	Not equal: 
        	            	expected: 0
        	            	actual  : 23
        	Test:       	TestBulkDeleteManyForcing

It seems that the writes & deletes worked fine, but the Read is still returning data.

Or, the deletes never really worked, and the Read is still returning data.

Putting time.Sleep()s after the writes or after the deletes doesn't fix it

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions