Commit Graph

40 Commits

Author SHA1 Message Date
Moritz "WanzenBug" Wanzenböck ec0843e19e Use assertIn in unittests
Replace usage of assertTrue(A in B) with assertIn(A, B). This is
required for the pep8 pipeline to pass.

Change-Id: If0af443590ea2062ab04801ea27f7db0b17e8a04
2021-03-10 14:04:03 +01:00
Ilya Shakhat 7c34f87b0d Fix code syntax to become compatible with py3
Change-Id: I3ea7a94389ba5204d5b26e54cc209ffda0af53c8
2019-12-18 09:20:13 +01:00
Vu Cong Tuan c0547dc715 Update Zuul Status Page to correct URL
Current URL of Zuul Status Page in code is:
http://status.openstack.org/zuul/

The correct URL must be:
https://zuul.openstack.org/

Change-Id: Idc692c94c21fd0515618fb5ab3c452d240a59a62
2018-05-25 09:58:11 +07:00
Ilya Shakhat 9726be8fc1 By default return only drivers for active releases
Active releases are configured in etc/default_data.json

Change-Id: I3757e291f773176598dce763b5b6cda8fcdbfad6
2018-03-02 10:54:16 +01:00
Swapnil Kulkarni (coolsvap) 9f205be889 Replace deprecated LOG.warn with LOG.warning
LOG.warn is deprecated. It still used in a few places.
Updated to non-deprecated LOG.warning.

Change-Id: I24ffa2215eb3bb60d9441f48fd069186a2385fb1
Closes-Bug:#1508442
2016-03-11 13:17:52 +05:30
Ilya Shakhat 9e1b9453e8 Fix compatibility with Gerrit 2.11
New version of Gerrit doesn't have paging via 'resumeKey' parameter.

Change-Id: I4a830a8d2cd493a6eee01e811736f8cb17852be0
2015-12-28 16:09:44 +03:00
Ilya Shakhat edaa1263cd Remove duplicate keys in default data
Also add test case to prevent the issue in the future

Change-Id: I5620aa474ce592f4647289f6c43696ffa3b2aba0
2015-11-26 18:35:31 +03:00
Ilya Shakhat 71589ac8c8 Add default value for default-data-uri parameter
Change-Id: I1d12209560e73c6cefaa7e81016134613d31d39f
2015-11-09 12:18:42 +03:00
Ilya Shakhat 5c8342cff5 Generate default conf automatically
Run tox -egenconfig to generate default conf

Change-Id: Id91d1604ec097127bac805fe7fec424c18e1bc97
2015-11-09 12:15:49 +03:00
Ilya Shakhat b6168a8ab6 Optimize communication with Gerrit
Also:
1. Look over comments only, do not use votes (because some drivers are
   executed by jenkins)
2. For master branch assign release based on date

Change-Id: I75bb29c8d8cf798a882e64953c784e01fd57a95e
2015-09-30 19:12:34 +03:00
Ilya Shakhat a21206eb70 Add aliases to API parameter names
It appears that Stackalytics in DriverLog UI expects release
name to be passed as 'release', not 'release_id'. This patch
adds aliases for both release and project so they can be referred
withoud '_id' suffix.

Change-Id: If17488fcdef60d17b836072f723468c173195731
2015-09-29 14:05:15 +03:00
Ilya Shakhat 440a64c8f3 Allow project_id be different to repo name
Fuel plugins are groupped under the same project 'Fuel', but the code
(and CI votes) is located in separate repos. Woth this patch it is possible
to specify repo for every driver.

Change-Id: I959b3731ff3b068a511202a4c61b9b720b97cba6
2015-09-29 13:26:24 +03:00
Ilya Shakhat fd3eccafdc Properly handle cold restart with empty storage
Change-Id: Ia7dcaaf32a96fd1db345ff8ec4fc5aec007297bd
2015-08-21 12:13:41 +03:00
Ilya Shakhat 79b1ebba89 Fix DriverLog to support latest oslo.log
Change-Id: Ie9d086fd365c1655b54d5f1b568d3440723616f2
2015-08-19 12:54:03 +03:00
Ilya Shakhat 0542f1f3da Update project for the latest libs
Change-Id: I036bfc8b25376742ff5a882dab2fd93d333d6dd0
2015-07-27 15:22:44 +03:00
Christian Berendt 416702b7b4 Bump hacking to version 0.9.2
Change-Id: I58677d1ed5b736a6f4395120f4dbcdb6811fdf3d
2014-07-16 16:59:14 +02:00
Ilya Shakhat 9ec7e74af1 DriverLog is API service and doesn't need own UI
Change-Id: I258dab463be6adbb2d9761b1e4c5277dcf26e722
2014-06-19 16:32:39 +04:00
Ilya Shakhat a85113576b Reuse connection to Gerrit and remove unused params
Change-Id: I0400f62fd1d1b4cd1130c1fc85eb57c13b29d256
2014-06-18 22:39:40 +04:00
Ilya Shakhat 11b1c6eb43 Implemented driver details pop-up
Change-Id: Ib3534cbe148dfeec32674b62ff051ebe7ee3cf9e
2014-05-16 17:46:01 +04:00
Ilya Shakhat 8b9230ef58 Add launchpad ids to maintainers
Change-Id: I3e581a73afb5bd7eac264d9ebb4f15f2e6fc924d
2014-05-15 17:25:16 +04:00
Ilya Shakhat d61ed36d50 Optimize algorithm that retrieves CI results from Gerrit
New algorithm iterates over drivers and branches and polls corresponding
reviews from Gerrit. Reviews are iterated until vote or comment matching
pattern is found.

Also:
 * CI results are merged into drivers during retrieval. Drivers are stored
   in memcached as part of default-data
 * Enforced capitalized case for release ids
 * Removed unused code from dashboard

Closes bug 1319293
Closes bug 1318051

Change-Id: Id8893deb1fcb7d206830678c2aefe6f5e5751c71
2014-05-15 13:27:37 +04:00
Ilya Shakhat 8db9120af7 Enforce read of all reviews when default data changes
Also refactoring of update processing and cover it with tests

Closes bug 1318285

Change-Id: I5dbe9805217b780bce42d107cd2873fc4c6029c5
2014-05-13 17:15:54 +04:00
Ilya Shakhat 0435f06cbb Specify patterns to parse CI results
Change-Id: Ie236772ae10ef6f165fa2a3951fbbcdb99183b29
2014-05-13 15:31:24 +04:00
Ilya Shakhat 889fb8fd7b Parse review comments to get results of external CI
It's assumed that CI was executed on the review if comment message is left and:
 a) message satisfies success and failure patterns (if they exist)
or
 b) vote is set

Thus the process supports case when CI votes on review and non-voting CIs that
just leave messages. However it is required that CI leaves a comment.

Note: the schema is updated to support CI definitions like these:
            "ci": {
                "id": "cisco_neutron_ci",
                "success_pattern": "neutron_zuul \\S+ : SUCCESS",
                "failure_pattern": "neutron_zuul \\S+ : FAILURE"
            }

Closes bug 1317554

Change-Id: Ia73ab70fd633b2278a3d5d3f1ba67d3018370e4b
2014-05-13 13:16:41 +04:00
Ilya Shakhat 4593269222 Refactored review processing and tests
Part of bug 1317554

Change-Id: I8edfd326e016b98a376e3a803ea70d7a8fe06812
2014-05-13 12:46:29 +04:00
Jenkins 2944426b80 Merge "Support multiple maintainers profiles per driver" 2014-05-13 08:39:13 +00:00
Ilya Shakhat 9bbb1477b5 Support multiple maintainers profiles per driver
* Updated default_data, all maintainers are converted into arrays
* Updated schema
* Updated UI

Implements blueprint multilpleemailaddresses

Change-Id: I645b6ceaad04b1deaf0dae0d82405d9cc7d380b0
2014-05-13 12:29:28 +04:00
Ilya Shakhat 706eecc1b1 Hide email out of driver list API response
Closes bug 1318804

Change-Id: Ib8c8da6c3abd0b515317cd471ea399c10b8aae4c
2014-05-13 11:41:02 +04:00
Ilya Shakhat 091c0c2c65 Refactoring of vote processing
Part of bug 1317554

Change-Id: I6f79025cb86501ae10ab8b63781287781d14ae21
2014-05-12 12:06:09 +04:00
Jenkins 84d8d52591 Merge "Type of review mark has changed in Gerrit 2.8.4" 2014-04-29 14:32:08 +00:00
Ilya Shakhat 1f04d58488 Type of review mark has changed in Gerrit 2.8.4
Change-Id: Ie932b74ae705971b3275a23cf6b8a4f41fa4a8e5
2014-04-29 18:00:39 +04:00
Jenkins 8dd264e174 Merge "Refactoring of default_data format" 2014-04-25 19:51:03 +00:00
Ilya Shakhat 4753b9a9a9 Refactoring of default_data format
* Removed term 'verification level'
* Simplified list of releases
* Simplified case of external CI

Change-Id: I5e0cd2be6c28c2b498658e215c2387205ef51034
2014-04-25 19:54:51 +04:00
Ilya Shakhat 9f6d0ca09c Fix URI references for API endpoints
Change-Id: I85a39f4b361cfe05eec4f3f13dd7989c4d6f5dbf
2014-04-25 17:17:41 +04:00
Ilya Shakhat 440c7a37d5 Summary page loads its content dynamically
* Data in selectors and summary table is loaded from API endpoints
* All scripts are moved to driverlog-ui

Change-Id: I6ffd62cde2482b512c8d57dd38d4a47159ef376c
2014-04-25 15:56:41 +04:00
Ilya Shakhat ab41495562 Added selector for releases
The selector allows to filter out drivers that worked in particular release.

Change-Id: I2566b33ec4520ff3c5d07559334ef071c4db03b3
2014-04-24 17:32:33 +04:00
Ilya Shakhat 3f52f16fdf Fix driver names in default data
Change-Id: Ie6e88abd147f13062e756ac9ca2ef87236714fd7
2014-04-24 16:15:27 +04:00
Ilya Shakhat 3aed47cbb1 Redesign of summary page and driver list update
Summary page now displays the whole table of drivers with info about
maintainer, list of releases and CI presense. Link to details page is
removed (however it remains in repo as may be useful in future)

List of drivers is updated

Change-Id: Idf6f761090d4615b2155bda13d72012883cb27f2
2014-04-23 17:03:27 +04:00
Ilya Shakhat e1cfa40552 Default data is loaded into memcached by processor
Closes bug 1307447

Change-Id: I2347a7addfa18f76a37cbac2d7cf49291a30f63a
2014-04-14 16:38:19 +04:00
Ilya Shakhat a1d3e8d05d DriverLog initial commit 2014-04-03 17:20:46 +04:00