You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/09/11 19:25:01 UTC

(maven-scm) branch master updated: Set HGUSER for the hg TCK suite to avoid a macOS hostname-lookup stall

This is an automated email from the ASF dual-hosted git repository.

slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-scm.git


The following commit(s) were added to refs/heads/master by this push:
     new 45e49339f Set HGUSER for the hg TCK suite to avoid a macOS hostname-lookup stall
45e49339f is described below

commit 45e49339f6649fda18d022f908b9da9d15a832e2
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Fri Sep 11 21:00:58 2026 +0200

    Set HGUSER for the hg TCK suite to avoid a macOS hostname-lookup stall
    
    Without HGUSER, Mercurial resolves the local hostname to build a
    default committer identity on every commit. On GitHub's macOS
    runners that lookup stalls for ~70s per commit, so the 23 commits
    in this TCK suite alone were eating ~27 of the job's 30-minute
    budget and getting the run cancelled mid-SVN-TCK. Setting HGUSER
    skips the lookup entirely; the full hg TCK suite now runs in ~1
    minute locally instead of hanging.
---
 maven-scm-providers/maven-scm-provider-hg/pom.xml | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/maven-scm-providers/maven-scm-provider-hg/pom.xml b/maven-scm-providers/maven-scm-provider-hg/pom.xml
index 00fc266d1..ee3011b27 100644
--- a/maven-scm-providers/maven-scm-provider-hg/pom.xml
+++ b/maven-scm-providers/maven-scm-provider-hg/pom.xml
@@ -83,6 +83,12 @@
               <excludes>
                 <exclude>nothing</exclude>
               </excludes>
+              <environmentVariables>
+                <!-- Without HGUSER, Mercurial falls back to resolving the local hostname to
+                     build a default committer identity, which can stall for ~70s on some CI
+                     runners (notably GitHub's macOS runners). Setting it avoids that lookup. -->
+                <HGUSER>maven-scm-tck &lt;maven-scm-tck@example.org&gt;</HGUSER>
+              </environmentVariables>
             </configuration>
           </plugin>
         </plugins>