Closed
Bug 688239
Opened 14 years ago
Closed 13 years ago
make build fails if you update a confg file
Categories
(Cloud Services :: Server: Other, defect)
Tracking
(Not tracked)
VERIFIED
FIXED
People
(Reporter: telliott, Assigned: tarek)
Details
(Whiteboard: [qa+][CI])
Steps to reproduce:
1) checkout server-full
2) edit one of the etc/*.cfg files
3) make build (twice if the first one chokes)
Gives the following at the end:
Cleaning up...
bin/buildapp -c prod -i http://pypi.python.org/simple server-core,server-reg,server-storage
The current channel is prod.
Building the app
Checking the environ [ok]
Updating the repo The code was changed locally, aborting!
You can use --force but all uncommited changes will be discarded.
[fail][fail]
Forcing a build failure because of small changes seems problematic.
Assignee | ||
Comment 1•14 years ago
|
||
yeah. one option is to make a white list.
For server-full, maybe etc/
Assignee | ||
Comment 2•14 years ago
|
||
Also: if you build a prod version, you are supposed to be on a tag, so a change means you are now on a different set of files.
So, I am not sure if being lose on any file is a good idea
Assignee | ||
Comment 3•14 years ago
|
||
So, after a bit of IRC:
1/ the dev channel should ignore changes on the current project (not the deps)
2/ the warning when the prod refuses to continue should explain that any change should be done on a dev channel
Reporter | ||
Updated•13 years ago
|
Assignee: nobody → tarek
Updated•13 years ago
|
Whiteboard: [qa+]
Assignee | ||
Updated•13 years ago
|
Whiteboard: [qa+] → [qa+][CI]
Assignee | ||
Comment 4•13 years ago
|
||
This is already fixed. I have adapted the displayed message a bit.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
I still have this isue. Few minutes ago I did:
$ hg pull
$ hg update
$ make build
And now I have:
Building the app
Checking the environ [ok]
Updating the repo The code was changed locally, aborting!
You can use --force but all uncommited changes will be discarded.
[fail] [fail]
# Pre-compile mako templates into the correct directories.
for TMPL in `find . -name '*.mako'`; do ./bin/python -c "from mako.template import Template; Template(filename='$TMPL', module_directory='`dirname $TMPL`', uri='`basename $TMPL`')"; done;
Comment 7•12 years ago
|
||
I still have it too.
Comment 8•12 years ago
|
||
Denis, it's possible that you did not get the updated error wording mentioned in Comment 4, due to originally building the project before this fix was committed. You should be able to get the update working by doing:
$ make build CHANNEL=dev
The simplest fix here seems to be building the dev channel by default. This seems OK given the stability of the project at this point in its lifecycle. Toby, thoughts?
Flags: needinfo?(telliott)
Reporter | ||
Comment 9•12 years ago
|
||
That does seem the path of least resistance at this point.
Flags: needinfo?(telliott)
Comment 10•12 years ago
|
||
It's done:
http://hg.mozilla.org/services/server-full/rev/528ff5e44486
Users with existing checkouts will need to remove the .channel file to build the new channel, but at least we won't foist this upon any new users.
Comment 11•12 years ago
|
||
Thanks a lot, it's fixed now :)
You need to log in
before you can comment on or make changes to this bug.
Description
•