131 Commits

Author SHA1 Message Date
Fabian Vogt
54decdef37 Make Dockerfile builds pass check_source.py 2021-03-10 15:18:02 +01:00
Johannes Segitz
516cfdf82d check_source.py: Add the reason why a review was added (e.g. which
whitelist warning was suppressed)
2020-05-25 16:34:20 +02:00
Stephan Kulow
2f8c02e9e0 Fix check_source for repository specific package names
If the package name as reported by OBS does not match the one
we're expecting, then loop through all repositories and check
if we find one there.

This is weakening the policy a little as this will open the
door for false negatives - e.g. that got the right package name
only for another repository. But as we do submission between
code streams all the time, I can't limit the package parsing
to repositories building against the target. So the opened
hole is to be closed by sanity check on review-team - as a
matter of fact the policy is not to catch people playing
macro games around Name, but for people that use completely
different names in source and target.

Fixes #2274
2020-03-20 14:40:01 +01:00
ea3b07568c Fix E203
This fixes incorrect whitespacing inside dictionaries.
2019-12-10 08:54:32 +01:00
Ludwig Nussel
6e918d63b6 check_source: query all repos if source info yields error 2019-11-28 13:15:13 +01:00
32ad0adc2d Fix all E22x errors
This cleans up white spaces around various kinds of operators to be
consistent.
2019-11-27 11:08:06 +01:00
Stephan Kulow
7c1a658f3d Fix check_source on public cloud images
The check for bcntsynctag can be very misleading - just because we align
the build counters between 2 packages doesn't make them invalid submission
targets. Better rely on the link check which is already implemented as
fallback

And set a verbose decline reason for this case
2019-10-22 09:26:55 +02:00
Ludwig Nussel
f5fad72747 check_source: avoid crash if filename is not set 2019-09-27 14:34:18 +02:00
e8f00f8ad1 check_source: when kind is None then it can be a new package
if package_kind() returned None then the submission can be a new package
submission, check_source should continue the process instead of
decline the request.
2019-09-25 19:36:52 +08:00
Ludwig Nussel
9af682c9b3
Merge pull request #2231 from lnussel/check_source
check_source: don't enforce name for kiwi images
2019-09-25 11:17:50 +02:00
Jimmy Berry
afd288b87d check_source: decline package of kind not (meta or source). 2019-09-24 11:26:52 -05:00
Jimmy Berry
91aeaf1f55 check_source: replace meta check with package_kind() == meta. 2019-09-24 11:25:47 -05:00
Ludwig Nussel
67fd2718b5 check_source: don't enforce name for kiwi images
The benefit of this check is unclear to me. It enforces the Name tag
inside he kiwi file to be the same as the package name in OBS while the
kiwi file name itself can be arbitrary.
So that means that kiwi package names end up encoding their distribution
and version (eg "openSUSE-Leap-15.2-Vagrant") and have to be renamed for
each release. Also means diffing between released versions isn't as
straight forward as it could be if the name was more flexibel.
If we wanted to enforce something then we should make sure the actual
kiwi file name is the same as the OBS package name. That is what the
spec file name check actually does after all (package hello needs to
have hello.spec ie srpm name hello).
2019-09-20 14:37:46 +02:00
Jimmy Berry
f5a9538df2
Merge pull request #2212 from jsegitz/master
check_source: only log as info if we can't get build log.
2019-09-12 07:58:04 -05:00
Johannes Segitz
7782fc73c9 check_source: only log as info if we can't get build log. This needs
a more general solution but for now we'll reduce the level to not pollute
the log
2019-09-12 11:51:38 +02:00
Jimmy Berry
9e21e7573c
Merge pull request #2202 from jsegitz/master
check_source: move checking of bad rpmlint entries to subprocess.
2019-09-10 09:31:00 -05:00
Johannes Segitz
b020a41a5c check_source: We need to use the user supplied REs to check if one
of those match the list of entries we want to check
2019-09-10 12:04:30 +02:00
Jimmy Berry
4e4379a4d5 check_source: check_action_delete_repository(): simplify decline message. 2019-09-09 16:57:26 -05:00
Jimmy Berry
a7cf9026db check_source: check_action_delete_repository(): gate behind conf.mail-release-list.
Works for SLE and maintenance properly with this option.
2019-09-09 16:56:44 -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
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
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
5d0f0e3145 Fix check_source with python3
Fixes #2038
2019-05-16 13:17:32 +02:00
Stephan Kulow
6f83acfae4 Run source and repo checker in python3 2019-05-16 06:39:28 +02:00
Stephan Kulow
fec762e5a4 Avoid warning on using .warn (python3) 2019-05-11 14:25:02 +02:00
Stephan Kulow
646ce308d7 Only decline delete requests that affect linked packages within the target
This decline reason came from https://github.com/openSUSE/openSUSE-release-tools/pull/603
without much more context, so I'm guessing it's about delete requests for
e.g. kernel-default that should delete kernel-source

Packages that link to *other* projects basically do not exist in openSUSE
distributions but are very common in SLE service packs, so we need to diff
on this.

Fixes #1824
2019-01-09 12:58:54 +01:00
Stephan Kulow
ea9061ccf5 Import urllib2 python agnostic 2018-11-16 09:01:45 +01:00
Jimmy Berry
a87cca01b7 check_source: check if member of staging group before attempting to skip.
SLE likes to be different for the sake of it.
2018-11-06 16:15:20 -06:00
Jimmy Berry
406fc41a85 ReviewBots: utilize delete_package check where it was already assumed. 2018-09-17 17:15:23 -05:00
Jimmy Berry
658137b9e9 check_source: split out delete repository check to new sub action check. 2018-09-17 17:14:48 -05:00
Jimmy Berry
ecbc806b2d check_source: decline all delete project requests. 2018-09-17 17:13:58 -05:00
Jimmy Berry
d1022403cb
Merge pull request #1691 from lnussel/check_source
check_source: reset skip_add_reviews for each request
2018-09-13 16:57:31 -05:00
dbf31de9af check_source: ignore _product package check 2018-09-13 20:49:56 +08:00
Ludwig Nussel
db9375336b check_source: reset skip_add_reviews for each request
skip_add_reviews needs to be reset, otherwise a single
maintenance_incident request affects the rest of the work queue.
2018-09-12 11:48:23 +02:00
Jimmy Berry
31d6a872c7 check_source: replace maintbot usage with ReviewBot methods. 2018-08-22 21:24:58 -05:00
Jimmy Berry
1012b62830 ReviewBots: utilize Config.get() instead of self.staging_config. 2018-08-17 10:16:47 -05:00
Jimmy Berry
343213fb48 check_source: drop staging_group() for target_project_config().
The staging_group() method pre-dates the target_project_config(), but
essentially accomplishes the same for a single value.
2018-08-17 10:04:34 -05:00
Jimmy Berry
e46d9b0910 check_source: allow for dot in package name during in-air rename check. 2018-08-13 22:47:01 -05:00
Jimmy Berry
4c129bec3c check_source: skip adding reviews for incidents in favor of maintbot. 2018-06-28 12:25:24 -05:00
Jimmy Berry
da36ae9931 check_source: replace one action limitation with configurable rule.
Allows tool to be used on multi-action requests while still enforcing
the rule for Factory and Leap which should reject such requests due to
staging process.
2018-06-28 12:14:19 -05:00
Jimmy Berry
6092ff55c8 check_source: override rename project setting for maintenance_incident. 2018-06-28 12:11:24 -05:00
Jimmy Berry
bfcc1ddf86 check_source: rework rename check to allow for suffixed :Update packages.
Exact name matching is thus always enforced for projects requiring devel
project enforcement (ie. Factory), but relaxed to compare without suffix
for packages coming from an :Update project.
2018-06-28 12:10:19 -05:00
Ludwig Nussel
d372c5132c
Merge pull request #1466 from jberry-suse/check_source-default-handler
check_source: make use of ReviewBot request_default_return.
2018-03-19 16:35:16 +01:00
Jimmy Berry
60a9e7decb check_source: make use of ReviewBot request_default_return. 2018-03-16 14:21:41 -05:00
Jimmy Berry
42139de4d6 check_source: delete: place maintainer review check behind ignore_devel.
SLE does not utilize devel projects and so adding such reviewer does not
make sense. Additionally, for Leap the right review will depend on origin
which leaper handles.
2018-03-16 14:11:12 -05:00
Jimmy Berry
a7e36b03f7 check_source: provide in-air-rename-allow config setting. 2018-03-16 14:09:02 -05:00
Sebastian Riedel
d991c97a6c check_source: skip all checks for 00* packages 2018-03-15 16:04:38 +01:00
Ludwig Nussel
d66ea3a0b2 check_source: make adding review team configurable 2018-03-09 14:34:42 +01:00
Ludwig Nussel
31b35832d7 check_source: fix boolean option 2018-03-09 13:50:08 +01:00
Oliver Kurz
110c729fc8 check_source: add hint about how to whitelist a devel projects.
Output looks like this:
[I] 559982 declined: home:XRevan86:non-free is not a devel project of
openSUSE:Factory:NonFree, submit the package to a devel project first. See
https://en.opensuse.org/openSUSE:How_to_contribute_to_Factory#How_to_request_a_new_devel_project
for details
2018-01-25 18:04:39 -06:00