Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lib/config: TestReplaceCommit fails randomly #3834

Closed
svetlemodry opened this issue Dec 21, 2016 · 4 comments
Closed

lib/config: TestReplaceCommit fails randomly #3834

svetlemodry opened this issue Dec 21, 2016 · 4 comments
Labels
bug A problem with current functionality, as opposed to missing functionality (enhancement) frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Comments

@svetlemodry
Copy link
Contributor

Hi!
Trying to build the package on an up-to-date Arch Linux system using these PKGBUILD instructions, the check test fails with the below output.
In v0.14.15 the tests went through without any errors.

Version Information

Syncthing Version: v0.14.16
OS Version: Arch Linux

==> Starting check()...
ok github.com/syncthing/syncthing/lib/auto 1.287s
ok github.com/syncthing/syncthing/lib/beacon 1.008s
20:08:04 WARNING: Configuration version 1 is deprecated. Attempting best effort conversion, but please verify manually.
20:08:04 WARNING: Configuration version 2 is deprecated. Attempting best effort conversion, but please verify manually.
--- FAIL: TestReplaceCommit (0.00s)
commit_test.go:77: Should require restart
20:08:07 WARNING: Configuration version 1 is deprecated. Attempting best effort conversion, but please verify manually.
20:08:07 WARNING: Configuration version 5 is deprecated. Attempting best effort conversion, but please verify manually.
20:08:07 WARNING: Configuration version 3 is deprecated. Attempting best effort conversion, but please verify manually.
20:08:07 WARNING: Configuration version 7 is deprecated. Attempting best effort conversion, but please verify manually.
20:08:07 WARNING: Configuration version 9 is deprecated. Attempting best effort conversion, but please verify manually.
20:08:07 INFO: bug: uncached path call (should only happen in tests)
FAIL
FAIL github.com/syncthing/syncthing/lib/config 3.151s
ok github.com/syncthing/syncthing/lib/connections 1.014s
ok github.com/syncthing/syncthing/lib/db 1.111s
ok github.com/syncthing/syncthing/lib/dialer 1.010s
ok github.com/syncthing/syncthing/lib/discover 1.496s
ok github.com/syncthing/syncthing/lib/events 1.879s
ok github.com/syncthing/syncthing/lib/fs 1.515s
ok github.com/syncthing/syncthing/lib/ignore 1.667s
ok github.com/syncthing/syncthing/lib/logger 1.012s
ok github.com/syncthing/syncthing/lib/model 17.725s
ok github.com/syncthing/syncthing/lib/nat 1.048s
ok github.com/syncthing/syncthing/lib/osutil 1.078s
ok github.com/syncthing/syncthing/lib/pmp 1.010s
ok github.com/syncthing/syncthing/lib/protocol 1.343s
ok github.com/syncthing/syncthing/lib/rand 4.332s
? github.com/syncthing/syncthing/lib/rc [no test files]
ok github.com/syncthing/syncthing/lib/relay/client 1.019s
ok github.com/syncthing/syncthing/lib/relay/protocol 1.009s
ok github.com/syncthing/syncthing/lib/scanner 1.055s
? github.com/syncthing/syncthing/lib/sha256 [no test files]
ok github.com/syncthing/syncthing/lib/signature 1.383s
ok github.com/syncthing/syncthing/lib/stats 1.009s
ok github.com/syncthing/syncthing/lib/symlinks 1.011s
ok github.com/syncthing/syncthing/lib/sync 1.667s
ok github.com/syncthing/syncthing/lib/tlsutil 1.008s
ok github.com/syncthing/syncthing/lib/upgrade 1.009s
ok github.com/syncthing/syncthing/lib/upnp 1.011s
ok github.com/syncthing/syncthing/lib/util 1.008s
ok github.com/syncthing/syncthing/lib/versioner 1.015s
? github.com/syncthing/syncthing/cmd/stbench [no test files]
? github.com/syncthing/syncthing/cmd/stcompdirs [no test files]
? github.com/syncthing/syncthing/cmd/stdisco [no test files]
? github.com/syncthing/syncthing/cmd/stdiscosrv [no test files]
? github.com/syncthing/syncthing/cmd/stevents [no test files]
? github.com/syncthing/syncthing/cmd/stfileinfo [no test files]
? github.com/syncthing/syncthing/cmd/stfinddevice [no test files]
? github.com/syncthing/syncthing/cmd/stgenfiles [no test files]
? github.com/syncthing/syncthing/cmd/stindex [no test files]
? github.com/syncthing/syncthing/cmd/strelaypoolsrv [no test files]
? github.com/syncthing/syncthing/cmd/strelaypoolsrv/auto [no test files]
? github.com/syncthing/syncthing/cmd/strelaysrv [no test files]
? github.com/syncthing/syncthing/cmd/strelaysrv/testutil [no test files]
? github.com/syncthing/syncthing/cmd/stsigtool [no test files]
? github.com/syncthing/syncthing/cmd/stvanity [no test files]
? github.com/syncthing/syncthing/cmd/stwatchfile [no test files]
ok github.com/syncthing/syncthing/cmd/syncthing 11.652s
exit status 1
exit status 1
==> ERROR: A failure occurred in check().
Aborting...

@calmh
Copy link
Member

calmh commented Dec 21, 2016

Try again. I think there is a timing dependent issue with that test.

@svetlemodry
Copy link
Contributor Author

Yep, your're right.
Wasn't expecting something like this. Thanks for the quick reply!

@calmh
Copy link
Member

calmh commented Dec 21, 2016

Well, it's still a bug.

@calmh calmh changed the title "go run build.go -no-upgrade test" fails TestReplaceCommit fails randomly Dec 21, 2016
@calmh calmh added the bug A problem with current functionality, as opposed to missing functionality (enhancement) label Dec 21, 2016
@calmh calmh added this to the Unplanned (Contributions Welcome) milestone Dec 21, 2016
@calmh calmh reopened this Dec 21, 2016
@calmh calmh changed the title TestReplaceCommit fails randomly lib/config: TestReplaceCommit fails randomly Jan 23, 2017
monotonemonk pushed a commit to monotonemonk/arch_svntogit_community- that referenced this issue Feb 9, 2017
syncthing/syncthing#3834

git-svn-id: file:///srv/repos/svn-community/svn@200852 9fca08f4-af9d-4005-b8df-a31f2cc04f65
monotonemonk pushed a commit to monotonemonk/arch_svntogit_community- that referenced this issue Feb 9, 2017
upgpkg: syncthing 0.14.16-2

git-svn-id: file:///srv/repos/svn-community/svn@200854 9fca08f4-af9d-4005-b8df-a31f2cc04f65
@lkwg82
Copy link
Contributor

lkwg82 commented Jan 1, 2018

Do we really need this test? It is ignored exactly one year.

@calmh calmh removed this from the Unplanned (Contributions Welcome) milestone Feb 11, 2018
@calmh calmh closed this as completed May 12, 2020
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label May 13, 2021
@syncthing syncthing locked and limited conversation to collaborators May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug A problem with current functionality, as opposed to missing functionality (enhancement) frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion
Projects
None yet
Development

No branches or pull requests

4 participants