61 Commits

Author SHA1 Message Date
Dirk Müller
730630f06f
Use f-strings where possible 2024-05-07 21:52:32 +02:00
Stephan Kulow
529d1dafae Target E302 - add two comment lines before class 2022-02-18 17:15:48 +01:00
Stephan Kulow
52dbb52b7f
Merge pull request #2703 from coolo/drop_etree
Harmonize imports on using lxml for XML parsing
2022-02-18 12:50:18 +01:00
Stephan Kulow
e52dc6ce2b Harmonize imports on using lxml for XML parsing 2022-02-18 11:16:01 +01:00
Stephan Kulow
177a654eb1 Remove --by-develproject for adi command
It's pointless by now as we have no project that uses devel projects
and would accept submissions not coming from there

Fixes #1366 (kindof)
2022-02-17 12:04:25 +01:00
a7bb286bd4
adi: stage Non-Ring delete requests in adi projects
This is now acceptable as the installcheck bot verifies that we
cannot remove binaries we still care for.
2021-02-23 14:59:28 +01:00
Stephan Kulow
b60333075a Delete adi projects whenever we'd build disable them 2019-12-06 07:35:38 +01:00
Stephan Kulow
15b6634ca4 No longer close acceptable adi stagings
This is merely an experiment to shorten the time that packages end up
in ready lane
2019-12-04 16:21:27 +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
529c5623a6 Remove nonfree handling
Prepare NonFree as onlyadi project, so it can have its own staging workflow
2019-11-21 14:49:29 +01:00
Stephan Kulow
d126c8a357 Fix for reviews (OBS issue is fixed) 2019-11-19 15:53:47 +01:00
28ec31df5d adi_command: another adi command fixes (#3)
Fix TypeError: 'str' object cannot be interpreted as an integer problem
2019-11-19 12:38:54 +01:00
Stephan Kulow
841b96f649 Fix adi command for checks 2019-11-19 08:04:11 +01:00
Stephan Kulow
b91cc995dd Fixes for adi command 2019-11-19 08:04:11 +01:00
Stephan Kulow
84fd391e3e Started to fix the adi command 2019-11-19 08:04:11 +01:00
Stephan Kulow
b6e68f81e9 Work on adi command 2019-11-19 08:04:10 +01:00
Stephan Kulow
dd9b7ec84f Remove update comments - are now obs history 2019-11-19 08:04:10 +01:00
Stephan Kulow
ae5ccf31d4 Fix adi command if there are actually checks 2019-03-08 21:55:09 +01:00
Stephan Kulow
578d0a7ddc Block adi command from accepting if checks aren't succeeding 2019-03-07 20:03:06 +01:00
Stephan Kulow
7ad0bb5e06 adi: Fix format for untracked requests
Fixes #1776
2018-11-09 08:28:35 +01:00
Stephan Kulow
9b4b0ed15a Begin porting to python3 (osc branch) 2018-05-14 11:04:39 +02:00
2d13b11783 adi: place :NonFree requests in separate adi with :NonFree path. 2018-01-31 01:34:00 -06:00
1cec490d54 White space / consistent usage of spaces / indentation of 4 fixes 2017-10-20 00:58:05 +02:00
3cf49d9556 Python 2.6+ / 3.x style except clauses
This newer style except statement allows for compatibility with
Python 3.x and does not harm on python 2.6+.
2017-10-16 22:47:58 +02:00
9f34c26540 adi_command: do not checking adi staging status if there is no selected_requests
Wihtout selected_requests then that adi staging project is an empty project,
adi command should clean it up rather than go through the logic to check the
project status. Since we have introduced a kind of frozenlinks adi staging,
the project status might be build broken or so but it doesn't have any request
staged in that staging actually, those kind of projects must be deleted.
2017-09-26 17:06:25 +08:00
Jimmy Berry
8d6251c6f5 osclib/adi: include force=True when invoking delete_project().
If users build against an adi project OBS will refuse to delete, but in
that case breaking other projects is fine as the branches should only be
used to work on fixes seen in adi stagings.

See #1142 for an example, details, and discussion.
2017-09-20 08:05:17 -05:00
Ludwig Nussel
8cbb51891d Use configured staging group for adi 2017-08-24 12:01:13 +02:00
Ludwig Nussel
692bdc7b31 Ignore failures to delete adi's
If someone branched the ADI we are not able to delete it. Just ignore that.
2017-07-07 16:06:45 +02:00
6511997d29 Use frozenlinks for submission from the specific project 2017-06-30 18:28:46 +08:00
Jimmy Berry
22ec112225 list & adi: share common stagingapi.ignore_format(). 2017-04-28 10:21:50 -05:00
Jimmy Berry
9f84a7c321 supersede: colorize. 2017-04-27 16:33:04 -05:00
Jimmy Berry
448c88a56e supersede: include ignore and decline in output. 2017-04-27 15:35:26 -05:00
Jimmy Berry
a4432aefff list & adi: remove sr# prefix from request IDs to ease copy/paste. 2017-04-26 11:59:40 -05:00
Jimmy Berry
fb25b7a044 osc-staging: implement colorization using colorama for adi and list. 2017-04-26 11:59:38 -05:00
Jimmy Berry
f9c78a6638 adi: create accept comment to be consistent with letter stagings. 2017-03-28 23:02:38 -05:00
Jimmy Berry
7b6ead4047 adi: utilize extract_staging_short() and project_status(). 2017-03-16 22:13:55 -05:00
Jimmy Berry
a6d7716eb0 osclib: wrap ignored request reason with str() to handle None. 2017-03-03 14:57:16 -06:00
9a322d712e adi: Do not update status comment per request but project 2017-02-13 18:11:20 +08:00
Jimmy Berry
997f929ad4 adi: map wanted_requests to str() before passing to splitter. 2017-02-10 10:05:38 -06:00
Jimmy Berry
f42358eaad request_splitter: move @devel_project to action/target.
With the source no longer being checked for devel project and the fact
that delete requests and such will not have source, but make sense to
have a devel project moving to target makes more sense.
2017-02-01 08:09:01 -06:00
Jimmy Berry
69f662685c Add RequestSplitter for common filtering and grouping or requests.
- re-implement list and adi commands using RequestSplitter
- numerous small cleanups and clarity improvements
- notably, adi now prints similar output to select when adding requests
- lxml is needed to provide more fully-featured xpath implementation
2017-01-24 22:21:10 -06:00
Jimmy Berry
b25fda9b47 Provide ignore/unignore request staging commands.
It is not uncommon for a request to be in a pending state which requires
action beyond the scope of the staging workflow, but does not make sense
to deny the request. For lack of a "postponed" or "pending" state on OBS
a sudo-state of "ignore" is provided for the staging workflow. The ignore
state will remove a request from the "list" and "adi" commands so as not
to be accidentally staged. This avoids the need for keeping a context of
what requests should be ignored in one's memory.

It is expected that an ignored request will have comments reflecting what
is to be done or one should be added via the -m option of ignore command.
2017-01-11 18:32:23 -06:00
Jimmy Berry
f75e9bdaf3 adi_command: whitespace cleanup.
Tabs vs spaces is even scarier in python.
2016-12-29 16:27:11 -06:00
Ludwig Nussel
7ec1c1955b Improve adi list output 2016-12-06 12:59:47 +01:00
Ludwig Nussel
4c43fe5c87 Group staging list by devel project 2016-06-07 15:12:02 +02:00
Ludwig Nussel
7970a01c28 Don't die on packages that don't exist in Factory 2016-06-07 15:11:26 +02:00
340aa5323c Small fixes 2016-05-31 14:25:51 +08:00
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
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
73da5dd402 Use number instead of id for id->number switch issue 2016-05-03 21:29:32 +08:00