Re: Canonical cinnabar repository

2017-09-20 Thread Ethan Glasser-Camp
Sorry if this is a bit off-topic. It seems from these threads that there is
a more-or-less canonical way to use git to hack on Firefox. Where can I
find out more about it?

Looking online, the only information I could find was at
https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development.
Is that the best source of information? I didn't see anything under
https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide,
http://mozilla-version-control-tools.readthedocs.io/en/latest/, or
https://firefox-source-docs.mozilla.org/.

Thanks!

Ethan


On Mon, Sep 18, 2017 at 10:05 AM, Kartikaya Gupta 
wrote:

> This message was inspired by the `mach try` thread but is off-topic
> there so I think deserves its own thread.
>
> It seems to me that a lot of people are now assuming a cinnabar repo
> is the canonical way for git users to develop on mozilla-central. If
> we want to make this mozilla policy I don't really have objections,
> but I think that if we do that, we should maintain a canonical git
> repo that is built using cinnabar, rather than having everybody have
> their own "grafted" version of a cinnabar repo. The problem with the
> latter approach is that different people will have different SHAs for
> the same upstream commit, thus making it much harder to share repos.
>
> I've tried using cinnabar a couple of times now and the last time I
> tried, this was the dealbreaker for me. My worfklow often involves
> moving a branch from one machine to another and the extra hassle that
> results from mismatched SHAs makes it much more complicated than it
> needs to be. gecko-dev doesn't have this problem as it has a canonical
> upstream that works much more like a regular git user expects.
>
> As an aside, I also think that the cinnabar workflow as it exists now
> actually demotes git to more of a "second-class citizen".
> Conceptually, if you're using gecko-dev, everything works exactly as a
> git user would expect, and only when you need to push to official
> mozilla hg repos do you need to overcome the vcs translation hurdle
> (which things like moz-git-tools help with). However if you use
> cinnabar the vcs translation is more woven into your everyday git
> commands (e.g. git pull) and you need to be more consciously aware of
> it. This makes it harder to use whatever your normal git workflow is,
> which is why I claim it demotes git to second-class. It would be great
> if we could come up with a way to avoid this but honestly since I
> haven't used a cinnabar workflow for any significant period of time I
> haven't given much thought as to how to go about doing this.
>
> Discussion welcome!
>
> Cheers,
> kats
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Have you run 'mach bootstrap' lately?

2017-05-15 Thread Ethan Glasser-Camp
Actually, I think my real question is "What is the intended way for
developers to keep their development environment up-to-date?" I don't think
that way should require a developer to answer questions, because the
answers presumably haven't changed since the last time they answered them.
If the intended way is `mach bootstrap`, then I think `mach bootstrap`
should have an option to skip the questions[*]. If `mach bootstrap` is only
intended to run once when setting up a new development environment, then
maybe there should be a `mach tune-up` command or something like that.

I'm happy to file bugs for whichever is the case, but I'm not sure which
one it is.

Ethan

[*] When using `./mach bootstrap --settings ./mozconfig`, I get: `The
bootstrap command does not accept the arguments: --settings ./mozconfig`.
When using `./mach --settings ./mozconfig bootstrap`, I get the questions.


On Fri, May 12, 2017 at 1:04 PM, Geoffrey Brown <gbr...@mozilla.com> wrote:

> I'm not sure. I always just answer the prompts and am happy with that.
>
> There is a --settings option, which sounds like it might be helpful, but I
> don't have any experience with that.
>
>  - Geoff
>
> On Fri, May 12, 2017 at 9:00 AM, Ethan Glasser-Camp <
> eglasserc...@mozilla.com> wrote:
>
>> Is there a way to run it without having to reanswer the configuration
>> questions?
>>
>> Ethan
>>
>>
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform


Re: Have you run 'mach bootstrap' lately?

2017-05-12 Thread Ethan Glasser-Camp
Is there a way to run it without having to reanswer the configuration
questions?

Ethan

On Thu, May 11, 2017 at 11:08 PM, Geoffrey Brown  wrote:

> If you set up your build environment with 'mach bootstrap' but haven't run
> it recently, consider taking a few minutes now to run it again. Running
> 'mach bootstrap' from time to time will keep your environment up to date
> and (more-or-less) in sync with your colleagues'.
>
> This seems to be especially important for Android test environments: The
> Android SDK and associated tools are always being updated and if you don't
> stay up to date, there's a good chance something will eventually break.
> ___
> dev-platform mailing list
> dev-platform@lists.mozilla.org
> https://lists.mozilla.org/listinfo/dev-platform
>
___
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform