Closed
Bug 688061
Opened 13 years ago
Closed 12 years ago
toolkit/xre clean target messages
Categories
(Firefox Build System :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: joey, Assigned: joey)
References
Details
Attachments
(1 file, 2 obsolete files)
4.71 KB,
patch
|
Details | Diff | Splinter Review |
Messages logged during a nop try job submission. A modified version of rules.mk was submitted with a bogus makefile target inserted. LOG: try-linuxqt-build578.txt.gz make -C xre clean cat: ../../config/buildid: No such file or directory make[5]: Entering directory `/builds/slave/try-linuxqt/build/obj-firefox/toolkit/xre' ####################################################################### Solaris /usr/bin/diff doesn't have -n option GRE_MILESTONE := $(shell tail -n 1 $(topsrcdir)/config/milestone.txt 2>/dev/null || tail -1 $(topsrcdir)/config/milestone.txt) GRE_BUILDID := $(shell cat $(DEPTH)/config/buildid) ####################################################################### 1) redirect stderr to /dev/null in the GRE_BUILDID macro. If a non-existent buildid file is an error for all other non-clean targets a conditional can be added to test $(GRE_BUILDID) == $(NULL) and conditionally $(error ) out when detected. 2) GRE_MILESTONE logic can be simplified. Replace tail/shell conditionals with: GRE_MILESTONE := $(lastword $(shell cat ..../milestone.txt))
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → joey
Assignee | ||
Comment 1•12 years ago
|
||
SOURCE_REPO, GRE_MILESTONE, GRE_BUILDID - replace shell pipelines with a single command followed by make string manipulation. Moved SOURCE_REPO= inside MOZ_SOURCE_STAMP conditional so commands will only run when needed.
Attachment #605731 -
Flags: review?(khuey)
Assignee | ||
Comment 2•12 years ago
|
||
ping on the code review
Assignee | ||
Comment 3•12 years ago
|
||
Same patch contents as last time but reverted the license block for automated batch updates.
Attachment #605731 -
Attachment is obsolete: true
Attachment #605731 -
Flags: review?(khuey)
Attachment #606640 -
Flags: review?(khuey)
Assignee | ||
Comment 4•12 years ago
|
||
ping on code review
Comment on attachment 606640 [details] [diff] [review] toolkit/xre/Makefile.in - reduce shell command use Review of attachment 606640 [details] [diff] [review]: ----------------------------------------------------------------- Assuming that about:buildconfig looks the same afterwards, r=me.
Attachment #606640 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #5) > Comment on attachment 606640 [details] [diff] [review] > toolkit/xre/Makefile.in - reduce shell command use > > Review of attachment 606640 [details] [diff] [review]: > ----------------------------------------------------------------- > > Assuming that about:buildconfig looks the same afterwards, r=me. Visually verifying about:buidconfig is easy enough. Would it make sense to setup a Makefile.in unit test that will parse/load $(obj)/dist/bin/chrome/toolkit/content/global/buildconfig.html and verify values for GRE_MILESTONE, GRE_BUILDID, TOOLKIT_EM_VERSION, ... have been properly branded into the about content file ? $(call errorIfEmpty,GRE_BUILDID) tests can be inserted into the makefile to check for missing values early { after bug 735368 lands } but there is not yet an automated test to verify they were able to propagate where needed.
I wouldn't bother writing an automated test for it.
Assignee | ||
Comment 8•12 years ago
|
||
patsubst to massage hg repo URL should replace with content rather than $(NULL) when stripping a trailing slash. Added calls to $(checkifEmpty), $(warnIfEmpty) to verify values gathered by shell commands were able to return a value. Test will be a NOP until bug 735638 lands and provides a definition for make user func checkIfError. r=khuey, r=me
Attachment #606640 -
Attachment is obsolete: true
Assignee | ||
Comment 9•12 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #5) > Comment on attachment 606640 [details] [diff] [review] > toolkit/xre/Makefile.in - reduce shell command use > > Review of attachment 606640 [details] [diff] [review]: > ----------------------------------------------------------------- > > Assuming that about:buildconfig looks the same afterwards, r=me. about::buildconfig looks the same and verified $(obj)/dist/bin/platform.ini contained correct values for source repo, Milestone and Buildid.
Assignee | ||
Comment 10•12 years ago
|
||
try job: http://tbpl.mozilla.org/?tree=Try&rev=7fb97abc26f5
Comment 11•12 years ago
|
||
Comment on attachment 609722 [details] [diff] [review] patch carried forward with 1 bugfix & error checking https://hg.mozilla.org/projects/build-system/rev/106c7696d3b7
Assignee | ||
Comment 12•12 years ago
|
||
Patch landed on mozilla-central yesterday by Coop & Philor: https://hg.mozilla.org/mozilla-central/rev/c598b7b202e7
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
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
•