]> sourceware.org Git - bunsen.git/log
bunsen.git
3 weeks agor-grid-testcase: Fix mypy type hint errors master
Housam Alamour [Tue, 6 Aug 2024 19:01:08 +0000 (15:01 -0400)]
r-grid-testcase: Fix mypy type hint errors

3 weeks agoconfigury: regen tests/Makefile.in
Frank Ch. Eigler [Tue, 6 Aug 2024 17:54:45 +0000 (13:54 -0400)]
configury: regen tests/Makefile.in

4 weeks agor-grid-testcase: Add glossary section to r-httpd-browse page for r-grid-testcase...
Housam Alamour [Mon, 29 Jul 2024 22:40:30 +0000 (18:40 -0400)]
r-grid-testcase: Add glossary section to r-httpd-browse page for r-grid-testcase view

4 weeks agorun-r-grid-testcase.sh: new test script for r-grid-testcase that runs all invocation...
Housam Alamour [Mon, 29 Jul 2024 15:35:54 +0000 (11:35 -0400)]
run-r-grid-testcase.sh: new test script for r-grid-testcase that runs all invocation levels (toplevel, as well as automake, dejagnu, glic for test and subtest levels) and compares the output to a predetermined outcome
r-grid-testcase: Add check to ensure the database is accessible before running any commands. Add in logging messages to show what sql query is currently being run.

4 weeks agor-grid: add check to ensure provided vertical and horizontal keys exist in the db
Housam Alamour [Thu, 18 Jul 2024 19:56:19 +0000 (15:56 -0400)]
r-grid: add check to ensure provided vertical and horizontal keys exist in the db
r-httpd-browse: Display error message when no info on test is found.

4 weeks agor-grid: fix for text output template not working
Housam Alamour [Thu, 18 Jul 2024 14:53:29 +0000 (10:53 -0400)]
r-grid: fix for text output template not working

4 weeks agor-grid: exit if results are not found rather than continuing execution
Housam Alamour [Wed, 17 Jul 2024 14:18:23 +0000 (10:18 -0400)]
r-grid: exit if results are not found rather than continuing execution

5 weeks agoautomake parser: avoid subdirectory .trs/.log matches
Frank Ch. Eigler [Sat, 20 Jul 2024 22:21:02 +0000 (18:21 -0400)]
automake parser: avoid subdirectory .trs/.log matches

Previous code falsely associated found subtest.trs/.log files with any
parent test directory (identified by presence of a test-suite.log
file), which fails especially when there are multiple nested test
directories.  This doesn't seem to happen with normal automake tests,
however, valgrind's proposed tests do include nested subdirs.

New code matches the dirname precisely.

6 weeks agor-grid-testcase: Fix the glib gridview queries not working.
Housam Alamour [Fri, 12 Jul 2024 16:03:57 +0000 (12:03 -0400)]
r-grid-testcase: Fix the glib gridview queries not working.

7 weeks agor-grid-testcase: Remove parsing of the results data, instead send the query
Housam Alamour [Wed, 10 Jul 2024 22:21:17 +0000 (18:21 -0400)]
r-grid-testcase: Remove parsing of the results data, instead send the query
information out in a list containing dict of every row of the query. This is to
avoid unnecessary double parsing and issues arising from converting the dict
keys to strings.

r-httpd-browse: Moved the parsing from r-grid-testcase here

7 weeks agor-httpd-browse: Add links in glibc pages to r-grid view
Housam Alamour [Wed, 10 Jul 2024 14:35:28 +0000 (10:35 -0400)]
r-httpd-browse: Add links in glibc pages to r-grid view

Small fix to preferred function when trying to return empty lb[0]

7 weeks agor-httpd-browse: gridview adapt more automatically to unexpected horizontal/vertical...
Frank Ch. Eigler [Tue, 9 Jul 2024 01:05:35 +0000 (21:05 -0400)]
r-httpd-browse: gridview adapt more automatically to unexpected horizontal/vertical keywords

Include a prioritized preference default for each axis, and match them
to the actual list of keywords available for the testrun.

7 weeks agor-httpd-browse.in: handle another failing r-grid-testcase case
Frank Ch. Eigler [Tue, 9 Jul 2024 00:38:39 +0000 (20:38 -0400)]
r-httpd-browse.in: handle another failing r-grid-testcase case

"testsuite_type":[] also needs initialization

7 weeks agor-grid-testcase: fix to testsuite_type_query for glibc tests.
Housam Alamour [Mon, 8 Jul 2024 21:36:02 +0000 (17:36 -0400)]
r-grid-testcase: fix to testsuite_type_query for glibc tests.

7 weeks agor-grid-testcase: fix for no issue to toplevel view caused by no "testsuite_type"...
Housam Alamour [Mon, 8 Jul 2024 21:14:36 +0000 (17:14 -0400)]
r-grid-testcase: fix for no issue to toplevel view caused by no "testsuite_type" assigned when in toplevel view.

7 weeks agotestsuite: force TZ=US/Eastern
Frank Ch. Eigler [Mon, 8 Jul 2024 11:44:34 +0000 (07:44 -0400)]
testsuite: force TZ=US/Eastern

else git timestamps run differently elsewhere

7 weeks agor-grid-testcase: add trsfile, logfile info to the dict for automake invocations
Housam Alamour [Fri, 5 Jul 2024 19:24:55 +0000 (15:24 -0400)]
r-grid-testcase: add trsfile, logfile info to the dict for automake invocations
and trfile, outfile info to the dict for glibc invocations. Add testsuite type
info to the dict.

r-httpd-browse: Add links to allow navigating to r-grid-testcase test and
subtest level views from the automake and glibc pages

7 weeks agor-grid-testcase: Add support for subtest queries for automake and glibc
Housam Alamour [Fri, 5 Jul 2024 16:49:33 +0000 (12:49 -0400)]
r-grid-testcase: Add support for subtest queries for automake and glibc

7 weeks agor-grid-testcase: Add queries to fetch details of each type of testsuite. These
Housam Alamour [Thu, 4 Jul 2024 21:26:45 +0000 (17:26 -0400)]
r-grid-testcase: Add queries to fetch details of each type of testsuite. These
details will be used in the cluster query to find proximate keywords

8 weeks agor-grid-testcase: Add logic to determine testsuite type
Housam Alamour [Thu, 4 Jul 2024 16:50:08 +0000 (12:50 -0400)]
r-grid-testcase: Add logic to determine testsuite type

8 weeks agor-grid-testcase: Fix formatting of the sql queries to be consistent
Housam Alamour [Wed, 3 Jul 2024 21:53:23 +0000 (17:53 -0400)]
r-grid-testcase: Fix formatting of the sql queries to be consistent

2 months agor-diff-testruns: identify metadata differences too
Frank Ch. Eigler [Fri, 28 Jun 2024 12:38:57 +0000 (08:38 -0400)]
r-diff-testruns: identify metadata differences too

Extend r-diff-testruns with an "metadata_results" output, which
r-httpd-browse renders at the top of the "testrun-diffs" page.

2 months agor-httpd-browse: gridview: improve "diff" invocation gui
Frank Ch. Eigler [Thu, 27 Jun 2024 14:36:43 +0000 (10:36 -0400)]
r-httpd-browse: gridview: improve "diff" invocation gui

2 months agor-grid: change ordering of the sql queries to reflect the hierarchy of the
Housam Alamour [Wed, 26 Jun 2024 22:15:31 +0000 (18:15 -0400)]
r-grid: change ordering of the sql queries to reflect the hierarchy of the
invocation levels (omnitest top level, test, subtest). Change the query
formatting to be more consistent

2 months agor-grid: remove deprecated testsuite variable
Housam Alamour [Wed, 26 Jun 2024 20:49:43 +0000 (16:49 -0400)]
r-grid: remove deprecated testsuite variable

2 months agor-grid-testcase: fix for subtest information being repeated in
Housam Alamour [Wed, 26 Jun 2024 20:26:20 +0000 (16:26 -0400)]
r-grid-testcase: fix for subtest information being repeated in
output due to duplicates in the sql query.

2 months agogridview html: tweak whitespace
Frank Ch. Eigler [Wed, 26 Jun 2024 13:33:27 +0000 (09:33 -0400)]
gridview html: tweak whitespace

Don't allow the cell counts/checkboxes to line-break via CSS.

2 months agor-httpd-browse testrun summary: split up the omnitest summary query
Frank Ch. Eigler [Wed, 26 Jun 2024 13:12:09 +0000 (09:12 -0400)]
r-httpd-browse testrun summary: split up the omnitest summary query

This avoids some pessimal sqlite view/filter optimization.

2 months agor-show-testsuite: don't compute dejagnu/etc. details unless requested
Frank Ch. Eigler [Tue, 25 Jun 2024 18:12:51 +0000 (14:12 -0400)]
r-show-testsuite: don't compute dejagnu/etc. details unless requested

When invoked from r-httpd-browse's summary view, all the frontend
needs to know if there exist any dejagnu/etc. testsuite details, not
the details themselves.  Add a new output flag family ("has....") to
r-show-testrun, and consume it in r-httpd-browse.  This saves some
database traffic ergo page latency.

2 months agohttpd: add a gridview entry icon in a more prominent place
Frank Ch. Eigler [Tue, 25 Jun 2024 14:53:53 +0000 (10:53 -0400)]
httpd: add a gridview entry icon in a more prominent place

2 months agogridview: drop toplevel grid cell subindexing with row['testsuite']
Frank Ch. Eigler [Tue, 25 Jun 2024 14:50:02 +0000 (10:50 -0400)]
gridview: drop toplevel grid cell subindexing with row['testsuite']

2 months agor-grid-testcase: For top-level invocation, store the testsuite string as a tuple in
Housam Alamour [Tue, 25 Jun 2024 00:11:35 +0000 (20:11 -0400)]
r-grid-testcase: For top-level invocation, store the testsuite string as a tuple in
the key of the count dict, rather than in the h/v key of the cell dict as it
makes more sense for the testsuite info to be associated to each
pass/fail/other entry in each cell.
r-httpd-browse: Add support for the new top-level invocation in the grid view.
This view will shows test result information aggregated on the testrun level,
rather than individual test level.

2 months agor-show-testrun: don't calculate cluster adjacency stuff by default
Frank Ch. Eigler [Mon, 24 Jun 2024 23:57:58 +0000 (19:57 -0400)]
r-show-testrun: don't calculate cluster adjacency stuff by default

... it's too slow, and only needed for r-httpd-browse in "cluster" focus mode,
so add a new default-off "--cluster" option.

2 months agog-gridview-test-summary: add dummy --update option
Frank Ch. Eigler [Mon, 24 Jun 2024 23:57:30 +0000 (19:57 -0400)]
g-gridview-test-summary: add dummy --update option

... which is needed for pipeline ops

2 months agor-httpd-browse: work around python 3.12ish deprecation of datetime.utcnow()
Frank Ch. Eigler [Mon, 24 Jun 2024 23:36:23 +0000 (19:36 -0400)]
r-httpd-browse: work around python 3.12ish deprecation of datetime.utcnow()

datetime.datetime.now(datetime.timezone.utc) works sans drama on both python3.6 and 3.12

2 months agogridview: tolerate failed r-grid-testcase queries
Frank Ch. Eigler [Mon, 24 Jun 2024 19:22:54 +0000 (15:22 -0400)]
gridview: tolerate failed r-grid-testcase queries

- move keyword-enumeration logic over to r-httpd-browse
- r-grid-testcase can still fail bigly if results empty or whatever
- but r-httpd-browse will attempt to produce at least an empty grid
  with a functional search form

2 months agor-grid-testcase: add new invocation level --toplevel that returns test result
Housam Alamour [Mon, 24 Jun 2024 18:46:31 +0000 (14:46 -0400)]
r-grid-testcase: add new invocation level --toplevel that returns test result
information aggregated on the testrun level, rather than individual test level.
This pulls information for all testsuites of each testrun from
omnitest_summary_v and presents it in the same cell-dictionary format as the test
level, but with additional testsuite information in the key of each cell entry

2 months agogridview jstable: do sort(0,"asc') procedurally
Frank Ch. Eigler [Mon, 24 Jun 2024 17:28:18 +0000 (13:28 -0400)]
gridview jstable: do sort(0,"asc') procedurally

2 months agor-httpd-browse: gridview: start with first column (vertical axis) sorted
Frank Ch. Eigler [Mon, 24 Jun 2024 16:07:23 +0000 (12:07 -0400)]
r-httpd-browse: gridview: start with first column (vertical axis) sorted

2 months agogridview configury: ensure both r- and g- grid scripts are installed
Frank Ch. Eigler [Mon, 24 Jun 2024 15:40:38 +0000 (11:40 -0400)]
gridview configury: ensure both r- and g- grid scripts are installed

2 months agor-grid-testcase: Add new queries for the subtests views of each testsuite.
Housam Alamour [Fri, 21 Jun 2024 21:21:18 +0000 (17:21 -0400)]
r-grid-testcase: Add new queries for the subtests views of each testsuite.
This maintains support for the dejagnu subtest view via r-httpd-browse.
The queries for the other subtest have been implemented but a way to
select which type of testsuite query to use is still in the works.

2 months agogridview support views: run from pipeline (with rw sqlite privs) user/halamour/other-testsuite-support
Frank Ch. Eigler [Fri, 21 Jun 2024 19:28:00 +0000 (15:28 -0400)]
gridview support views: run from pipeline (with rw sqlite privs)

Running from a reporter process wouldn't give rw privs to a child process.

2 months agog-gridview-test-summary: new script to create a view combining
Housam Alamour [Fri, 21 Jun 2024 19:04:51 +0000 (15:04 -0400)]
g-gridview-test-summary: new script to create a view combining
data from 'automake', 'dejagnu', and 'glibc' testsuites.
r-grid-testcase: move the gridview_test_summary_v view creation
to g-gridview-test-summary and run it as a subprocess.

2 months agor-grid-testcase: update query for test level invocation to use a new view
Housam Alamour [Wed, 19 Jun 2024 21:28:13 +0000 (17:28 -0400)]
r-grid-testcase: update query for test level invocation to use a new view
that incorporates all testsuite information. This breaks the subtest level views.

2 months agor-grid-testcase: Change keyword_query to not rely on any other query output. Use...
Housam Alamour [Tue, 18 Jun 2024 17:32:55 +0000 (13:32 -0400)]
r-grid-testcase: Change keyword_query to not rely on any other query output. Use better variables names.

2 months agoCorrect formatting for r-show-testrun.1 man page options.
William Cohen [Fri, 14 Jun 2024 18:23:48 +0000 (14:23 -0400)]
Correct formatting for r-show-testrun.1 man page options.

2 months agor-httpd-browse: change default horiz axis to key "architecture"
Frank Ch. Eigler [Fri, 14 Jun 2024 15:51:40 +0000 (11:51 -0400)]
r-httpd-browse: change default horiz axis to key "architecture"

uname-m is less onmipresent

2 months agor-grid-testcase: compute debug message unconditionally
Frank Ch. Eigler [Fri, 31 May 2024 15:13:45 +0000 (11:13 -0400)]
r-grid-testcase: compute debug message unconditionally

simplify logic for ~0 cost

2 months agor-grid-testcase: fix result duplication from the sql query by adding DISTINCT
Housam Alamour [Wed, 5 Jun 2024 21:09:15 +0000 (17:09 -0400)]
r-grid-testcase: fix result duplication from the sql query by adding DISTINCT
keyword. Update while loop description

2 months agor-httpd-browse:
Housam Alamour [Sat, 1 Jun 2024 19:35:18 +0000 (15:35 -0400)]
r-httpd-browse:

Enable sorting for first column in the grid
Remove natsorting import and natsorting of the dict as it is not needed
Remove unnecessary cookies

2 months agor-httpd-browse.in: Add ability to access difference/regression view
Housam Alamour [Thu, 30 May 2024 23:52:47 +0000 (19:52 -0400)]
r-httpd-browse.in: Add ability to access difference/regression view

Add checkboxes to each of the testruns in the grid cells These can be used with the
diff/regress buttons to access the diff/regression view via r_diff_testruns()

3 months agor-httpd-browse: natsort the table values in the grid-testcase.html template render
Housam Alamour [Tue, 28 May 2024 21:05:28 +0000 (17:05 -0400)]
r-httpd-browse: natsort the table values in the grid-testcase.html template render

- Using the natsort library to sort the table_data dictionary keys in reverse order
- Removing unnecessary sorting of results in the template
- Removing unused code for storing vertical and horizontal keyword values in the dictionary

3 months agor-grid-testcase: Add third keyword filter argument
Housam Alamour [Wed, 22 May 2024 19:02:45 +0000 (15:02 -0400)]
r-grid-testcase: Add third keyword filter argument
This commit adds a new third keyword filter argument to further filter results.
The break condition for the search loop was modified to allow for a single
search expansion if no results where found in the first loop itteration

r-httpd-browse: Include form input for third keyword
This change includes a form input for the third keyword in the table.

3 months agor-grid-testcase: Run check for errors in the result_dict earlier on to catch empty...
Housam Alamour [Wed, 22 May 2024 16:14:24 +0000 (12:14 -0400)]
r-grid-testcase: Run check for errors in the result_dict earlier on to catch empty dict sooner

3 months agor-grid-testcase: Remove unnecessary data for storing vertical and horizontal
Housam Alamour [Tue, 21 May 2024 18:39:51 +0000 (14:39 -0400)]
r-grid-testcase: Remove unnecessary data for storing vertical and horizontal
keyword values in the dict

3 months agor-httpd-browse: Don't show subtest information on expfile table view. Move the
Housam Alamour [Tue, 21 May 2024 18:04:14 +0000 (14:04 -0400)]
r-httpd-browse: Don't show subtest information on expfile table view. Move the
building of the "counts" subdictionary to r-grid-testcsae.
r-grid-testcase: Don't load
additional subtest information when in expfile view. Only load result counts

3 months agor-httpd-browse: remove unused </div>. Change 'check' and 'X' symbols to unicode
Housam Alamour [Thu, 16 May 2024 20:29:27 +0000 (16:29 -0400)]
r-httpd-browse: remove unused </div>. Change 'check' and 'X' symbols to unicode
hex in the Jinja template. Remove unneeded key from dict reading loop.
r-grid-testcase: Clean up the code by removing code
blocks that do not need to be in the while loop outside. Add
comment block to explain the main while loop. Exit loop if max
number of keywords was reached.

3 months agor-grid-testcase: Stop the dynamic search expansion loop if more than half the
Housam Alamour [Wed, 15 May 2024 21:27:02 +0000 (17:27 -0400)]
r-grid-testcase: Stop the dynamic search expansion loop if more than half the
    cells in the final rendered table will be empty

3 months agoaccidental push cleanup
Frank Ch. Eigler [Mon, 13 May 2024 16:37:34 +0000 (12:37 -0400)]
accidental push cleanup

3 months agor-httpd-browse: only highlight in green the base test in the cell that contains it...
Housam Alamour [Wed, 8 May 2024 22:03:27 +0000 (18:03 -0400)]
r-httpd-browse: only highlight in green the base test in the cell that contains it, instead of the whole cell

3 months agor-grid-testcae: update to the SQLITE_MAX_VARIABLE_NUMBER patch to be more dynamic
Housam Alamour [Wed, 8 May 2024 21:51:35 +0000 (17:51 -0400)]
r-grid-testcae: update to the  SQLITE_MAX_VARIABLE_NUMBER  patch to be more dynamic
and equally divide the keyword limit among the h and v keywords. Removed duplicate
variable in other_variables

3 months agoPR31712: rework jstable.sh for better sorting
Frank Ch. Eigler [Wed, 8 May 2024 21:00:35 +0000 (17:00 -0400)]
PR31712: rework jstable.sh for better sorting

The jstable.js inner sorting function now uses String.localeCompare(...., {numeric:true})
to approximate strverscmp() style natural sorting.  In addition, for sorting purposes,
empty cells are interpreted as "0".

3 months agojstable .js/.css: replace with uncompressed 1.6.5 code
Frank Ch. Eigler [Wed, 8 May 2024 18:15:06 +0000 (14:15 -0400)]
jstable .js/.css: replace with uncompressed 1.6.5 code

Easier to edit this way.
https://github.com/jstable/JSTable

3 months agogrid view: tweak grid peer-to-peer navigation link, drop corner number
Frank Ch. Eigler [Tue, 7 May 2024 17:44:05 +0000 (13:44 -0400)]
grid view: tweak grid peer-to-peer navigation link, drop corner number

3 months agor-grid-testcase: fix issue caused by reaching the max number of variables allowed...
Housam Alamour [Mon, 6 May 2024 22:03:02 +0000 (18:03 -0400)]
r-grid-testcase: fix issue caused by reaching the max number of variables allowed for the version this version of sqlite. SQLITE_MAX_VARIABLE_NUMBER = 999, so the v_keywords and h_keywords have been limited to a combined total of 999 now. https://www.sqlite.org/limits.html

4 months agor-grid-testrun: Expand the grid-cell if it is too small. This is done via dynamic...
Housam Alamour [Fri, 26 Apr 2024 18:27:09 +0000 (14:27 -0400)]
r-grid-testrun: Expand the grid-cell if it is too small. This is done via dynamic expansion of the search limits if number of desired cells from the vertical and horizontal limits is not reached.
New limits are based on the ratio of total cells to desired cells. Added
checks to break the loop if the maximum number of iterations is reached
or if the lengths of v_keywords and h_keywords haven't changed,
indicating all data has been read. Also implemented slicing of the results
dictionary to remove results that go over the limit. Added button to jump to the cell with the base test in it for easier navigation
r-httpd-browse: Fix box styling.

4 months agor-grid-testcase: Add h_keywords and v_keywords to the template render in r-grid-testcase
Housam Alamour [Wed, 24 Apr 2024 18:42:18 +0000 (14:42 -0400)]
r-grid-testcase: Add h_keywords and v_keywords to the template render in r-grid-testcase
r-httpd-browse: Display any empty cells that do not contain information

4 months agor-httpd-browse (r-grid-testcase view): Add more logging debug messages
Housam Alamour [Tue, 23 Apr 2024 23:17:30 +0000 (19:17 -0400)]
r-httpd-browse (r-grid-testcase view): Add more logging debug messages

4 months agor-httpd-browse (r-grid-testcase view): Fix the icons in the cells
Housam Alamour [Thu, 18 Apr 2024 17:31:28 +0000 (13:31 -0400)]
r-httpd-browse (r-grid-testcase view): Fix the icons in the cells
showing the favicon of the  copyleft symbol instead of the bunsen icon. Set --horizontal default of r-grid-testcase to be uname-m

4 months agor-httpd-browse (r-grid-testcase view): move the total results count for each cell...
Housam Alamour [Wed, 17 Apr 2024 21:03:07 +0000 (17:03 -0400)]
r-httpd-browse (r-grid-testcase view): move the total results count for each cell to the right to make the view more compact.Fix commas not showing between the results, use bunsen favicon for the testrun icon. Fix link for each result to point to the dgexpfile view instead of dejagnu view. Add horizontal and vertical information to the hover-over/title attribute.

4 months agoChange hashes in the cell to be unicode icons instead of hashes and make them link...
Housam Alamour [Wed, 17 Apr 2024 19:52:09 +0000 (15:52 -0400)]
Change hashes in the cell to be unicode icons instead of hashes and make them link to r-grid-view tool using that testrun hash. Add clickable links to each of the result icons as well as the ability to see the gitcommit hash when you hover over via the title attribute. Add nonbreaking spaces to the grid cell text.

4 months agoChange filter labels and added spacing between the filter options
Housam Alamour [Fri, 12 Apr 2024 20:43:58 +0000 (16:43 -0400)]
Change filter labels and added spacing between the filter options

4 months agoFix some links in the cells to r-grid-testcase of subtests not working, wrong trid...
Housam Alamour [Mon, 15 Apr 2024 22:43:50 +0000 (18:43 -0400)]
Fix some links in the cells to r-grid-testcase of subtests not working, wrong trid given

4 months agor-httpd-browse grid view tweaks cont'd
Frank Ch. Eigler [Mon, 15 Apr 2024 22:49:40 +0000 (18:49 -0400)]
r-httpd-browse grid view tweaks cont'd

also ... mypy type checks are unhappy with recent code, starting
slight fixes

4 months agor-httpd-browse: for dejagnu tab links to gridview, use fancier icon
Frank Ch. Eigler [Mon, 15 Apr 2024 22:39:05 +0000 (18:39 -0400)]
r-httpd-browse: for dejagnu tab links to gridview, use fancier icon

https://www.fileformat.info/info/unicode/char/25a6/index.htm

4 months agor-grid-testcase --db: don't file-existence-check
Frank Ch. Eigler [Fri, 12 Apr 2024 18:11:27 +0000 (14:11 -0400)]
r-grid-testcase --db: don't file-existence-check

This check breaks in case of URL style sqlite database paths.

4 months agor-grid-testcase: new tool
Housam Alamour [Tue, 20 Feb 2024 15:16:17 +0000 (10:16 -0500)]
r-grid-testcase: new tool

Introduces the r-grid-testcase tool, a Python script that fetches and
summarizes test/subtest results from the Bunsen database which are
proximate to a base, input test/subtest.  Proximity is defined in 2
dimensions, the vertical and horizontal axis keywords selected from
the base test. The proximity of each test is defined as the distance
of the test from the base test in the testrun_cluster table.

The tool was designed to have its output consumed by r-httpd-browse to
create a grid-cell view of the results, although it can be used
independently. It takes in a testrun id, specific test name (expfile),
and optionally a subtest name alongside vertical and horizontal
keywords and limits on how many clusters to search. The output is a
json object where the keys are a tuple-string of the vertical and
horizontal keyword, and the value is a list that contains information
about all the tests that match those keyword filters (expfile name,
subtest name, result, etc.).

It works by first identifying the horizontal/vertical keyword values
of the base subtest, then using these keywords to build a proximate
keyword list for each dimension, then finally doing a search on the
database for test runs that match these keywords. All this is done
with multiple sql queries that may join several tables from the
database together.  The relevant information is then put into a Jinja
template and sent to the output.

r-httpd-browse has been updated to include a '+' button for each test
file in the dejagnu view and a '+' button for each subtest in the
dgexpfile view. Clicking this button will open the r-grid-testcase
web-view using that test/subtest.  The webview consists of a gridded
table that displays all the proximate tests. The view hides some cell
information behind buttons for the sake of compactness. The base test
run cell is coloured green and the text is bold. The web-view allows
the user to change the filter values when calling r-grid-testcase.
r-httpd-browse grid view works by calling r-grid-testcase, consuming
the output then passing the output to an html template that also makes
use of some javascript.

The current r-grid-testcase and web-view version only works with
dejagnu-style tests but compatibility with other testsuites is planned
for the future

Example:
r-grid-testcase --trid 77dcc4d2191c11c700eb55f225db78a4b2b00dc7
  --test binutils-all/addr2line.exp  --template json --h_limit 5
  --v_limit 5

6 months agor-httpd-browse: datetime.UTC compat
Frank Ch. Eigler [Tue, 27 Feb 2024 19:52:46 +0000 (14:52 -0500)]
r-httpd-browse: datetime.UTC compat

3.12 will deprecate something, but its replacement is not supported on 3.6

6 months agor-httpd-browse: use werkzeug multiprocess mode by default
Frank Ch. Eigler [Tue, 27 Feb 2024 19:46:42 +0000 (14:46 -0500)]
r-httpd-browse: use werkzeug multiprocess mode by default

r-httpd-browse spends a fair bit of CPU time in python land, massaging
the json data coming from lower level r-* tools.  During this time, it
cannot act concurrently, even in the werkzeug threaded=True mode,
because it's all blocking python code.  Add new --threaded /
--processes options, with a default on the latter, to run report jobs
in concurrent subprocesses.  This allows genuine concurrency.

8 months agoconvert tests to use only '' single-quoted string literals
Frank Ch. Eigler [Thu, 21 Dec 2023 17:54:07 +0000 (12:54 -0500)]
convert tests to use only '' single-quoted string literals

sqlite 3.40something stopped quietly accepting "foo" literals

8 months agobin/*: use r"foo" regexp literal syntax to protect all the \S etc. escapes
Frank Ch. Eigler [Thu, 21 Dec 2023 17:53:31 +0000 (12:53 -0500)]
bin/*: use r"foo" regexp literal syntax to protect all the \S etc. escapes

8 months agoi-testrun-indexer: add indexes on keyword values (asc and desc)
Frank Ch. Eigler [Thu, 21 Dec 2023 17:38:48 +0000 (12:38 -0500)]
i-testrun-indexer: add indexes on keyword values (asc and desc)

This accelerates interactive enumeration of testruns.

11 months agor-httpd-browse: correct result name table headings in automake testsuite summaries
Frank Ch. Eigler [Mon, 11 Sep 2023 21:48:44 +0000 (17:48 -0400)]
r-httpd-browse: correct result name table headings in automake testsuite summaries

11 months agor-httpd-browse: view omnitest.results by default on testruns list
Frank Ch. Eigler [Mon, 11 Sep 2023 18:41:44 +0000 (14:41 -0400)]
r-httpd-browse: view omnitest.results by default on testruns list

11 months agoi-omnitest-summarizer: don't add metadata for empty results
Frank Ch. Eigler [Mon, 11 Sep 2023 17:49:27 +0000 (13:49 -0400)]
i-omnitest-summarizer: don't add metadata for empty results

Some testruns don't have currently parseable result counts.

11 months agodoc/pipeline.1: document i-omnitest-summarizer
Frank Ch. Eigler [Mon, 11 Sep 2023 17:39:30 +0000 (13:39 -0400)]
doc/pipeline.1: document i-omnitest-summarizer

11 months agoi-omnitest-summarizer: add a metadata field "omnitest.results"
Frank Ch. Eigler [Mon, 11 Sep 2023 17:36:21 +0000 (13:36 -0400)]
i-omnitest-summarizer: add a metadata field "omnitest.results"

Might as well make this data easyish to see on a testrun list.

11 months agopipeline: run dead & new testrun jobs in an interleaved way
Frank Ch. Eigler [Fri, 1 Sep 2023 19:39:32 +0000 (15:39 -0400)]
pipeline: run dead & new testrun jobs in an interleaved way

This way, even following a big t-untag-testruns batch, where timeouts
might kill the job before completion, the bunsen pipeline can still
make progress on new testruns too.

11 months agor-diff-testruns, r-find-testruns: sqlite temp table optimzation
Frank Ch. Eigler [Wed, 30 Aug 2023 17:54:35 +0000 (13:54 -0400)]
r-diff-testruns, r-find-testruns: sqlite temp table optimzation

These scripts use complex sql operations that can cause the generation
of temporary tables (for distinct/order-by evaluation).  Direct sqlite
to keep these results in memory rather than bother the OS with disk
access.

12 months agoupdate python module prereq list
Frank Ch. Eigler [Wed, 30 Aug 2023 16:51:19 +0000 (12:51 -0400)]
update python module prereq list

12 months agodrop mypy mentions from top level Makefile.*
Frank Ch. Eigler [Wed, 30 Aug 2023 16:47:57 +0000 (12:47 -0400)]
drop mypy mentions from top level Makefile.*

12 months agoturd cleanup
Frank Ch. Eigler [Thu, 24 Aug 2023 22:54:08 +0000 (18:54 -0400)]
turd cleanup

12 months agor-httpd-browse: add "raw" file content downloading
Frank Ch. Eigler [Thu, 24 Aug 2023 18:37:08 +0000 (14:37 -0400)]
r-httpd-browse: add "raw" file content downloading

From both the filelist and the file browser, a "raw" link allows
reasonably efficient download of an entire file, without the html &
jinja goo involved in the numbered, formatted, navigable normal file
browser.

Also, fix number-of-lines glitch in file browser, which caused a
false blank line at end.

12 months agomypy: run & clean more systematically
Frank Ch. Eigler [Thu, 24 Aug 2023 18:35:00 +0000 (14:35 -0400)]
mypy: run & clean more systematically

Previous code would miss r-httpd-browse, which was generated.
New shell loop relies less on make timestamping and on a simple
and through shell loop.  Also, the python file matching is
made more robust.

12 months agor-httpd-browse: whoopsie, tyreaded=XYZ typo fix
Frank Ch. Eigler [Thu, 24 Aug 2023 14:45:55 +0000 (10:45 -0400)]
r-httpd-browse: whoopsie, tyreaded=XYZ typo fix

12 months agor-httpd-browse: get flask/werkzeug to run in multithreaded mode
Frank Ch. Eigler [Thu, 24 Aug 2023 14:42:23 +0000 (10:42 -0400)]
r-httpd-browse: get flask/werkzeug to run in multithreaded mode

12 months agoi-dejagnu-parser: extract more systemtap metadata
Frank Ch. Eigler [Wed, 23 Aug 2023 20:03:24 +0000 (16:03 -0400)]
i-dejagnu-parser: extract more systemtap metadata

Including especially the new cpuflags bits.

12 months agor-httpd-browse: report the listening port number at startup
Frank Ch. Eigler [Wed, 23 Aug 2023 20:02:58 +0000 (16:02 -0400)]
r-httpd-browse: report the listening port number at startup

12 months agor-httpd-browse.in: decrease diagnostics a touch
Frank Ch. Eigler [Tue, 22 Aug 2023 22:51:39 +0000 (18:51 -0400)]
r-httpd-browse.in: decrease diagnostics a touch

12 months agor-httpd-browse.in: python 3.6 packages typing.Literal elsewhere
Frank Ch. Eigler [Tue, 22 Aug 2023 21:31:21 +0000 (17:31 -0400)]
r-httpd-browse.in: python 3.6 packages typing.Literal elsewhere

This page took 0.064479 seconds and 5 git commands to generate.