-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
…ums; counting of individual stats
Can you write unit tests? Also, it's unclear how labels work. Looking at the code I see it, but it's neither in documentation of the pull request, nor there is a comment in the file. Also, for every file, can you add a high-level summary on it's purpose, possibly examples? I agree unit tests are not very visual, so it can be hard justification for this task. However, with doctest-style examples we could achieve two benefits: code snippets which show the functionality, and unit-like tests at the same time. Thoughts? |
@motiejus I feel like testing the testing tool is maybe too much hustle? |
@severb I thought about it too, in this case, testing is not to assert correctness, but maintainability. This is not a one-off code; I believe we will augment it and it will evolve. And having test + documentation (like discussed, can be in one!) will really save us a lot of time in the future. |
@@ -18,6 +18,12 @@ | |||
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | |||
// THE SOFTWARE. | |||
|
|||
// A SectionScanner wraps a scanner and filters out all data before the start- |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I really love your new tests. LGTM. |
This PR contains the implementation of the measurement and assertion structs. The Measurement struct has a method called Measure which makes calls to the static analysis function in PR #73
In this PR you find the stat ingester of the orchestrator. The stat ingester does real-time analysis to find out if the ringpop cluster is stable and writes the stats to a file for later analysis.
Part 1 for the cluster-test-orchestrator. One file contains the logic to scan a window of a file containing ringpop stats inserted with labels that indicate when the commands of a script are run. The other file contains analysis for: convergence time; number of converged checksums; counting of individual stats.
For reference, here is a small sample of what such a stat file would look like.