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
updated usage.
Story: 2001034
Task: 4590
Change-Id: Iaea5e2f6036d39b6aa57685d484cd02f323a4d39
This commit adds min version to extra libs for graph command. When we
introduced a new graph type[1], we noticed that the matplotlib's min
version is required to use "style"[2]. 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.)
[1] Change-Id: I369717c84df0217a9a0cf17b7f9e975e580ce5a7
[2] http://matplotlib.org/users/whats_new.html#style-package-added
Change-Id: Iedb5203fb71ea522454b3f50a923fe8fc1ee1a74
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.
Change-Id: Iefc0bbed60ad8a42a2568060ce109072e3e4c920
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.
Change-Id: I0de9aedae5447690b5433842799758d406b9b6ec
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.
Change-Id: I9ba442e83aeeac1ab9aad4b3e24ad09fd1e0f805
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.
Change-Id: I3170ac51124e862a35709fd1a3902bb0148cf247
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.
Change-Id: Ie578f99f27553e14fca4153a9ac5b5aa1c7eb49e
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
file.
Change-Id: Icc0d97ca1d1b0bd91434a38014902b922a4ff3ba
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
thing.
Change-Id: I110baa532d08de4ca70b7ea2d1dcdc845d595693
This adds a new command, sql2subunit, to take a run_id and create a
subunit stream from all the data in the db around that run_id.
Change-Id: Id1f95da71f3d4ca8469e985ee904e91fb4acb247