Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 633538
Summary: | builds do not abort on failure; installation improperly performed | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Dogtag Certificate System | Reporter: | John Dennis <jdennis> | ||||||
Component: | Build | Assignee: | John Dennis <jdennis> | ||||||
Status: | CLOSED WONTFIX | QA Contact: | Chandrasekar Kannan <ckannan> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | high | ||||||||
Version: | unspecified | CC: | awnuk, benl, jgalipea, kwright, mharmsen | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2010-12-03 20:46:21 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: | 643206 | ||||||||
Bug Blocks: | 541012 | ||||||||
Attachments: |
|
Description
John Dennis
2010-09-13 22:03:58 UTC
Created attachment 447534 [details]
patch to abort build when errors occur and separate building from installation
The attached patch does the following:
1) adds failonerror="true" to every ant exec task
2) bullet proofs capturing the exit status in dogtag/config-ext/build_dogtag_pki
3) modifies build_pki to:
a) remove all installation code (building != installation)
b) always checks the exit status of commands it runs and exits with message if it fails
4) adds a new script called "built_rpms" which output to stdout the list of built rpms in the current source tree (optionally can point it at another tree, apply inclusion/exclusion filters, etc. See usage).
Installation can be more easily and flexibly done via the built_rpms script (see usage)
Created attachment 447778 [details]
Identical changes for tomcatjss
The first patch missed making the same changes to tomcatjss. This patch adds the same changes for tomcatjss
attachment 447534 [details] +mharmsen CAVEATS: Everything in this attachment is approved EXCEPT the changes to "build_pki". The "build_pki" script implements a "chain" build order required to make certain that all build-time dependencies are resolved. It has been suggested in the past to envelop this script inside of a "Mock" environment so as to not replace the existing packages on the build machine. Release engineering nightly builds have been utilizing this script successfully to generate repositories utilized by quality engineering for months. attachment 447778 [details] +mharmsen NO CAVEATS. this bug can be closed once we have the cmake based build system working, bug #643206. Marking this bug as dependent on that. closing due to conversion to cmake |