4276 Commits

Author SHA1 Message Date
Jimmy Berry
6069245350 Remove SUSE copyright, warranty, and license headers.
Distinct copyrights were left as I do not wish to track down commit
history to ensure it properly documents the copyright holders. Also left
non-GPLv2 licenses and left bs_copy untouched as a mirror from OBS.

Already have a mix of with and without headers and even OBS does not place
on majority of files. If SUSE lawyers have an issue it will come up in
legal review for Factory.
2018-08-23 19:18:06 -05:00
Jimmy Berry
36988ed1d3 LICENSE: add proper GPLv2 license. 2018-08-23 18:56:31 -05:00
Jimmy Berry
b2be0e2345
Merge pull request #1672 from jberry-suse/readme-coveralls
README: update coveralls badge for new repository name.
2018-08-23 12:05:36 -05:00
Jimmy Berry
fc73e81ae9 README: update coveralls badge for new repository name. 2018-08-23 11:52:28 -05:00
Jimmy Berry
57ef49a172
Merge pull request #1671 from jberry-suse/repo_checker-state-to-build-revert
Revert "repo_checker: change build to state in comment info."
2018-08-23 11:44:03 -05:00
Jimmy Berry
9641379679 Revert "repo_checker: change build to state in comment info."
Works, but overrides the base state properly which is not desired.

This reverts commit 3db3a182855510c0b016e83888693e03e227e000.
2018-08-23 11:26:13 -05:00
Jimmy Berry
db50e7918b
Merge pull request #1669 from jberry-suse/repo_checker-multi-repository-request
repo_checker: include repository as bot name suffix for staging and direct package comments.
2018-08-23 08:01:15 -05:00
Jimmy Berry
3bdcad9ead
Merge pull request #1667 from jberry-suse/repo_checker-build-to-state
repo_checker: change build to state in comment info.
2018-08-23 08:00:52 -05:00
Jimmy Berry
ec3c1d1b6e
Merge pull request #1668 from jberry-suse/repo_checker-project-skip
repo_checker: provide repo_checker-project-skip option (and utilize for OBS SLE projects)
2018-08-23 08:00:05 -05:00
Jimmy Berry
ebec4215ed
Merge pull request #1665 from jberry-suse/repo_checker-package-comment-devel-default
repo_checker: change package comment default to be direct instead of devel.
2018-08-23 07:52:26 -05:00
Jimmy Berry
108e0a2bf4 repo_checker: include repository as bot name suffix in direct package comment.
This allows for multiple project_only runs with a different main-repo set.
It is very unlikely this feature will be used, but will handle it properly
to be consistent with pseudometa file name.
2018-08-23 00:39:06 -05:00
Jimmy Berry
da507a4147 repo_checker: include repository as bot name suffix for staging comments.
This becomes necessary for multi-action requests like those seen in
maintenance where there may be multiple repositories reviewed for a single
request. The result is multiple comments made on the staging project which
would override each other. This treats them separately just as devel
project comments do with target project.
2018-08-23 00:38:56 -05:00
Jimmy Berry
dbfafe8e85 osclib/conf: utilize repo_checker-project-skip for OBS SLE projects. 2018-08-23 00:13:30 -05:00
Jimmy Berry
bf69419996 repo_checker: provide repo_checker-project-skip option.
Allows for skipping review of an action based on the target project config.
2018-08-22 23:56:46 -05:00
Jimmy Berry
3db3a18285 repo_checker: change build to state in comment info.
The more accurately reflects what the hash represents since it grew to
include the staging project meta revision and may end up including more.
2018-08-22 23:39:33 -05:00
Jimmy Berry
a676367135
Merge pull request #1666 from jberry-suse/repo_checker-CreatePackageDescr-include-special-build-ignore
repo_checker: CreatePackageDescr: exclude build-env requirement.
2018-08-22 22:28:37 -05:00
Jimmy Berry
e330765960 repo_checker: CreatePackageDescr: exclude build-env requirement.
Drop in #1644, but as suspected it is needed. The reason the side-effect
was not notice right away is the package description cache for a package
making use of the requirement must be rebuilt. This means the package
must be updated since the last time cache was built.

After completely a force rebuild of entire cache the behavior is correct
by only adding this back. Unlike the case below these binaries are not
published to the end-user so this is more a quirk of the data present in
OBS for staging projects.
2018-08-22 22:05:08 -05:00
Jimmy Berry
cdef5bf129 repo_checker: change package comment default to be direct instead of devel.
Since the tool has been expanded to work on any repository, there are more
repositories that would want direct comments than devel. Set the value
to be devel for the openSUSE products which are the places where that is
desirable.
2018-08-22 21:43:47 -05:00
Jimmy Berry
a02488ecf2
Merge pull request #1660 from jberry-suse/maintbot-supersede-by-ReviewBot
ReviewBot: add devel_project_review_*() methods adapted from maintbot (and port users)
2018-08-22 21:39:05 -05:00
Jimmy Berry
dab65356d7 leaper: replace maintbot usage with ReviewBot methods.
The maintenance_incident logic is always updated to mimic the maintbot
behavior in regards to when to add devel project review.
2018-08-22 21:24:58 -05:00
Jimmy Berry
31d6a872c7 check_source: replace maintbot usage with ReviewBot methods. 2018-08-22 21:24:58 -05:00
Jimmy Berry
a1c1334803 ReviewBot: add devel_project_review_*() methods adapted from maintbot.
The owner logic surrounding a package removed from Factory does not appear
to make sense as the current behavior of OBS never returns another owner
pair for such packages. As such the existing devel project lookup makes
more sense and is more straight forward.
2018-08-22 21:24:58 -05:00
Jimmy Berry
7fa84f7d51
Merge pull request #1657 from jberry-suse/repo_checker-psuedometa-staging-fix
repo_checker: rework install_check() to use target project consistently.
2018-08-22 21:21:28 -05:00
Jimmy Berry
a7f08f656c repo_checker: repository_check(): drop left over development comment. 2018-08-22 20:49:57 -05:00
Jimmy Berry
2931e9aedb repo_checker: rework install_check() to use target project consistently.
Removes the need for the odd parse argument behavior.
2018-08-22 20:49:23 -05:00
Jimmy Berry
4cbeaa5508
Merge pull request #1661 from jberry-suse/leaper-default-maintainer-override-ibs-remove
leaper: remove duplicate maintainer review check for IBS in default action.
2018-08-22 18:10:13 -05:00
Jimmy Berry
7f26309a15
Merge pull request #1659 from jberry-suse/repo_checker-project_only-post-comments-wiring
repo_checker: project_only: hook up --post-comments flag.
2018-08-22 17:41:55 -05:00
Jimmy Berry
a9f1bc0ee7
Merge pull request #1658 from jberry-suse/osclib.core.repository_path_expand-skip-duplicate-path
osclib/core: repository_path_expand(): skip adding duplicate path.
2018-08-22 17:33:11 -05:00
Jimmy Berry
be2ed18b29 leaper: remove duplicate maintainer review check for IBS in default action.
The default is already set in check_one_request() (called before) to
  self.do_check_maintainer_review = not self.ibs
2018-08-22 00:31:35 -05:00
Jimmy Berry
730ea38464 repo_checker: project_only: hook up --post-comments flag.
The code is all there, but in the rework missed wiring it up.
2018-08-21 21:48:50 -05:00
Jimmy Berry
a8cfd74f1f osclib/core: repository_path_expand(): skip adding duplicate path. 2018-08-21 21:37:48 -05:00
Jimmy Berry
fa39e68d50
Merge pull request #1656 from jberry-suse/repo_checker-generic-repo-refactor
repo_checker: complete rework to handle arbitrary repos and maintenance (and related)
2018-08-21 20:57:15 -05:00
Jimmy Berry
af0d74a2df StagingAPI: drop inferior expanded_repos() implementation for osclib.core. 2018-08-21 20:49:31 -05:00
Jimmy Berry
36a5a6c2e4 pkglistgen: utilize osclib.core.repository_path_expand(). 2018-08-21 20:49:31 -05:00
Jimmy Berry
a57fe7ba4e repo_checker: complete rework to handle arbitrary repos and maintenance.
The rework includes a variety of changes:

- multiple actions per request supported
- automatically detecting "main" repo (useful for devel/home projects)
- full layered repository path state and published taken into account
- arbitrary repository name (ie. not just standard) supported
- intermediate results (used for staging) no longer accept (even if no
  problems detected) until all layers are published
- no longer tied to staging process, but still supports staging workflow
- robust handling of repository state changes during review cycle
- multiple repositories supported for project_only output (ie. file name)
- project_only run supports any OBS project instead of only products
- maintenance_release requests supported with alternate staging approach
2018-08-21 20:49:26 -05:00
Jimmy Berry
341301fd0d osclib/util: provide sha1_short() adapted from repo_checker. 2018-08-21 20:47:37 -05:00
Jimmy Berry
7cb40bbe21 osclib/core: provide project_meta_revision() adapted from repo_checker. 2018-08-21 20:47:37 -05:00
Jimmy Berry
9f89eaad04 osclib/core: provide repository state and published functions. 2018-08-21 20:47:37 -05:00
Jimmy Berry
6e28fc4ec8 osclib/core: provide repository_path_search(). 2018-08-21 20:47:37 -05:00
Jimmy Berry
37540add5f osclib/core: provide repository_path_expand() adapted from StagingAPI. 2018-08-21 20:47:37 -05:00
Jimmy Berry
b6ab577a7f osclib/core: target_archs(): expose repository argument. 2018-08-21 20:47:37 -05:00
Jimmy Berry
6f9a81ff73 osclib/conf: drop main-repo default for all projects. 2018-08-21 20:47:37 -05:00
Jimmy Berry
53f7f42183 ReviewBot: utilize osclib.Cache for all bots by default.
Half the bots already utilize the Cache since it is used by StagingAPI
which they call, but really no reason for all of them not to use it by
default. With planned repo_checker changes the StagingAPI is not always
utilized, but it is desirable for the cache to always be used.

No sense calling Cache.init() in ReviewBot constructor as useless extra
calls when bots embed each other.
2018-08-21 01:56:05 -05:00
Jimmy Berry
3ece452a03 ReviewBot: utilize memoize cached config. 2018-08-21 01:53:29 -05:00
Jimmy Berry
d7d5724dae
Merge pull request #1655 from jberry-suse/pseudometa-container
osclib/core: provide project_pseudometa_*() functions (and related)
2018-08-20 21:03:44 -05:00
Jimmy Berry
1fe03c16f0 osc-staging: update "config" documentation to point to OSRT:Config. 2018-08-17 23:19:28 -05:00
Jimmy Berry
6d60708b59 osclib/core: source_file_save(): always include host in message. 2018-08-17 23:19:28 -05:00
Jimmy Berry
536e17cb79 osclib/stagingapi: rename dashboard_content_* methods to pseudometa_file_*.
No need to be confusing and use the deprecated dashboard name.
2018-08-17 23:19:24 -05:00
Jimmy Berry
24b15d6b0b Replace relevant 'dashboard' package references with pseudometa lookup.
Skipping some of the broader once which have no tangible impact, but are
expensive to change.
2018-08-17 23:18:32 -05:00
Jimmy Berry
5e6df089a6 osclib/stagingapi: drop {load,save}_file_content() methods.
Since the implementations have been made generic and dropped to osclib.core
there is not point in having wrappers in StagingAPI with the same args.
2018-08-17 22:15:58 -05:00