GithubHelp home page GithubHelp logo

Comments (4)

Nephyrin avatar Nephyrin commented on July 19, 2024

create_graph_json.py handles existing metadata by adding it to the datapoint, e.g.

Meta Datapoint
Iteration 1:CheckpointFoo blah/explicit/js

becomes Iteration 1/CheckpointFoo/blah/explicit/js

The reason these fields aren't just baked into the datapoint by the test to begin with is the silly string de-duplication stuff. We don't want to store each reporter name iterations * checkpoints times per run in sqlite. A database with proper transparent compression would solve this, so we could just prefix whatever onto the reporter name and it would work.

Also, the website is hardcoded to mark certain 'depths' of the tree as special in a few spots, but these are easy to increment if we add another level for process:
https://github.com/mozilla/areweslimyet/blob/master/html/slimyet.js#L820
https://github.com/mozilla/areweslimyet/blob/master/html/slimyet.js#L821
https://github.com/mozilla/areweslimyet/blob/master/html/slimyet.js#L928

from areweslimyet.

Nephyrin avatar Nephyrin commented on July 19, 2024

For the record, if you change the JSON format, the procedure to re-export the old databases is roughly:

# Run this over a weekend, it wont be quick, these DBs are huge and sqlite slow
for compressedMonthDB in db/areweslimyet-*.sqlite.xz; do
  monthDB="${compressedMonthDB%.xz}"
  seriesName="$(basename "${monthDB%.sqlite}")"
  monthJSON="html/data/$seriesName.json.gz"
  util/unarchive_db.sh "$compressedMonthDB"
  util/update_db.py "$monthDB"
  mv -v "$monthJSON" "$monthJSON.oldFormat"
  ./create_graph_json.py "$monthDB" "$seriesName" html/data/
  util/archive_db.sh "$monthDB"
done

(do this one at a time with a script because having them all uncompressed at once will fill the disk)

from areweslimyet.

EricRahm avatar EricRahm commented on July 19, 2024

As of ae88a34 create_graph_json.py handles the new DB format but doesn't actually use anything but the main process. The next step is to update the script to use the process names (and annotate kinds).

from areweslimyet.

EricRahm avatar EricRahm commented on July 19, 2024

This landed in a11f3ec on the e10s branch.

from areweslimyet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.