Stephan Kulow
6823ccfff0
Fix supersede: we need to unstage always with new api
2019-11-19 20:19:25 +01:00
Stephan Kulow
d126c8a357
Fix for reviews (OBS issue is fixed)
2019-11-19 15:53:47 +01:00
Stephan Kulow
ffe92526fa
Fix rebuild command
2019-11-19 12:57:13 +01:00
Stephan Kulow
ac2ff9c2cb
Fix for ignore command
2019-11-19 08:04:11 +01:00
Stephan Kulow
920c9bb669
Fix request list: the API was changed not to require status for obsolete
2019-11-19 08:04:11 +01:00
Stephan Kulow
2f5354b09d
Fix for unselect command
2019-11-19 08:04:11 +01:00
Stephan Kulow
26772ff058
Optimize request_id_for_package
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
1ca260e663
Fix for status checks in check command
2019-11-19 08:04:11 +01:00
Stephan Kulow
82c64003c4
Adopt to the new staging_projects api not revealing all infos
2019-11-19 08:04:11 +01:00
Stephan Kulow
61205d35e3
Some fixes for supersede and unselect
...
the API changed to /requests
2019-11-19 08:04:11 +01:00
Stephan Kulow
6d60067f06
Fix for unselect
2019-11-19 08:04:10 +01:00
Stephan Kulow
18e4675791
Fix select command
2019-11-19 08:04:10 +01:00
Stephan Kulow
b6e68f81e9
Work on adi command
2019-11-19 08:04:10 +01:00
Stephan Kulow
4921751ef2
Work on select command
2019-11-19 08:04:10 +01:00
Stephan Kulow
63ccac76d5
Work on accept command - not yet done
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
b43e9930ac
Port unselect command to new API
2019-11-19 08:04:10 +01:00
Stephan Kulow
f5df59bfdf
Adopt check command to the new staging API
2019-11-19 08:04:10 +01:00
Stephan Kulow
b34f4665e0
Register new adi projects
2019-11-19 08:04:09 +01:00
3f8e30931a
adi: build kiwi images in a /images repository
2019-10-15 10:48:54 +02:00
Jimmy Berry
88d83de9b1
osclib/stagingapi: rebuild_check(): utilize -4096 offset for build log.
...
Avoids streaming huge log files when only the end is needed.
2019-09-24 08:40:16 -05:00
Jimmy Berry
c8663d83af
osclib/stagingapi: buildlog_get(): support negative offset.
...
Derive real offset from log size determined via additional API call.
2019-09-24 08:39:27 -05:00
Stephan Kulow
dc77a5f227
Remove --add from select command
...
Fixes #754
2019-06-03 16:54:30 +02:00
Stephan Kulow
5b062c5752
Fix inner-staging links to use cicount=copy
...
We need to keep the cicount in sync for the kernel as kernel-syms
requires kernel-default of kernel-source
2019-06-02 14:08:17 +02:00
Stephan Kulow
a9eab93004
Fix support for multiple spec files
...
Right after commit of a package into a staging project, it can happen
that OBS replies to GET with 'service in progress' and then we don't
get a file list. As we ignored that exception, we did not create the
other spec files.
Now enhance retried_GET to look for this condition and retry this as
well, so we get reliable package list.
2019-05-31 15:43:18 +02:00
Stephan Kulow
8d26d0dec6
Do not crash on packages without spec file
2019-05-29 20:59:13 +02:00
Stephan Kulow
b32cbd7d63
Fix staging rebuild on python3
2019-05-29 06:57:13 +02:00
acc0ffc385
osclib: make source_file_load() always return string
...
Makes sense always return string from source_file_load(), this
preventing potentially TypeError on python3. Also changed product file
loading, now source_file_load() used.
2019-05-15 19:34:05 +08:00
Stephan Kulow
d57ba61df5
Remove more references to vcr
...
I tried to replace the Mocking of functions with httpretty, but
unfortunately httpretty replaces all other API calls with 404s then.
What we'd need is a library sniping out single requests - possibly
by mocking the http_GET function, but that's tricky as well with
caching already overwriting it
2019-05-11 10:26:35 +02:00
Stephan Kulow
aa70305aa2
Fix delete requests with multiple spec files
...
First gather the links and then wipe - or it will always be empty
2019-05-06 21:36:18 +02:00
Stephan Kulow
bb23be210b
For consistency reasons always link the sub packages we're selecting
...
So far we skipped links between packages in the same ring because we've
frozen a _link pointing from one to the other, but this does not work
with default OBS and creates quite some problems also in adi projects
where it's trying to be smart.
Now simplify this a lot by simply linking it in any case
2019-05-06 21:36:18 +02:00
Stephan Kulow
8a7b65d505
Remove fake OBS in favor of using generated test data
2019-05-04 15:44:39 +02:00
Stephan Kulow
0693c88977
Fix crash on staging project without flag section
2019-05-04 15:44:39 +02:00
082d37e36f
Improve error msg that the project was not frozen
...
This change is trying to provide user more information
in case that he already froze project but date of last
freeze was not updated, since there were no changes for
last MAX_FROZEN_AGE days.
* Use osclib.freeze_command.MAX_FROZEN_AGE constant
* Avoid explicit proposal of --no-freeze bug suggest alternative
2019-04-12 13:48:51 +02:00
Jimmy Berry
5f0f3f498a
osc-staging: exclude NonFree requests from staging proposals.
...
- NonFree delete requests are never staged.
- NonFree submit requests are handled by adi command.
2019-03-28 09:54:24 -05:00
Stephan Kulow
e48e0b4750
Fix compat with pyYaml 5.1
...
the changed the output style default from None to False
Fixes #1908
2019-03-20 08:08:26 +01:00
Stephan Kulow
a13930afd4
Merge pull request #1906 from jberry-suse/yaml-safe-load
...
Replace deprecated (and not advised) yaml.load() with yaml.safe_load().
2019-03-20 06:32:48 +01:00
Jimmy Berry
78bfdb872f
Replace deprecated (and not advised) yaml.load() with yaml.safe_load().
2019-03-19 17:13:11 -05:00
Stephan Kulow
d40e1b0722
Add all checks from staging-required-checks-adi to main repo of adi projects
...
For Factory I want to switch away from repo checker reviews, but a required
check on project level. So first step: make it required for adi projects.
2019-03-07 17:07:39 +01: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
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
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
24ae4ba819
Port more code to run under python3
...
(python2 compat kept)
2018-11-16 08:14:56 +01:00
Stephan Kulow
fd468e2c9c
Do not crash on staging projects without status (gcc7)
2018-11-11 19:42:08 +01:00
Stephan Kulow
e97be1a445
Remove map_ring_package_to_subject - it always return project
...
(this was more advanced when we had more subprojects)
2018-11-08 17:30:12 +01:00
Stephan Kulow
7a3b86fed1
No longer build disable on selecting non-ring packages to letter prjs
...
This is no longer needed as we only have one subproject per staging
2018-11-08 17:28:18 +01:00
Jimmy Berry
4c8ade1a93
flake8: utilize raw strings to avoid invalid escape character warnings.
2018-10-24 16:34:16 -05:00