This commit fixes the dailycount subunit2sql-graph command. This was one
of the earlier graph commands added and has since bitrotted a bit to the
point where it doesn't work anymore. This commit fixes all those issues
and bumps the minimum versions for pandas and matplotlib because of the
This commit adds min version to extra libs for graph command. When we
introduced a new graph type, we noticed that the matplotlib's min
version is required to use "style". However, regarding pandas, I'm
not confident with it. But an error occurred in my environment, when I
set pandas==0.10. (I suppose it's depends on OS or somethings.)
 Change-Id: I369717c84df0217a9a0cf17b7f9e975e580ce5a7
This commit switches the packages only required to generate graphs,
mainly pandas and matplotlib, to be marked as extra requirements using
setuptools extras. These requirements aren't needed for subunit2sql
unless you want to generate graphs and they are fairly involved to
install with many external dependencies.
This commit replaces the previous entry point in run_time.py for the
subunit2sql-graph command and creates a new module for it in graph.py.
This will enable the expansion of the types of graph commands
supported in future patches, by using an oslo.config subparsers it
will make expanding the subunit2sql-graph command a bit simpler.
This commit adds a simple utility for generating graphs of an
individual tests run time over the entire set of test_runs. I imagine
this command will grow over time to generate other graphs, but for
right now it only does the one type.
This commit removes the version string from setup.cfg. We can rely on
pbr to set the correct version based on the git tags so we don't need
to manually set it.
This commit adds a sample config file for each of the current 3
commands in subunit2sql. The files contain the current list of options
which can potentially be set in a config file when using the command.
However for some of the arguments it doesn't make any sense to use them
outside of the cli.
The sample config files can be generated using the oslo-config-generator
utility with the config files added in the config-generator dir.
This commit adds a manifset file to ensure that the base alembic
config file is installed in the correct path. The
subunit2sql-db-manage utility depends on that file exisiting in the
same dir so it can use it to build on based on the subunit2sql config
This commit adds a new cli utility for managing the subunit2sql db.
Previously alembic could just be used directly however since access
to the db models were needed for future migration scripts the db api
was needed. This required invoking the config object to be able to
use the db api calls. Alembic isn't aware of oslo.db or the config
object, so by creating a seperate cli interface we initialize all of
that at the same time. This also saves the need to configure
connection info to the db in 2 places, since just the oslo.db option
will be used.
This utility borrows heavily from the neutron utility to do the same