Skip to content
Snippets Groups Projects

add generate_graph.sh

Merged Ben Morrice requested to merge generategraph into master
All threads resolved!

This commit introduces a script that parses update markdown and displays a plot via gnuplot

$ ./tools/generate_graph.sh -h
usage: ./tools/generate_graph.sh -t -p

This script creates a gnuplot by parsing the markdown from within 'docs'

OPTIONS:

  -t        include testing updates
  -p        include prod updates
  -d        distributions (cc7,c8,cs8). default is 'all'
  -s        filter start date (YYYYMMDD). default is to not filter
  -e        filter end date (YYYMMDD). default is to not filter
  -x        exclude number of packages over this figure
  -h        display this help

As an example, the following would create a graph similar to the below ./tools/generate_graph.sh -t -s 20210101 -x 1000

graph.svg

Edited by Ben Morrice

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Ben Morrice added 1 commit

    added 1 commit

    • cffcb8ca - * change behaviour to create plots for both test and prod by default

    Compare with previous version

  • Ben Morrice resolved all threads

    resolved all threads

  • Ben Morrice added 1 commit

    added 1 commit

    • c0ded3a1 - add ability to control distribution/release type

    Compare with previous version

  • Ben Morrice added 1 commit

    added 1 commit

    • 54f45091 - add ability to control distribution/release type

    Compare with previous version

  • Ben Morrice added 1 commit

    added 1 commit

    • 7bd09e89 - add startdate/enddate parameters

    Compare with previous version

  • Ben Morrice added 1 commit

    added 1 commit

    • 67843d87 - add ability to exclude packages over a certain threshold

    Compare with previous version

  • Ben Morrice added 1 commit

    added 1 commit

    Compare with previous version

  • Ben Morrice marked this merge request as ready

    marked this merge request as ready

  • Ben Morrice changed the description

    changed the description

  • Daniel Juarez Gonzalez approved this merge request

    approved this merge request

  • The -x flag seems weird to me. I get fixing the max y-axis, but not showing those updates at all?

  • If you run ./tools/generate_graph.sh -t -s 20210101 (no exclude) you will see that in January 2021 we had 6000 'new' packages for cs8. This correlates to the day when we first started writing updates for CS8, but it doesn't mean that there were 6000 'new' packages for cs8 on that day ... This is what -x is meant to 'fix'. If you can think of a better way of doing it?

  • Oh, I see, I thought it was to not let point release updates "hide" all the little daily updates by crushing the axis. What about a log scale?

  • hmmm, setting set logscale y and re-running the script with ./tools/generate_graph.sh -t -s 20210101 gives the following result. Not that pretty.

    logscale.svg

  • Alex Iribarren mentioned in commit 5ad4549d

    mentioned in commit 5ad4549d

  • Please register or sign in to reply
    Loading