Closed Bug 1491408 Opened 1 year ago Closed 1 year ago

testing/geckodriver/ is very slow if your hg config defaults to |--follow|


(Testing :: geckodriver, defect, P1)

Version 3


(firefox64 fixed)

Tracking Status
firefox64 --- fixed


(Reporter: Alex_Gaynor, Assigned: ato)




(1 file)

In my system-wide hg config I make |hg log| default to |--follow|.

This causes: to be incredibly slow, since it prints the node for _every single commit_.

A solution would be to pass |--no-follow| in the invocation of |hg log|. should set HGPLAIN=1 in the environment to avoid this.
Assignee: nobody → ato
Priority: -- → P1
Looking at this I discovered another bug with  For Mercurial
we use "hg log -r." in the CWD which selects the last commit in the
current working directory, but for git we just do "git log -1" which
picks the latest commit to the repository, whatever that may be.
Disregard what I just said about "hg log -r.": it apparently selects
the parent/tip commit of the entire repository.
Blocks: 1491799
This sets HGPLAIN and GIT_CONFIG_NOSYSTEM to bypass local user
version control system configuration when the build script is invoked.

If not set, the version control system's output could be influenced
by configuration settings.  It was for example discovered that if
you have "hg log" default to --follow, this slows down the Gecko
build significantly since it prints the node for every single commit.

According to hg(1) it is highly recommended for programs invoking
hg to set this.
Attachment #9009588 - Flags: review?(hskupin)
Comment on attachment 9009588 [details] [diff] [review]
bypass local vcs config when invoking build script

Review of attachment 9009588 [details] [diff] [review]:

::: testing/geckodriver/
@@ +53,5 @@
>      S: AsRef<OsStr>,
>      I: IntoIterator<Item = S>,
>  {
>      let mut cmd = Command::new(program);
> +    cmd.env("HGPLAIN", "1");

Note that this doesn't actually disable any configuration for Mercurial but only those which change the default output.
Attachment #9009588 - Flags: review?(hskupin) → review+
Thanks for jumping on this!
Pushed by
bypass local vcs config when invoking build script. r=whimboo a=Aryx
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.