[metrics-bugs] #29425 [Metrics/Statistics]: Write integration tests for data-processing modules

Tor Bug Tracker & Wiki blackhole at torproject.org
Thu Feb 7 16:31:36 UTC 2019


#29425: Write integration tests for data-processing modules
------------------------------------+--------------------------
     Reporter:  karsten             |      Owner:  metrics-team
         Type:  enhancement         |     Status:  new
     Priority:  Medium              |  Milestone:
    Component:  Metrics/Statistics  |    Version:
     Severity:  Normal              |   Keywords:
Actual Points:                      |  Parent ID:
       Points:                      |   Reviewer:
      Sponsor:                      |
------------------------------------+--------------------------
 We discussed in Brussels that we'll need at least integration tests for
 metrics-web in order to make code changes like the Java 8 Date/Time API
 update.

 I started working on this. Here's what I did:
  - Pick a small set of descriptors as test data that are sufficient to
 produce at least something as .csv files.
  - Write a script that runs all data-processing modules.
  - Run the script once to get output that we would expect from future test
 runs.

 The result is too big (IMHO) to add to the Git repository. That's why I
 uploaded it here:

 https://people.torproject.org/~karsten/volatile/metrics-web-integ-
 tests.tar

 {{{
 shasum -a 256 metrics-web-integ-tests.tar
 728c4e4ee184f2260cd30286f2925aa627d7b3d572a236b646021cc1b461de10  metrics-
 web-integ-tests.tar
 }}}

 It would be great if somebody else besides me tries this out and verifies
 that their run produces the same output.

 A next good step after that would be to talk about where/how to put this
 under version control. If that's impossible, we might be able to reduce
 the test data size a bit more, but maybe not as substantial as we'd want.

 Oh, and we could probably fetch libs from Debian rather than shipping
 them. I didn't bother for now.

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29425>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the metrics-bugs mailing list