Closed Bug 1167255 Opened 9 years ago Closed 9 years ago

Add the ability to pass in multiple mozharness configs to the TC desktop-builder

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(firefox41 fixed)

RESOLVED FIXED
Tracking Status
firefox41 --- fixed

People

(Reporter: mrrrgn, Assigned: mrrrgn)

Details

Attachments

(1 file, 2 obsolete files)

We need to be able to do things like:

mozharness.py --config /builds/foo.py --config /builds/sub_build/bar.py
Assignee: nobody → winter2718
TC run using this, showing that it works.
Attached patch multiconfig.diff (obsolete) — Splinter Review
Attachment #8609321 - Flags: review?(dustin)
Comment on attachment 8609321 [details] [diff] [review]
multiconfig.diff

Review of attachment 8609321 [details] [diff] [review]:
-----------------------------------------------------------------

Minor bits, but otherwise good to go.

::: testing/docker/desktop-build/bin/build.sh
@@ +50,5 @@
>  # Ensure that in tree libraries can be found
>  export LIBRARY_PATH=$LIBRARY_PATH:$WORKSPACE/src/obj-firefox:$WORKSPACE/src/gcc/lib64
>  
> +# test required parameters are supplied; -z is preferred over "test" because
> +# it doesn't fail on variables with spaces in them.

Quoting the variables lets test work with space:

dustin@euclid ~ $ var="foo bar"
dustin@euclid ~ $ test $var; echo $?
bash: test: foo: unary operator expected
2
dustin@euclid ~ $ test "$var"; echo $?
0
dustin@euclid ~ $ var=
dustin@euclid ~ $ test $var; echo $?
1
dustin@euclid ~ $ test "$var"; echo $?
1

(I don't mind either approach, but you may want to trim the comment -- it's helpful for review, not necessarily helpful for someone reading later)

@@ +116,5 @@
>  
> +# support multiple, space delimited, config files
> +config_cmds=""
> +for cfg in $MOZHARNESS_CONFIG; do
> +  echo PRINTING $cfg

debug echo
Attachment #8609321 - Flags: review?(dustin) → review+
Attached patch multiconfig.diff (obsolete) — Splinter Review
Attachment #8609321 - Attachment is obsolete: true
Attachment #8609356 - Flags: review+
Keywords: checkin-needed
Attached patch multiconfig.diffSplinter Review
Attachment #8609356 - Attachment is obsolete: true
Attachment #8609358 - Flags: review+
https://hg.mozilla.org/mozilla-central/rev/a08fecd24405
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: