Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • Trac Trac
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 246
    • Issues 246
    • List
    • Boards
    • Service Desk
    • Milestones
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Legacy
  • TracTrac
  • Issues
  • #29425

Closed (moved)
(moved)
Open
Created Feb 07, 2019 by Karsten Loesing@karsten

Write integration tests for data-processing modules

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking