Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Testing/local script #1382

Merged
merged 7 commits into from
May 2, 2016
Merged

Testing/local script #1382

merged 7 commits into from
May 2, 2016

Conversation

sehqlr
Copy link
Contributor

@sehqlr sehqlr commented Apr 25, 2016

  • Updates documentation relevant to the changes

This has two improvements: one, it adds a local testing script that emulates our CI environment. The second is that exception handling is much better in healthchecks.py, which is important for testing on Travis and locally. I will need to add docs for how to use the local script, so I'm leaving that checklist item in.

Since the testing environment now manipulates a docker container, we
duplicate the testing environment by simply mocking the env vars that
travis uses in a locally-executed script.
In the previous version of the code, there was one try block that
handled all exceptions identically. This change partitions them into
logical sub-try statements, with more explicit error handling.
Since the testing environment now manipulates a docker container, we
duplicate the testing environment by simply mocking the env vars that
travis uses in a locally-executed script.
In the previous version of the code, there was one try block that
handled all exceptions identically. This change partitions them into
logical sub-try statements, with more explicit error handling.
The print function in the healthcheck.py script was trying to use UTF-8
text as ASCII text. Explicitly encoding it should fix this problem.
@BrianHicks
Copy link
Contributor

LGTM

@BrianHicks BrianHicks merged commit c95886a into master May 2, 2016
@BrianHicks BrianHicks deleted the testing/local-script branch May 2, 2016 21:16
@ryane ryane modified the milestone: 1.1 May 10, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants