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

Relax timing on ClientWrapperTest #1716

Merged
merged 2 commits into from
Feb 19, 2021

Conversation

danielskeenan
Copy link
Contributor

Fixes #1714.

I allowed up to 500 microseconds of drift in the checks, this way we still catch anything that's wildly off but allow for some minor variance in Python's execution.

Copy link
Member

@peternewman peternewman left a comment

Choose a reason for hiding this comment

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

As a bug-fix, please can this target 0.10 branch rather than master.

Some other comments too.

python/ola/ClientWrapperTest.py Outdated Show resolved Hide resolved
python/ola/ClientWrapperTest.py Show resolved Hide resolved
python/ola/ClientWrapperTest.py Outdated Show resolved Hide resolved
python/ola/ClientWrapperTest.py Outdated Show resolved Hide resolved
python/ola/ClientWrapperTest.py Outdated Show resolved Hide resolved
@danielskeenan danielskeenan changed the base branch from master to 0.10 February 19, 2021 15:21
@danielskeenan
Copy link
Contributor Author

Yikes, git-splosion. Let me try that again...

@danielskeenan
Copy link
Contributor Author

Should be better now... every time I think I know what rebase will do I'm surprised...

@peternewman
Copy link
Member

Should be better now... every time I think I know what rebase will do I'm surprised...

I've always given up and just cherry-picked in the past!

Copy link
Member

@peternewman peternewman left a comment

Choose a reason for hiding this comment

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

A minor style change, a style suggestion and a query. Other than that, pending CI this looks good to merge thanks!

python/ola/ClientWrapperTest.py Outdated Show resolved Hide resolved
python/ola/ClientWrapperTest.py Outdated Show resolved Hide resolved
@peternewman peternewman self-assigned this Feb 19, 2021
@peternewman peternewman added this to the 0.10.9 milestone Feb 19, 2021
Co-authored-by: Peter Newman <peternewman@users.noreply.github.com>
Copy link
Member

@peternewman peternewman left a comment

Choose a reason for hiding this comment

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

LGTM thanks

@peternewman peternewman merged commit 448603a into OpenLightingProject:0.10 Feb 19, 2021
@peternewman
Copy link
Member

Looks like it's perhaps still not relaxed enough on Arm on a VM (sometimes at least) https://travis-ci.org/github/OpenLightingProject/ola/jobs/759708456 :
FAIL: testEventLoop (main.ClientWrapperTest)


Traceback (most recent call last):

File "../../python/ola/ClientWrapperTest.py", line 201, in testEventLoop

delta=datetime.timedelta(microseconds=500))

AssertionError: datetime.timedelta(0, 0, 5709) != datetime.timedelta(0, 0, 5000) within datetime.timedelta(0, 0, 500) delta

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.

Python ClientWrapperTest fails occasionally
2 participants