Bug 760924 - koji: print error and warning messages to stderr
Summary: koji: print error and warning messages to stderr
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: koji
Version: 26
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
Assignee: Mike McLean
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-07 11:09 UTC by Tomas Hoger
Modified: 2017-11-01 19:54 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-11-01 19:54:22 UTC
Type: ---


Attachments (Terms of Use)

Description Tomas Hoger 2011-12-07 11:09:59 UTC
Description of problem:
koji client currently prints error and warning messages to stdout rather than stderr.  This makes them hard to spot if its output is redirected (e.g. for further processing in a script).

$ koji list-tagged nosuchtag
GenericError: No such entry in table tag: nosuchtag

$ koji list-tagged nosuchtag > /dev/null
$

Please consider making errors and warnings go to stderr.

Version-Release number of selected component (if applicable):
koji-1.6.0-2.fc15

Comment 1 Fedora Admin XMLRPC Client 2012-01-31 12:01:44 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora End Of Life 2013-01-16 13:15:53 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 3 Tomas Hoger 2013-01-16 13:29:39 UTC
Confirmed with koji-1.7.1-1.fc17.  F18 has the same version, bumping BZ version to 18.

Note that following warning goes to stderr:
  Warning: the pkgurl option is obsolete

Comment 4 Richard W.M. Jones 2013-09-18 20:37:11 UTC
Also with F20.

There are many places where 'koji' does not do the right thing, and
therefore is much harder to automate than it should be.  One example:

$ koji buildinfo supermin-4.1.5-1.fc21
BUILD: supermin-4.1.5-1.fc21 [462666]
State: COMPLETE
[etc]
$ echo $?
0

$ koji buildinfo supermin-4.1.99-1.fc21
No such build: supermin-4.1.99-1.fc21
$ echo $?
0

$ koji buildinfo supermin-4.1.99-1.fc21 >/dev/null

[no output from last command]

Exit status should always be set correctly, and errors should
only be sent to stderr.

Comment 5 Jan Kurik 2015-07-15 15:12:17 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23

Comment 6 Fedora Admin XMLRPC Client 2016-03-10 14:45:32 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Fedora End Of Life 2016-11-24 10:35:43 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 8 Fedora End Of Life 2017-02-28 09:30:22 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 26 development cycle.
Changing version to '26'.

Comment 9 Pavel Raiskup 2017-10-25 05:34:32 UTC
Similarly:
$ koji mock-config --target f26-candidate > f-26-x86_64.cfg
$ echo $?
1
$ cat f-26-x86_64.cfg
Please specify an arch

Comment 10 Mike McLean 2017-11-01 19:54:22 UTC
Filed upstream: https://pagure.io/koji/issue/671


Note You need to log in before you can comment on or make changes to this bug.