Merge lp:~1chb1n/ubuntu-openstack-ci/charm-what-bundle-func into lp:ubuntu-openstack-ci

Proposed by Ryan Beisner
Status: Merged
Merged at revision: 412
Proposed branch: lp:~1chb1n/ubuntu-openstack-ci/charm-what-bundle-func
Merge into: lp:ubuntu-openstack-ci
Diff against target: 96 lines (+27/-7)
3 files modified
run/job-parts/build_func_test.sh (+5/-3)
run/job-parts/osci_job_common.sh (+8/-0)
run/job-parts/osci_layerci_common.sh (+14/-4)
To merge this branch: bzr merge lp:~1chb1n/ubuntu-openstack-ci/charm-what-bundle-func
Reviewer Review Type Date Requested Status
Chris MacNaughton (community) Approve
Review via email: mp+361007@code.launchpad.net

Commit message

Update asset type checking for zaza func bundle style

Description of the change

Update asset type checking for zaza func bundle style

To post a comment you must log in.
413. By Ryan Beisner

Require BASE_NAME when setting CO_DIR

414. By Ryan Beisner

Rebase this branch with trunk

415. By Ryan Beisner

Update asset type check for zaza bundle approach

416. By Ryan Beisner

Debug CO_DIR TEST_PATH BUILT_ASSET DIR env vars

417. By Ryan Beisner

Add osci repo info to console output for clarity

418. By Ryan Beisner

Clean up

419. By Ryan Beisner

Update known asset type filter

420. By Ryan Beisner

Additional update to type filter

421. By Ryan Beisner

Clean up

Revision history for this message
Chris MacNaughton (chris.macnaughton) wrote :

LGTM

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'run/job-parts/build_func_test.sh'
--- run/job-parts/build_func_test.sh 2018-12-14 07:57:29 +0000
+++ run/job-parts/build_func_test.sh 2018-12-17 18:33:29 +0000
@@ -17,10 +17,12 @@
1717
18f_line "Begin functional test"18f_line "Begin functional test"
19f_env_set_network_env_vars19f_env_set_network_env_vars
20cd ${BUILT_ASSET_DIR-$CO_DIR}
2120
22if [[ -n $TEST_PATH ]]; then21if [[ -n "$CO_DIR" ]] && [[ -n "$TEST_PATH" ]]; then
23 cd $TEST_PATH22 # openstack-bundles style zaza test
23 cd ${CO_DIR}/${TEST_PATH}
24else
25 cd ${BUILT_ASSET_DIR-$CO_DIR}
24fi26fi
2527
26: ${TOX_SEARCH:="func27|func"}28: ${TOX_SEARCH:="func27|func"}
2729
=== modified file 'run/job-parts/osci_job_common.sh'
--- run/job-parts/osci_job_common.sh 2018-12-13 20:55:35 +0000
+++ run/job-parts/osci_job_common.sh 2018-12-17 18:33:29 +0000
@@ -275,6 +275,12 @@
275function f_set_co_dir() {275function f_set_co_dir() {
276# Set the checkout dir276# Set the checkout dir
277 mkdir -p $JENKINS_HOME/checkout/$EXECUTOR_NUMBER277 mkdir -p $JENKINS_HOME/checkout/$EXECUTOR_NUMBER
278
279 if [[ -z "$BASE_NAME" ]]; then
280 echo " ! Missing BASE_NAME, cannot set CO_DIR"
281 exit 1
282 fi
283
278 export CO_DIR=$JENKINS_HOME/checkout/$EXECUTOR_NUMBER/$BASE_NAME284 export CO_DIR=$JENKINS_HOME/checkout/$EXECUTOR_NUMBER/$BASE_NAME
279}285}
280286
@@ -491,6 +497,8 @@
491 export SKIP_JUJU_FOO="true"497 export SKIP_JUJU_FOO="true"
492}498}
493499
500f_line "OSCI_ROOT repo info"
501bzr info ${OSCI_ROOT}
494502
495# Charm store timeout value, consumed by libcharmstore503# Charm store timeout value, consumed by libcharmstore
496export CS_API_TIMEOUT=60504export CS_API_TIMEOUT=60
497505
=== modified file 'run/job-parts/osci_layerci_common.sh'
--- run/job-parts/osci_layerci_common.sh 2018-08-09 12:13:38 +0000
+++ run/job-parts/osci_layerci_common.sh 2018-12-17 18:33:29 +0000
@@ -213,6 +213,10 @@
213 # Change nothing at this time213 # Change nothing at this time
214 echo " . Proceeding with $CO_DIR as an interface [no build necessary]"214 echo " . Proceeding with $CO_DIR as an interface [no build necessary]"
215 ;;215 ;;
216 "bundle (func)")
217 # A zaza-testable bundle, ie. from openstack-bundle
218 echo " . Proceeding with $CO_DIR as a testable bundle"
219 ;;
216 *)220 *)
217 echo " ! Unknown asset type"221 echo " ! Unknown asset type"
218 exit 1222 exit 1
@@ -229,7 +233,7 @@
229233
230 f_layerci_check_and_announce_asset_type234 f_layerci_check_and_announce_asset_type
231 case "$OSCI_ASSET_TYPE" in235 case "$OSCI_ASSET_TYPE" in
232 "charm (built)"|"charm (classic)")236 "charm (built)"|"charm (classic)"|"bundle (func)")
233 # OK237 # OK
234 :238 :
235 ;;239 ;;
@@ -250,7 +254,7 @@
250function f_layerci_build_if_necessary() {254function f_layerci_build_if_necessary() {
251 f_layerci_check_and_announce_asset_type255 f_layerci_check_and_announce_asset_type
252 case "$OSCI_ASSET_TYPE" in256 case "$OSCI_ASSET_TYPE" in
253 "charm (built)"|"charm (classic)")257 "charm (built)"|"charm (classic)"|"bundle (func)")
254 # OK258 # OK
255 :259 :
256 ;;260 ;;
@@ -268,9 +272,15 @@
268272
269function f_layerci_check_and_announce_asset_type() {273function f_layerci_check_and_announce_asset_type() {
270# Check (or re-check) and announce asset type via charm-what.274# Check (or re-check) and announce asset type via charm-what.
271 f_layerci_get_asset_type ${BUILT_ASSET_DIR-$CO_DIR}275
276 if [[ -n "$CO_DIR" ]] && [[ -n "$TEST_PATH" ]]; then
277 f_layerci_get_asset_type ${CO_DIR}/${TEST_PATH}
278 else
279 f_layerci_get_asset_type ${BUILT_ASSET_DIR-$CO_DIR}
280 fi
281
272 case "$OSCI_ASSET_TYPE" in282 case "$OSCI_ASSET_TYPE" in
273 "charm (built)"|"charm (classic)"|"charm (source)"|"layer"|"interface")283 "charm (built)"|"charm (classic)"|"charm (source)"|"layer"|"interface"|"bundle (func)")
274 # OK284 # OK
275 :285 :
276 ;;286 ;;

Subscribers

People subscribed via source and target branches