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/model: Fix test flakyness regression (ref #5592) #5718

Merged
merged 1 commit into from May 18, 2019

Conversation

imsodin
Copy link
Member

@imsodin imsodin commented May 12, 2019

I did some changes on model tests and got weird flaky errors, that turned out to be completely unrelated to these changes, but a test race condition introduced in #5592. This does only affect tests that do the dirty trick of exchange the ignores object in the model map, no problem in code whatsover. Previously it was enough to change the ignores object on model, now we need to make sure we change it after the folder is added, but before it's started, as it is passed to the folder instead of the folder getting it from the model.

I also took the opportunity to move alwaysChanged to the utilities file.

@calmh calmh merged commit 5ffbb76 into syncthing:master May 18, 2019
@imsodin imsodin deleted the model/flakeTestRegr branch May 18, 2019 18:31
calmh added a commit to calmh/syncthing that referenced this pull request May 23, 2019
* master: (25 commits)
  gui, man, authors: Update docs, translations, and contributors
  lib/model: Consistently cleanup model in tests (syncthing#5724)
  golang-ci: Turn up the heat
  cmd/ursrv: Lint fixes
  build(deps): bump github.com/prometheus/client_golang (syncthing#5729)
  lib/model, lib/testutils: Test closing a connection on folder restart (syncthing#5707)
  lib/model: Fix test flakyness regression (ref syncthing#5592) (syncthing#5718)
  test: Report time per MiB on transfer benchs (syncthing#5711)
  docker: Create entrypoint script (fixes syncthing#5631) (syncthing#5635)
  lib/model: Refactor file deletions when pulling (syncthing#5699)
  cmd/ursrv: Add F-droid and some third party distributors to the distrubtion summary
  lib/api, lib/connections, gui: Show connection error for disconnected devices (fixes syncthing#3345) (syncthing#5727)
  authors: Update acolomb (fixes syncthing#5726)
  cmd/ursrv: Summarize known distribution channels
  gui, man, authors: Update docs, translations, and contributors
  lib/model: Remove superfluous check for IndexID in remote ClusterConfig (syncthing#5717)
  build(deps): bump github.com/lib/pq from 1.0.0 to 1.1.1 (syncthing#5714)
  build(deps): bump github.com/oschwald/geoip2-golang from 1.1.0 to 1.3.0 (syncthing#5713)
  build(deps): bump github.com/mattn/go-isatty from 0.0.4 to 0.0.7 (syncthing#5712)
  build(deps): bump github.com/gogo/protobuf from 1.2.0 to 1.2.1 (syncthing#5715)
  ...
@calmh calmh added this to the v1.2.0 milestone May 27, 2019
@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 17, 2020
@syncthing syncthing locked and limited conversation to collaborators May 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants