Skip to content

drive: TestObjectRemove integration test is failing #2177

Closed

Description

@ncw

The first instance of this in the integration tests is
v1.39-217-g0861207a the previous OK run was v1.39-211-g572ee5ec

The only commit which touched the drive backend in that range was 70f07fd but the changes in that are very localised to the dirchange

=== RUN   TestObjectRemove
--- FAIL: TestObjectRemove (73.07s)
	fstest.go:293: Sleeping for 1s for list eventual consistency: 1/6
	fstest.go:296: Flushing the directory cache
	fstest.go:293: Sleeping for 2s for list eventual consistency: 2/6
	fstest.go:296: Flushing the directory cache
	fstest.go:293: Sleeping for 4s for list eventual consistency: 3/6
	fstest.go:296: Flushing the directory cache
	fstest.go:293: Sleeping for 8s for list eventual consistency: 4/6
	fstest.go:296: Flushing the directory cache
	fstest.go:293: Sleeping for 16s for list eventual consistency: 5/6
	fstest.go:296: Flushing the directory cache
	fstest.go:293: Sleeping for 32s for list eventual consistency: 6/6
	fstest.go:296: Flushing the directory cache
	fstest.go:300: 
			Error Trace:	fstest.go:300
			            				fstest.go:329
			            				fstests.go:938
			Error:      	Should be true
			Test:       	TestObjectRemove
			Messages:   	listing wrong, want
			            	  hello? sausage/êé/Hello, 世界/ " ' @ < > & ? + ≠/z.txt (100) or
			            	  hello_ sausage/êé/Hello, 世界/ _ ' @ _ _ & _ + ≠/z.txt (100) got
			            	  dir/file2 (100), dir/file3 (0), dir/file4 (0), hello? sausage/êé/Hello, 世界/ " ' @ < > & ? + ≠/z.txt (100)
	fstest.go:181: 
			Error Trace:	fstest.go:181
			            				fstest.go:303
			            				fstest.go:329
			            				fstests.go:938
			Error:      	Should be true
			Test:       	TestObjectRemove
			Messages:   	Unexpected file "dir/file2"
	fstest.go:181: 
			Error Trace:	fstest.go:181
			            				fstest.go:303
			            				fstest.go:329
			            				fstests.go:938
			Error:      	Should be true
			Test:       	TestObjectRemove
			Messages:   	Unexpected file "dir/file3"
	fstest.go:181: 
			Error Trace:	fstest.go:181
			            				fstest.go:303
			            				fstest.go:329
			            				fstests.go:938
			Error:      	Should be true
			Test:       	TestObjectRemove
			Messages:   	Unexpected file "dir/file4"

Activity

  1. self-assigned this
    on Mar 24, 2018
  2. added this to the v1.41 milestone on Mar 24, 2018
  3. ncw commented on Mar 24, 2018

    @ncw
    MemberAuthor

    Using the magic of git bisect...

    git bisect start
    git checkout 572ee5ec
    ( cd backend/drive && go test -v ) # check it is OK
    git bisect good
    git checkout master
    git bisect bad
    git bisect run bash -c 'cd backend/drive && go test -v'
    

    finds after 20 mins or so...

    70f07fd3ac2bc6e98dbf19b43da28d168e261aab is the first bad commit
    commit 70f07fd3ac2bc6e98dbf19b43da28d168e261aab
    Author: Remus Bunduc <[email protected]>
    Date:   Thu Mar 8 22:03:34 2018 +0200
    
        fs: add ChangeNotify and backend support for it (#2094)
        
        * fs: rename DirChangeNotify to ChangeNotify
        
        * cache: switch to ChangeNotify
        
        * ChangeNotify: keep order of notifications
    
    :040000 040000 0ee981de0101de07aded6234cd1704e483faa6a2 934751a8b231980958ee95941fe57e922cfaf646 M	backend
    :040000 040000 dbc6dafe66c78822c25a0cd79e9d41e7bcdfe2d5 c1100dab8d7d46fedcb68dacd5ca7f0b0af2eb2d M	cmd
    :040000 040000 7a91b0c9ffbbc285d38e5f457c8bfafbafdaee7e cb4e1cceaf245fa1d574f7470204737188993197 M	fs
    :040000 040000 0b05dd6847fda1c49123c5b07a945537ca7d3ca6 b621023526f9c4724ed8f3c4bc000c1bf955641a M	fstest
    :040000 040000 641a2df2a18a6fff662ace4c36d59bbdf75af577 a9a4081e1e796da8392ac918563218b0bcf639c7 M	vfs
    bisect run success
    

    70f07fd was the commit we identified above so this isn't a big suprise.

    Why though?

    It seems the ChangeNotify test is leaving extra files lying around...

  4. added a commit that references this issue on Jul 20, 2026
    b3f8870
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions