632 Commits

Author SHA1 Message Date
e8c55026ed Add --split argument to adi command
With --split argument, staging adi command can splits each package to
different adi staging project, the argument can work by 'osc staging adi
--split' or 'osc staging adi --move --split'. Note that, it will be
ignore --by-develproject argument too.
2016-05-31 14:25:51 +08:00
232673bd1f Also update product version in Staging1 TestDVD 2016-05-24 14:43:48 +08:00
Ludwig Nussel
84ba41de31 Merge pull request #499 from nilxam/adi_by_dp_leap
Update by_dp function in adi command
2016-05-12 11:25:15 +02:00
Ludwig Nussel
28831300fc Defer initialization of ring packages
some users of the staging api don't need to access rings, so defer
initialization to first use.
2016-05-09 17:32:40 +02:00
85cafb7316 Update by_dp function in adi command
Update by_dp function in adi command, the old way is incompatible to
newer Leap development model, now we should try to check target package
in Factory as well, otherwise the submission from any other place than
Factory did not have 'devel' entry in _meta.
2016-05-09 15:02:10 +08:00
Alberto Planas
5732cd993a conf: allows subprojects in the regex. 2016-05-04 14:39:42 +02:00
73da5dd402 Use number instead of id for id->number switch issue 2016-05-03 21:29:32 +08:00
dfb4f959fa Ugly workaround for glibc.i686 package config
Workaround glibc.i686 package config, it had a topadd block in _link,
and looks like it causes the disturl won't consistently with glibc even
with the same srcmd5. And the lastsuccess state will be outdated if the
revision is used the same srcmd5.

Note: the proper workaround, to instead of
5daf2bb6509abaf966268c9d6b13aa4e330a8af3
2016-04-21 20:12:10 +08:00
87d4fa5f09 Revert "Ugly workaround for glibc.i686 package config"
This reverts commit 5daf2bb6509abaf966268c9d6b13aa4e330a8af3.
2016-04-21 20:09:25 +08:00
5daf2bb650 Ugly workaround for glibc.i686 package config
Workaround glibc.i686 package config, it had a topadd block in _link,
and looks like it causes the disturl won't consistently with glibc even
with the same srcmd5. And the lastsuccess state will be outdated if the
revision is used the same srcmd5.
2016-04-21 18:30:56 +08:00
fb7f304edd Add glibc.i686 to specs if its glibc request
Add glibc.i686 to specs if its glibc request, therefore, repochecker
will not ignore glibc.i686 binaries in case some binaries need them.
Also ignore build_excluded if it's i686 only package, and downloading
it's i586 packages.
2016-04-21 18:30:56 +08:00
b9c98afa34 More sensible output in check_disturl()
More sensible output in check_disturl(). And changed the output flag to
WARNING than DECLINED as it did not really decline the request.
2016-04-20 17:32:26 +08:00
518586506d Output the additional message if the request is outdated in the devel project
The additional message will look more clear than telling it's bad
disturl and no matching downloads available. Note that, before executing
in check_disturl(), there is another place to check the revision which
was in check_specs(), but it was mainly for 2nd spec.

And makes DECLINED message consistently.
2016-04-19 21:52:31 +08:00
374d472ecb New staging repair command
Mainly fix the request review if the request got reopened.
2016-04-18 21:55:51 +08:00
8c6ef7ff80 repochecker: Adjust the decline message for missing binaries
Some users are confused as the old message "package never built" does
not have to be true in many cases, especially on longer-lasting
stagings. In this case, the binaries might have been built but have
since been replaced by newer ones - the effect is the same: repo-checker
can't receive them in order to perform the full checks.
2016-04-12 11:15:39 +02:00
85674b31c5 Show package also in adi command 2016-04-11 13:53:23 +08:00
8fa6783c3f Do not check totest on SLE
If release-notes-sles is existed then it is not openSUSE Factory but
SLE, hence do not check totest and openSUSE-release.rpm on it.

And add try/except protection in get_binary_version otherwise it will
crashes in case the package is not existed.
2016-03-25 18:55:36 +08:00
2c5e84b2b3 Fixes previous commit 2016-03-23 18:11:48 +08:00
128d97ba5f Add the possible repo candidates
Add the possible repo candidates to repos_to_check, those candidates
need to have binaries for check.
2016-03-23 17:44:20 +08:00
806fb3e158 Check the common Factory build repository only
Adding the common Factory build repository to the candidate repos only,
adn re-introduced build_excluded attribute. If it haven't good repo ie.
builds against ARM, PPC, images, i586 only or whatever, leave them there
for human to check.

Verified with SR#359327, SR#360767, SR#361364 and SR#361243.
2016-02-25 22:58:13 +08:00
e8fac472da Need to care about unknown status 2016-02-25 02:59:11 +08:00
3fb42d1385 Do not count excluded repository as good repo
Fix https://progress.opensuse.org/issues/10888
2016-02-24 19:56:31 +08:00
9a03a60f62 Fix PUT data never send 2016-02-18 18:25:51 +08:00
Ludwig Nussel
34b6e1da89 Merge pull request #460 from DimStar77/unselect-better-msg
unselect: Do not state we accepted the request, but give a better mes…
2016-02-16 15:43:53 +01:00
73c0050fbd unselect: Do not state we accepted the request, but give a better message 2016-02-10 11:04:39 +01:00
Ludwig Nussel
8c53f9f8f0 don't use recursive retry
don't use recursion and don't hammer server
2016-02-05 16:26:16 +01:00
Ludwig Nussel
322a41b465 add locking options for SLE 2016-02-01 16:35:59 +01:00
Ludwig Nussel
11b25be352 Merge pull request #444 from DimStar77/accept-ready_check
staging accept: check if /totest is properly synced before changing /…
2015-12-21 16:29:05 +01:00
ce218979c4 staging accept: check if /totest is properly synced before changing /standard 2015-11-30 11:22:50 +01:00
37af83e927 Check subproject is exist before delete package
It's workaound for https://progress.opensuse.org/issues/9646, suppose it
is adi staging in case current project doesn't have ":DVD" subproject,
and the package is exist in current project.
2015-11-24 19:36:04 +08:00
0daad0fd1c auto-superseding in adi command 2015-11-19 20:23:10 +08:00
25f55b33ee fixing wrong cast while add to srs 2015-10-14 17:38:09 +08:00
Stephan Kulow
4afc30ffc0 fix request casting
the error wants strings, but the cast is happening to early
2015-10-04 10:38:56 +02:00
a3f59150af Do not superseding requests with list command
Do not superseding requests with list command, but if had the permission
of staging, can executing with --supersede argument, or even against
specific requests.
2015-10-01 19:59:40 +08:00
Stephan Kulow
51ad423ec0 fetch crash 2015-09-30 05:47:53 +02:00
dc5e797df1 list all deletereq request as in-ring 2015-09-09 16:18:20 +08:00
3cf6c7c55f do not process the rest request type than submit in adi 2015-09-09 15:26:05 +08:00
62a1946064 split the view for change_devel requests 2015-09-09 15:11:47 +08:00
Stephan Kulow
a3259f56e0 Merge pull request #407 from openSUSE/retry
retry 5xx - especially needed for view=info calls
2015-08-30 18:20:08 +02:00
Stephan Kulow
dccb5d39c4 avoid division for 5XX 2015-08-30 17:00:21 +02:00
Alberto Planas
c91baf7622 Restore the build status in the freeze command. 2015-08-28 14:49:47 +02:00
Alberto Planas
f0cb13e9b9 Add method to recover status of a flag in _meta 2015-08-28 14:49:15 +02:00
Alberto Planas
122b43e304 Detect OBS fails and improve the error messaging. 2015-08-28 12:58:02 +02:00
Alberto Planas
f5e1d88dcf Use better parameter name. 2015-08-28 10:46:04 +02:00
fa6f508883 Add --by-develproject argument to adi command
If with --by-develproject, adi command will check devel project of
source package before selecting requests to adi staging.
2015-08-27 20:38:16 +08:00
Stephan Kulow
16c9e16cdb support --move in adi - create a new adi for the given arguments 2015-08-25 07:12:08 +02:00
4603bee62c adi_command: only run create_new_adi() if the user has permission to do so (based on group membership) 2015-08-06 15:54:57 +02:00
69e1771a11 API: add a is_user_member_of() function 2015-08-06 15:54:56 +02:00
Stephan Kulow
3626a795a4 Merge pull request #378 from aplanas/master
Memoize get_prj_pseudometa results
2015-08-05 10:28:55 +02:00
Alberto Planas
d7f445264f Memoize get_prj_pseudometa and invalidate in set_prj_pseudometa 2015-08-03 13:21:44 +02:00