Bug 748163

Summary: Add Compiler Error and Warning count, and filename to build command feedback
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: CSProcessorAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: jwulf, lcarlon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 0.15.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-22 02:58:31 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 751251    

Description Joshua Wulf 2011-10-22 16:55:49 UTC
So:

[jwulf@gaura Zanata topicized]$ skynet build 1
Skynet client version: 9.0
Loading configuration from /home/jwulf/.config/skynet.ini
Web Service at http://localhost:8080/ version: 9.0

INFO: Content Specification built with 3 Errors and 2 Warnings
INFO: Output saved as Zanata-Quickstart.zip

or

[jwulf@gaura Zanata topicized]$ skynet build 1
Skynet client version: 9.0
Loading configuration from /home/jwulf/.config/skynet.ini
Web Service at http://localhost:8080/ version: 9.0

INFO: Content Specification built with 0 Errors and 0 Warnings - Flawless Victory!
INFO: Output saved as Zanata-Quickstart.zip

Comment 1 Lee Newson 2011-10-24 03:30:22 UTC
Done.

New output when not overwriting existing files:

[lee@dhcp-1-77 ~]$ skynet build 311
Skynet client version: 10.0
Loading configuration from /home/lee/.config/skynet.ini
Web Service at http://localhost:8080/ version: 10.0

/home/lee/Zanata_Quickstart.zip already exists! Overwrite existing file (y/n)? n
INFO: Content Specification successfully built with 22 Errors and 0 Warnings!

And when you do overwrite (or the file doesn't initially exist):

[lee@dhcp-1-77 ~]$ skynet build 311
Skynet client version: 10.0
Loading configuration from /home/lee/.config/skynet.ini
Web Service at http://localhost:8080/ version: 10.0

/home/lee/Zanata_Quickstart.zip already exists! Overwrite existing file (y/n)? y
INFO: Content Specification successfully built with 22 Errors and 0 Warnings!
INFO: Output saved to: /home/lee/Zanata_Quickstart.zip

And when their are no errors/warnings:

[lee@dhcp-1-77 ~]$ skynet build 311
Skynet client version: 10.0
Loading configuration from /home/lee/.config/skynet.ini
Web Service at http://localhost:8080/ version: 9.0

/home/lee/Zanata_Quickstart.zip already exists! Overwrite existing file (y/n)? y
INFO: Content Specification successfully built with 0 Errors and 0 Warnings!
INFO: Output saved to: /home/lee/Zanata_Quickstart.zip

Comment 2 Joshua Wulf 2011-11-04 10:07:58 UTC
Great. Works well and looks good.

One small thing - can we remove the exclamation mark? That should only be used when the user *must* pay attention to a message. In this case the user can safely ignore the message, which is informational only. In that case the exclamation point should not used (otherwise you have nowhere to go when you do need to dial it up to 11)

Up to you if you target 0.15.0 or 0.14.1.

Comment 3 Lee Newson 2011-11-07 05:11:41 UTC
Okay removed the exclamation mark on that message and a few others. I also added in the "- Flawless Victory!" message on a successful build.

Comment 4 Joshua Wulf 2012-02-22 02:58:31 UTC
Verified in


CSProcessor client version: 0.17.0
Web Service at http://csprocessor.cloud.lab.eng.bne.redhat.com:8080/ version: 0.21.4