The MessagesView combines two MessageViews into a split-pane card. This
lets us display stdout and stderr side-by-side to the user so they can
see what is going on. I also add a 'back' button that the user can click
to signal that they are done reviewing the output.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The message view will be used to display either stdout or stderr
messages to the user. It has built-in 'diff' detection, and adds nice
colors to the diff output if we are asked to display one.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I only do this for failing tests that have text set in their stdout or
stderr properties. I also update the CSS for failed tests to give an
indication when users hover their mouse over them.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The EnvironmentView is a ColumnView configured to display environment
properties to the user. It doesn't use the firstcol property at all, so
some extra handling of the model property was needed.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is different from our other xunit factories. Instead of displaying
values for each xunit, it looks into what we determine to be environment
properties and displays those instead.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I define the envorionment as properties that are the same across each
added xunit, as long as there are more than 1 added xunits. I add an
'environment' property to make it easy to get the current set of
environment properties.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The XunitView implements most of the work needed by our various views to
show xfstests results.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
And convert most of our Factory implementations to inherit from it. This
lets me set up the xunit property in one single place, and soon I'll be
using this factory for a XunitView base class.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
Now that we've added properties, we need a slightly larger window to
display everything clearly.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
Along with Property, PropertyValue, and PropertyFilter objects that are used
togther to show specific properties to the user when placed in a
Gtk.ColumnView.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
And convert our other Factory instances to inherit from it. This lets me
set up a Gtk.Inscription() in a singe way that is used everywere, and
abstract out some other binding code to make implementing new factories
easier.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The XunitList implements the Gio.ListModel interface, and builds in some
virtual functions to query and fill out the rows in the list in a
standard way. I also update the TestCaseList and SummaryList to both
inherit from this class.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This Object is intended to be returned by a Gio.ListModel to show
Xfstests xunit information. I change the TestCase and Summary classes to
inherit from this class, removing a lot of duplicated code.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I use the XunitCell as a base class for the (renamed) TestResult and
SettingsValue objects. This lets us combine common values and
functionality in one reusable place.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The SummaryView displays a summary of the passed, failed, and skipped
tests for each xunit along with the time it took the xunit to run.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is a Gtk.ListItemFactory that creates a Label widget and binds
xunit summaries to it. I use the summary field name to apply an
appropriate CSS class to each label.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I add a global SizeGroup to the LabelFactory so the first column of each
table I make can have the same width. I also add style classes that are
applied with specific item values, which will mostly be used by the
SummaryView labels.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is a list model designed to show a summary of xfstests results for
a given runid. I create a new one whenever the Application changes the
runid.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
And control the filter using the newly-created FilterButtons class. This
lets us hide completely skipped tests by default, since those are mostly
noise. I also add some custom icons used by the buttons to indicate
passed, failed, or skipped tests.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is a Gtk.Button that has been customized to act similarily to a
Gtk.ToggleButton, but instead of giving the button a "pressed in" look
it changes the opacity of the displayed icon.
I'm planning to use this in the window headerbar in a set of buttons
designed to controll testcase filter state.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I use the ResultFactory to do this. I also create a custom css
stylesheet to use for each cell in the Gtk.ColumnView displaying the
results. This lets us add custom colors so we can easily see at a glance
what is failing, passing, or skipped.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is a Gtk.ListItemFactory that creates a Label widget and binds
testcase results to it. I use the result status as the name of a CSS
class that will be created in the next patch so the ColumnView cells
have a nicer presentation.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
The XfstestsView contains the TestCaseView, and will eventually contain
other views used to display test results and information.
For the moment, the TestCaseView displays the name of the testcases in a
single Xfstests run in a single column. I plan on adding more columns in
the near future.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is a list model designed to show xfstests results for a given
runid. I create a new one whenever the Application changes the runid.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This is an empty Adw.Window with a headerbar configured to display the
application name. I also bind the Application runid property to the
Window to print out the currently displayed run.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This argument is passed to the Application using the 'command-line'
signal, so a running Application can switch to a new runid when
requested.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This command doesn't do much at the moment, it simply sets up the Gtk
Application and then exits. The actual UI will be built up over the next
several patches.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This command is used to garbage collect the xfstestsdb sqlite database.
It removes xfstests runs that have no added xunits, and runs older than
180 days that have not been tagged.
Implements: #16 (`xfstestsdb gc`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This command is used to garbage collect the xunit table by removing
xunits that have no testcases. This could be expanded on later to add
more removal conditions, such as xunits older than some age.
Implements: #15 (`xfstestsdb xunit gc`)
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I found that deleting an xunit from the database was very, very slow.
This patch addresses the issue by adding additional indexes on the
link_xunit_properties table to make it easier to find properties that
are still in use. I also rework the `cleanup_xunit_properties` trigger
to only check propids that were used by the deleted xunit.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
I found that deleting an xunit from the database was very, very slow.
This patch addresses the issue by adding additional indexes on the
testcases table to make it easier to find messages that are still in
use. I also rework the `cleanup_testcase_messages` trigger to only check
messageids that were used by the deleted testcase.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
Right now it doesn't do any extra changes to the database besides
bumping the user_version to '2'. I'll fill it out over the next several
commits.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>
This function builds on the built-in Python function, and adds in
opening and reading the file in a way that can be used for running
generic scripts on the database.
I also take this chance to move SQL scripts into a subdirectory to keep
them together.
Signed-off-by: Anna Schumaker <anna@nowheycreamery.com>