Commit Graph

15 Commits

Author SHA1 Message Date
Richard Purdie
a304971d89 reporters/wikilog: Avoid overwriting variable
The log boolean variable conflicted with log.err() calls, fix this
and avoid tracebacks.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-25 10:42:17 +00:00
Richard Purdie
64b67aa878 Add SPDX License Identifiers
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2021-01-18 23:49:01 +00:00
Richard Purdie
9b210a7a2c wikilog: Create archive pages of 150 entries to stop infinite page growth
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-21 18:26:16 +01:00
Richard Purdie
6a4cebdfee wikilog: Allow footer of archived logs
Preseve a footer 'Archived Logs' section at the end of the BuildLog wiki
page. This will be later used for archiving purposes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-21 14:31:59 +01:00
Richard Purdie
31f297e026 wikilog: Filter monitoring on wiki log to build subset
We want the wiki log to primarily contain full and quick builds for
processing by SWAT. The buildperf log entries are distracting but
in case of failure we do need them there so adjust the code to handle
this.

Also, don't log reports of skipped builds but do log build warnings, since
we do want warnings to be acted upon now.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2020-10-21 13:47:24 +01:00
Richard Purdie
61ae6e954d wikilog: Clean up logging messages
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-18 11:54:00 +01:00
Richard Purdie
6c9ac90b54 wikilog: Ensure we use a separate thread for blocking wiki network access
Buildbot would hang for several minutes when cancelling builds. We need to defer
this work (which involved network calls) to a thread so that the reactor isn't
blocked.

Use a lock to ensure we only update the wiki one entry at a time.

Also tweak the logging to allow easier debugging (include the parent build ID)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2019-07-18 11:46:03 +01:00
Richard Purdie
7ea2415383 wikilog: Improve whitespace formatting and add div tag
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-26 14:35:20 +01:00
Richard Purdie
ff2e532acb wikilog: Fix log entry formatting to be clearer
This ensures one entry is shown per step with the logs on the same line. The logs
are shown with the log names and the step name is only shown once. This make
the resulting wiki entry much easier to use.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-26 13:54:00 +01:00
Richard Purdie
22d8500664 wikilog: Ensure empty wiki page is handled correctly for page init
When a wiki page is empty, or only contains a single entry, ensure
the code still works and use empty content to initialise it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-26 13:52:20 +01:00
Richard Purdie
646ff04e8c wikilog: Handle result values correcting (partiularly warnings)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-09-25 11:13:13 +01:00
Richard Purdie
984e3e15a5 wikilog: Only add entries if there are failures (error logs)
Entries were getting added even in the success case, fix this.

Also only update the wiki if the data changes.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-15 08:10:52 +01:00
Richard Purdie
b172ee87fe wikilog: Complete porting to new buildbot codebase and py3
Finish the porting work started by Joshua Lock, accounting for changes
in buildbot APIs/data model and changes from py3, particular around
character encoding.

This also changes the behaviour of the plugin slightly. We now
use the build URL in the header to match builds. With the new codebase
we can walk the parent tree of triggers builds to ensure we always have
the correct parent build url. This means we can drop a lot of the older
more imprecise build matching logic.

Also simplify the format in the wiki log to one output format which lists
all step failures for each build, even in the parent case.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2018-06-14 22:49:01 +01:00
Joshua Lock
20dcfb7159 Fix module name after rename
The repository was renamed yoctoabb from yoctoab, fix up module references
2018-02-22 14:05:19 +00:00
Joshua Lock
4fd189ab38 Initial prototype of using yocto-autobuilder-helper scripts
Initial prototype of using yocto-autobuilder-helper scripts from vanilla
buildbot to replicate yocto-autobuilder configuration.

* README.md is updated to describe goals and approach
* TODO contains known issues and work items, TODO: comments in the code
  point to specific locations of work

Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
2018-02-22 10:38:19 +00:00