1045 Commits

Author SHA1 Message Date
Jimmy Berry
eb3acd80f6 osclib/origin: provide origin management functions. 2019-02-15 14:16:23 -06:00
Jimmy Berry
44f5ab7234 osclib/util: project_version(): return 0 instead of None for invalid project.
This allows for lists with invalid projects to still be sorted which is
generally desired since other means validate the results.
2019-02-15 14:16:23 -06:00
Jimmy Berry
e686cb19cc osclib/util: provide project_list_family_prior_pattern(). 2019-02-15 14:16:23 -06:00
Jimmy Berry
5f15314f33 osclib/util: project_list_family_prior(): provide include_updates option. 2019-02-15 14:16:23 -06:00
Jimmy Berry
087c1b0b8b osclib/util: project_list_family(): cache via memoize. 2019-02-15 14:16:23 -06:00
Jimmy Berry
f13899e393 osclib/util: project_list_family(): provide include_update option. 2019-02-15 14:16:23 -06:00
Jimmy Berry
2ca2f4e875 osclib/util: project_list_family(): handle :NonFree suffix. 2019-02-15 14:16:23 -06:00
Jimmy Berry
8196c34fbe osclib/cache: handle repetative package_source_hash_history() calls. 2019-02-15 14:16:23 -06:00
Jimmy Berry
830bce9944 osclib/conf: properly load config for innerconnect projects. 2019-02-15 14:16:23 -06:00
Jimmy Berry
74f9b3ca16 osclib/core: provide request_remote_identifier() for printable identifier. 2019-02-15 14:16:23 -06:00
Jimmy Berry
bbf75db194 osclib/core: provide issue_tracker*() functions. 2019-02-15 14:16:23 -06:00
Jimmy Berry
1073580282 osclib/core: provide review_*() functions for summarizing review state. 2019-02-15 14:16:23 -06:00
Jimmy Berry
eb5c137897 osclib/core: provide project_remote_*() functions for innerconnect projects. 2019-02-15 14:16:23 -06:00
Jimmy Berry
cc5e64d50b osclib/core: provide package_source_hash*() functions. 2019-02-15 14:16:23 -06:00
Jimmy Berry
e13b5831d3 osclib/core: provide entity_source_link(). 2019-02-15 14:16:23 -06:00
Jimmy Berry
45d29888a9 osclib/conf: add repo-checker key since it does review :Update requests. 2019-02-15 14:16:23 -06:00
Jimmy Berry
249491d6f6 osclib/core: provide entity_exists() and use in StagingAPI.item_exists(). 2019-02-15 14:16:08 -06:00
Stephan Kulow
3cd79db206 repo_checker: Simplify cycle check
No longer compare against the target project's cycle, but just against
a configured list of package names. This way we're not bound to
refreezing stagings if we reduced cycles and it's clearer to the
operator what happens and how to react to it.
2019-02-11 09:02:29 +01:00
Jimmy Berry
3e8a85d9c3 osclib/list_command: 24ae4ba81 broke formatting.
The author was attempting to port for python3, but changed the meaning:

- print ' ', line
+ print(' ' + line)

The first prints "  $line", while the second:
                 " $line".

This changes console output from:

science
 666254 libArcus-lulzbot               -> delete       (delete request)
         3 more users

back to:

science
  666254 libArcus-lulzbot               -> delete       (delete request)
         3 more users

(ignore lines up and standard double space indent used)
2019-02-08 09:36:16 -06:00
Stephan Kulow
3b3ccab783 Expand all repositories but ignore archs with 404 2019-02-06 06:30:51 +01:00
Ludwig Nussel
6ed0e7bfb5 conf: use backports-reviewers for backports 2019-02-04 16:05:14 +01:00
be05e42da8 accept_command: no longer need to triggering product converter service 2019-01-24 17:49:31 +08:00
Stephan Kulow
b4dd97da3d Moved the nocleanup-packages setting into remote config
It shouldn't matter which branch of the tools are installed
2019-01-17 15:06:28 +01:00
Stephan Kulow
8351d2e677 pkglistgen: Move suggested from global to package level
There is no product that wants all suggests for all products on all groups,
so the only product left that wants to have suggests is Tumbleweed for the DVD
pattern

To solve the suggests we run a global transaction on the
result + its suggests to determine packageand supplements.
To avoid problems (in general) we discard obsolete and conflicts
in packages - so we can have product groups with conflicting packages
and still get the additional supplements
2019-01-17 14:35:17 +01:00
2ae694a912 accept_command: add additional version number to OSRT:ProductVersion 2019-01-15 19:46:57 +08:00
32a88ccddb check_duplicate_binaries: set arch key to string instead of the list 2018-12-18 18:50:43 +08:00
Stephan Kulow
53595a24bf droplist: Ignore Leap:15.1 for Leap:15.1:ARM
The heuristic calculating the product family doesn't really work
for ports, so give the tool some hints in the config. And as 15.1
doesn't have a baseurl yet, we need to give 15.0 one specifically.
2018-12-04 07:42:33 +01:00
Stephan Kulow
5da698c8af Do not generate drop list for leap:15.1:arm at the moment
I moved the baseurl into the remote config so that Dirk can enable it
when the repo was published
2018-12-04 07:03:11 +01:00
Stephan Kulow
ee72a3efb0 No longer default to all scopes but make it configurable
By default only generate the pkglists for the target project, only
for leap we configure rings and stagings as additional scopes to look
at
2018-12-04 04:43:18 +01:00
Stephan Kulow
c31c259530 Also remove 'arm' scope 2018-12-03 19:36:17 +01:00
Jimmy Berry
5ffaf618b0 osclib/cache: remove double comment introduced in #1802. 2018-11-28 19:11:03 -06:00
86732dc472 ttm: add minimal staging config for pseudometa package
The config default for pseudometa package (00Meta) does not
exist for Tumbleweed, so we need to add an override for :ARM
to contain the proper information so that the publishing
logic doesn't stop. Also update correspondingly for Leap
2018-11-26 10:51:51 +01:00
97e0dec9fb Disable caching project _meta
latest_updated is broken for _meta:
https://github.com/openSUSE/open-build-service/issues/6323
2018-11-21 11:48:57 +01:00
Stephan Kulow
1714c582f6
Merge pull request #1791 from jberry-suse/staging-report-check-pending
staging-report: ignore projects not in a final state.
2018-11-19 11:33:52 +01:00
7433149ab3 stagingapi: No longer build disable to sub packages 2018-11-19 14:23:44 +08:00
Jimmy Berry
9b667e759e osclib/stagingapi: provide project_status_final(). 2018-11-16 13:33:31 -06:00
Stephan Kulow
416172c325
Merge pull request #1790 from coolo/use_stringio_for_config
Checked with aplanas: using stringio is preferred
2018-11-16 18:20:31 +01:00
Stephan Kulow
db81c0bbf7 Checked with aplanas: using stringio is preferred 2018-11-16 15:03:40 +01:00
lethliel
dbf4b69a28 In some cases the return value of yaml.load(description_text)
can be a string containing 'none'.

This will be fetched with isinstance(data, str)
2018-11-16 14:30:13 +01:00
Stephan Kulow
ea9061ccf5 Import urllib2 python agnostic 2018-11-16 09:01:45 +01:00
Stephan Kulow
ac7b288e74 Store data as binary in the cache 2018-11-16 08:56:36 +01:00
Stephan Kulow
fa7be820c9 Remove the reduce call the brute force way
reduce() is no longer part of python core, but we don't
need it actually - since we use remote configs, we have
no more required settings (otherwise we put them in remote).

And to quote the python docu as I found it interestingly
proving my own impression of this code:

> Removed reduce(). Use functools.reduce() if you really need it;
  however, 99 percent of the time an explicit for loop is more readable.
2018-11-16 08:56:18 +01:00
Stephan Kulow
159c672cf1 basestring is gone - in favor or str (which also works for python2) 2018-11-16 08:56:10 +01:00
Stephan Kulow
24ae4ba819 Port more code to run under python3
(python2 compat kept)
2018-11-16 08:14:56 +01:00
Stephan Kulow
7014285550
Merge pull request #1767 from coolo/fix_check_command
Support OBS checks instead of openqa
2018-11-13 06:59:49 +01:00
Stephan Kulow
fd468e2c9c Do not crash on staging projects without status (gcc7) 2018-11-11 19:42:08 +01:00
Stephan Kulow
e1711a2812 Support OBS checks instead of openqa
Updated the test fixtures to current state, so we
don't test on old data
2018-11-11 19:42:08 +01:00
Stephan Kulow
2a9183f2b8
Merge pull request #1777 from coolo/dont_cache_attributes
Reduce cache time of attributes
2018-11-10 11:13:24 +01:00
Stephan Kulow
fa1c5c56e2 Caching attributes is not worth it and creates problems
Especially caching the lockedby attribute makes it basically
impossible to work with multiple persons
2018-11-10 10:06:13 +01:00
Stephan Kulow
3310ec0c63
Merge pull request #1780 from jberry-suse/staging-report
openqa-comments: rework openQA report as status check report (and thus rename as well)
2018-11-10 08:35:35 +01:00