Jimmy Berry
d3f6c62ea0
osclib/request_splitter: replace map() calls with loop and call.
...
Python 3 makes map() a lazy call and since the result is not needed it
makes sense to just switch to explicit loop. Without this the "loop" (via
map) is never executed. As such, --try-strategies effective does nothing
and instead the staging-bot always falls back to none strategy.
2019-09-03 15:17:32 -05:00
Stephan Kulow
f741cdc4e6
New basic test case
2019-09-03 19:43:15 +02:00
Stephan Kulow
88c561d352
Don't use the webui for project status
...
The API replies to these routes as well - and we can use standard functions
for that
2019-09-03 19:43:15 +02:00
Stephan Kulow
0bb1be46b3
Add little SMTP server that does not send mails for testing
...
Not yet used, but hopefully will be useful for fully testing build fail
reminder
2019-09-03 19:43:15 +02:00
Stephan Kulow
85e79f3331
Fix filename of the build-fail-reminder gocd config
2019-09-02 16:52:09 +02:00
Stephan Kulow
00958f0f6e
Inline the mail text for the mailing list post - easier to map
2019-09-02 16:52:09 +02:00
Stephan Kulow
58089794f9
Deduplicate the 2 mail sending functions
...
I went with introducing mail_send_with_details and make mail_send
a wrapper around it
2019-09-02 16:52:09 +02:00
1eb5d07c09
build-fail-notification: Mail to -factory after 4, dr after 6 weeks
...
Let's further automate the process of failed packages. Keeping them around serves nobody.
So now, we do:
* Mail to maintainer after 1 week of failre
* Reminder mail after another week
* Send a mail to -factory after 2 more weeks (so, total 4 weeks failed)
* File a delete request after 6 weeks failed
The delete request will then go into the regular delete process, being blocked by potentially
other packages depending on it.
2019-09-02 16:52:09 +02:00
Jimmy Berry
72c1e9b445
Merge pull request #2179 from jberry-suse/sentry-sdk-updates
...
sentry: update for 0.11.x, general improvements, and operator exception handling
2019-08-29 15:09:59 -05:00
Jimmy Berry
3a2aed7f33
obs_operator: override HTTPServer.handle_error() to capture exceptions.
2019-08-29 14:36:01 -05:00
Jimmy Berry
d10a359c0c
osclib/sentry: tag osc version.
2019-08-29 14:10:29 -05:00
Jimmy Berry
eb0a6c4659
osclib/sentry: provide dummy client.
2019-08-29 14:10:29 -05:00
Jimmy Berry
cbfbb88048
osclib/sentry: sentry_client(): handle 0.11.x API change.
2019-08-29 14:10:29 -05:00
Jimmy Berry
e912e9d2c3
Merge pull request #2178 from jberry-suse/obs_operator-cookie-legality
...
obs_operator: allow illegal cookie keys.
2019-08-29 10:40:08 -05:00
Jimmy Berry
41ea0c132f
obs_operator: allow illegal cookie keys.
2019-08-29 10:03:00 -05:00
Jimmy Berry
f74d0c1d49
Merge pull request #2176 from jberry-suse/osc-origin-progress-text
...
osc-origin: update: indicate which package is being checked.
2019-08-29 08:26:41 -05:00
Jimmy Berry
970f6067ed
osc-origin: update: indicate which package is being checked.
2019-08-29 08:04:41 -05:00
Jimmy Berry
642809099b
Merge pull request #2175 from jberry-suse/origin-manager-web-history-diff
...
web/origin-manager: allow a request to be diffed against a potential origin (and related fixes).
2019-08-29 08:02:26 -05:00
Jimmy Berry
a189e94615
web/origin-manager: allow a request to be diffed against a potential origin.
2019-08-28 17:16:13 -05:00
Jimmy Berry
e3d67622e9
web/origin-manager: display the reason for a diff failure.
2019-08-28 17:15:19 -05:00
Jimmy Berry
114f25e004
web/origin-manager: properly handle potential origin de-selection.
2019-08-28 17:13:41 -05:00
Jimmy Berry
0e1d9ef25a
web/origin-manager: properly handle package de-selection.
2019-08-28 17:12:53 -05:00
Jimmy Berry
275db9b0d2
web/origin-manager: clear table data before loading new data.
...
Further clarifies new data is being loaded and when an error occurs the
prior data does not remain after the error messsage.
2019-08-28 17:10:51 -05:00
Jimmy Berry
5ee09feb27
web/origin-manager: table_selection_set(): handle undefined table.
2019-08-28 17:09:54 -05:00
Jimmy Berry
edfef91b3d
osclib/origin: origin_history(): expose source_(project,package,revision).
...
This is the best location to expose the information as the action context
is already available. Alternatively, a lookup function accepting a request
target_project and target_package could perform the equivalent of the
client-side filter operation that is part of the initial search. This also
alleviates additional queries that would be needed later.
2019-08-28 17:07:23 -05:00
Jimmy Berry
b466442260
obs_operator: handle_package_diff(): expose target package and revision.
2019-08-28 17:04:48 -05:00
Jimmy Berry
14971e2db0
Merge pull request #2174 from jberry-suse/sentry-improvements
...
sentry improvements and check_source logger error demotion
2019-08-28 15:34:02 -05:00
Jimmy Berry
7400d7d5e7
osc-origin: capture exception with sentry to ensure they are reported.
2019-08-28 15:09:45 -05:00
Stephan Kulow
97f37e8092
Merge pull request #2172 from DimStar77/bfr
...
gocd: use sep pipeline for build-fail-reminder
2019-08-28 16:42:04 +02:00
Stephan Kulow
4155474e39
Merge pull request #2170 from DimStar77/checknewer-py3
...
checknewer.py: Use python3 shebang
2019-08-28 16:41:54 +02:00
Stephan Kulow
79d31cd963
Merge pull request #2171 from lnussel/master
...
gocd: add Leap 15.2 announcer
2019-08-28 16:40:40 +02:00
74846d2cb2
gocd: use sep pipeline for build-fail-reminder
2019-08-28 15:05:51 +02:00
Ludwig Nussel
fca343511f
gocd: add Leap 15.2 announcer
2019-08-28 14:59:31 +02:00
3d65059281
checknewer.py: Use python3 shebang
2019-08-28 13:52:21 +02:00
Stephan Kulow
30c7a9a268
Merge pull request #2157 from andreas-schwab/master
...
update_repo_handler: properly extract factory build string
2019-08-28 11:58:35 +02:00
Jimmy Berry
7a913b34d4
check_source: check for target package not found when checking out.
...
When new packages are submitted the target package should not exist and
thus does not constitute an error. Any other return code does.
2019-08-27 14:49:17 -05:00
Jimmy Berry
208336ca80
ReviewBot: action_method(): drop request.type sentry extra in favor or action.key.
2019-08-27 14:45:29 -05:00
Jimmy Berry
4ca9995b5d
ReviewBot: simplify sentry_sdk initialization line since defined globally.
2019-08-27 14:44:54 -05:00
Jimmy Berry
b0d7e9930a
ReviewBot: provide request.id and action.key as sentry extras.
2019-08-27 14:44:42 -05:00
Jimmy Berry
ca4033e614
ReviewBot: action_method(): reduce sentry extra to filter(None, ...).
2019-08-27 14:31:00 -05:00
Jimmy Berry
37386e0c74
osclib/common: provide version_calcuate() and utilize by default.
2019-08-27 14:27:11 -05:00
Jimmy Berry
6e8e461e1c
osclib/git: provide describe().
2019-08-27 14:27:08 -05:00
Jimmy Berry
2189443994
osclib/git: remove unnecessary CacheManager import.
2019-08-27 14:13:10 -05:00
Jimmy Berry
7f92a226fc
Merge pull request #2168 from jberry-suse/ReviewBot-logger-reduction
...
ReviewBot: reduce unhandled request type log message from error to info.
2019-08-27 08:38:57 -05:00
Jimmy Berry
12d15ae850
ReviewBot: reduce unhandled request type log message from error to info.
...
Uninteresting request action types are intentionally left to the default
handler and does not constitute and error.
2019-08-27 08:20:13 -05:00
Jimmy Berry
cf98ac16de
Merge pull request #2167 from jberry-suse/origin-manager-none-origin-override
...
osclib/origin: origin_annotation_dump(): allow origin_info_new to be None.
2019-08-26 15:45:34 -05:00
Jimmy Berry
54c28b6908
osclib/origin: origin_annotation_dump(): allow origin_info_new to be None.
...
A None origin annotation can be generated when unknown_origin_wait is True
and an override comment is detected.
2019-08-26 15:09:25 -05:00
Jimmy Berry
bf48f33adf
Merge pull request #2153 from jsegitz/master
...
check_source: add a review for the security team if there are warnings about missing
2019-08-22 11:17:04 -05:00
Johannes Segitz
b445589f87
check_source: add a review for the security team if there are warnings
...
about missing whitelist entries and this is submitted to a project that
has this check activated via attribute OSRT:Config (add to
bad-rpmlint-entries)
2019-08-22 08:42:05 +02:00
Stephan Kulow
b9c7635cfc
Merge pull request #2163 from jberry-suse/gocd-origin-manager-timer-fix
...
gocd: *.Origin.Manager.Update: shift timer to account for seconds.
2019-08-20 14:54:04 +02:00