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

Attempts to fix a small race condition in setting that.results.c2sRate. #283

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

nkinkade
Copy link
Contributor

@nkinkade nkinkade commented Apr 10, 2020

This PR attempts to resolve issue #281.

Test was done here:

https://ndt-iupui-mlab1-lga0t.mlab-sandbox.measurement-lab.org/static/widget.html

This was tested by logging into the ndt-server container on that node (mlab1-lga0t) and manually modifying html/ndt-browser-client.js in the running instance. Previously this bug would manifest within 4 or 5 runs. With this modification I was unable to trigger the bug in 10 or 15 runs.

The bug is identifiable by clicking on the "Advanced" tab and finding a floating point value for c2sRate, which should always be an integer (the server only sends an integer).


This change is Reviewable

@nkinkade nkinkade requested a review from pboothe April 10, 2020 23:06
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 1261

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 4 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-0.2%) to 79.574%

Files with Coverage Reduction New Missed Lines %
ndt5/c2s/c2s.go 1 72.32%
ndt7/upload/sender/sender.go 3 67.65%
Totals Coverage Status
Change from base Build 1258: -0.2%
Covered Lines: 1644
Relevant Lines: 2066

💛 - Coveralls

Copy link
Contributor

@pboothe pboothe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nkinkade nkinkade merged commit 4a9b7ab into master Apr 13, 2020
@nkinkade nkinkade deleted the sandbox-kinkade branch April 13, 2020 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants