Closed
Bug 771287
Opened 11 years ago
Closed 11 years ago
makefiles: unit test failure from xpidl.mk edits
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla17
People
(Reporter: joey, Assigned: joey)
Details
Attachments
(1 file, 2 obsolete files)
3.44 KB,
patch
|
Details | Diff | Splinter Review |
cd obj-x86_64-unknown-linux-gnu/config/makefiles/test gmake check gmake -f /local/mozilla/bugs/foo/config/makefiles/test/check-xpidl.mk check-xpidl mkdir -p blah/idl/ mkdir -p blah/dist/include/ gmake[1]: *** [check-xpidl] Error 91 error 91 detected a failure while installing to dist. Problem was caused by $(call install_cmd), config/config.mk is not included as it would create far too many permutations for testing. Unclear how 98137:88aaf6c529b9 might land with this failure mode present. Unit testing will need to declare install_cmd locally to avoid a dependency on config.mk
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Comment on attachment 639444 [details] [diff] [review] xpidl unit test failure simple edit to make the problem more visible.
Assignee | ||
Comment 3•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #639444 -
Attachment is obsolete: true
Assignee | ||
Comment 4•11 years ago
|
||
Comment on attachment 639451 [details] [diff] [review] xpidl unit test failure Added a $(requiredfunction) check for install_cmd so problems will be more visible. Unit test failure was due to install_cmd not being defined. Including config.mk would be expensive for testing, adding a large amount of logic and permutations to handle. For now keep test logic simple and avoid un-necessary deps by inlining a local definition for the function.
Attachment #639451 -
Flags: review?(khuey)
Assignee | ||
Comment 5•11 years ago
|
||
Question: shouldn't the install command be able to handle more than one file at a time ? [phantasm:771287] grep install_cmd config/config.mk # Single-line commands should be switched over to install_cmd. install_cmd = $(NSINSTALL_NATIVECMD) -t $(1) # The default for install_cmd is simply INSTALL install_cmd ?= $(INSTALL) $(1)
Comment 6•11 years ago
|
||
(In reply to Joey Armstrong [:joey] from comment #5) > Question: shouldn't the install command be able to handle more than one file > at a time ? All the files to install are passed (space separated) in $(1), AIUI. Also, do these unit tests not get run as part of "make check" on tinderbox builds?
Comment on attachment 639451 [details] [diff] [review] xpidl unit test failure Ted's already looked at this, so I'll let him finish.
Attachment #639451 -
Flags: review?(khuey) → review?(ted.mielczarek)
Updated•11 years ago
|
Attachment #639451 -
Flags: review?(ted.mielczarek) → review+
Updated•11 years ago
|
Assignee: nobody → joey
Assignee | ||
Comment 8•11 years ago
|
||
(In reply to Ted Mielczarek [:ted] from comment #6) > > Also, do these unit tests not get run as part of "make check" on tinderbox > builds? Yes they are run by dependency when xpidl.mk, etc are modified. If the test did not run/fail in this case it is probably due to the redefinition of 'INSTALL'. This test does not place deps on rules.mk or config.mk as that would force having to run the test unnecessarily with every edit.
Comment 9•11 years ago
|
||
I think we should change that behavior. Conventionally we run all our tests unconditionally. So all of our build system tests run as part of "make check", regardless of whether something has changed. This prevents a situation like this from happening, where changes to other parts of the system break functionality or a test elsewhere.
Assignee | ||
Comment 10•11 years ago
|
||
committed changeset 100436:fda288d0724d ted> I'll have to send another patch through to add the extra test deps. Maybe the install* related commands could be isolated into a smaller dependency { kinda doubt it for this specifically } so the test will only run when the makefile or install command changes. These unit tests are small but running unconditionally will add to job times as they accumulate.
Comment 11•11 years ago
|
||
Backed out for check-sync-dirs failure: https://hg.mozilla.org/integration/mozilla-inbound/rev/061db7f824e4
Comment 12•11 years ago
|
||
I really think that running all the tests on every commit is the only sane behavior. Yes, it gets slower as we add more tests, but this is why we have tests.
Assignee | ||
Comment 13•11 years ago
|
||
Assignee | ||
Updated•11 years ago
|
Attachment #639451 -
Attachment is obsolete: true
Assignee | ||
Comment 14•11 years ago
|
||
r=ted carried forward. dup xpidl.mk edits to make check-sync-dirs happy. add config/config.mk as a dependency for the check-xpidl.mk unit test and removed explicit install_cmd= def to add test coverage. try job running.
Assignee | ||
Comment 15•11 years ago
|
||
inbound: commited changeset 101693:fa134d4bb470
Comment 16•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/fa134d4bb470
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•