Skip to content

Tests fail on Go 1.11 / Windows #5144

Closed

Description

@calmh
[12:03:11]	[Step 4/5] TestFolderCheckPath
[12:03:11]	[TestFolderCheckPath] [Test Output]
2018/08/25 13:01:59.058460 folderconfiguration.go:99: INFO: bug: uncached filesystem call (should only happen in tests)
2018/08/25 13:01:59.058460 folderconfiguration.go:99: INFO: bug: uncached filesystem call (should only happen in tests)
2018/08/25 13:01:59.058460 folderconfiguration.go:99: INFO: bug: uncached filesystem call (should only happen in tests)
2018/08/25 13:01:59.058460 folderconfiguration.go:99: INFO: bug: uncached filesystem call (should only happen in tests)
2018/08/25 13:01:59.059176 folderconfiguration.go:99: INFO: bug: uncached filesystem call (should only happen in tests)
2018/08/25 13:01:59.059176 folderconfiguration.go:99: INFO: bug: uncached filesystem call (should only happen in tests)
    config_test.go:480: running with symlink check
    config_test.go:500: unexpected error in case link: folder path missing != %!s(<nil>)
[12:03:11]	[Step 4/5] TestWalkRootSymlink
[12:03:11]	[TestWalkRootSymlink] [Test Output]
    walk_test.go:336: expected two files, not 0

Looks symlink related, as usual.

Activity

  1. added
    bug
    on Aug 25, 2018
  2. AudriusButkevicius commented on Aug 25, 2018

    @AudriusButkevicius
    Member

    Only the walk one fails for me locally, yet I am still on the rc

  3. calmh commented on Aug 25, 2018

    @calmh
    MemberAuthor

    Difference could be because build server runs as local admin and you do not, or vice versa, or they differ in enablement of symlinks/developer mode perhaps.

  4. AudriusButkevicius commented on Aug 25, 2018

    @AudriusButkevicius
    Member

    No, I did make sure both run properly and are not skipped.

  5. calmh commented on Aug 25, 2018

    @calmh
    MemberAuthor

    Yet fails it does ¯\_(ツ)_/¯

  6. AudriusButkevicius commented on Aug 25, 2018

    @AudriusButkevicius
    Member

    The walk failure seems to happen with Go 1.10 and Go 1.11, so I don't think it's related to the version of Go.

    The issue is that our path acrobatics add a trailing slash (which I guess is there to "punch through" symlinks on Linux), yet Lstat'ing a symlink with a trailing slash blows up on Windows.

  7. AudriusButkevicius commented on Aug 25, 2018

    @AudriusButkevicius
    Member

    Nvm, my test was wrong, as I had a file symlink.

  8. AudriusButkevicius commented on Aug 25, 2018

    @AudriusButkevicius
    Member
  9. calmh commented on Aug 26, 2018

    @calmh
    MemberAuthor

    We take great care to make sure a folder root doesn't end in slash on Windows...

  10. calmh commented on Aug 26, 2018

    @calmh
    MemberAuthor

    Right. But then we do the "rooted". This (new) fs test should pass, imho:

    func TestWindowsFolderRoot(t *testing.T) {
    	fs := BasicFilesystem{root: `c:\test`}
    	rooted, err := fs.rooted(".")
    	if err != nil {
    		t.Fatal(err)
    	}
    	if rooted != `c:\test` {
    		t.Error("Incorrect root:", rooted)
    	}
    }
    

    But it does not:

    basicfs_windows_test.go:101: Incorrect root: c:\test\
    

    So we undo the efforts of our root normalization stuff from earlier...

  11. added a commit that references this issue on Sep 2, 2018
    b068c8f
  12. added this to the v0.14.50 milestone on Sep 2, 2018
  13. added a commit that references this issue on Sep 2, 2018
    22d8a37
  14. added
    frozen-due-to-age
    on Aug 28, 2019
  15. locked and limited conversation to collaborators on Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions