mock based valgrind jobs need to copy in ~/.hgrc to enable sharing

RESOLVED FIXED

Status

Release Engineering
General Automation
RESOLVED FIXED
5 years ago
4 years ago

People

(Reporter: catlee, Assigned: rail)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [mock])

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
Looks like when we run valgrind.sh under mock, we lose the .hgrc settings which enable the share extension.

Checking if share extension works
command: START
command: hg help share
command: cwd: /builds/slave/m-cen-lnx-valgrind
command: output:
command: END (0.33 elapsed)

command: START
command: hg path default
command: cwd: /builds/hg-shared/mozilla-central
command: output:
http://hg.mozilla.org/mozilla-central

command: END (0.41 elapsed)

Updating shared repo
command: START
command: hg path default
command: cwd: /builds/hg-shared/mozilla-central
command: output:
http://hg.mozilla.org/mozilla-central

command: END (0.38 elapsed)

command: START
command: hg pull -r 7c7639f797d0 http://hg.mozilla.org/mozilla-central
command: cwd: /builds/hg-shared/mozilla-central
command: output:
pulling from http://hg.mozilla.org/mozilla-central
searching for changes
adding changesets
adding manifests
adding file changes
added 58 changesets with 146 changes to 101 files
(run 'hg update' to get a working copy)
command: END (9.15s elapsed)

Trying to share /builds/hg-shared/mozilla-central to /builds/slave/m-cen-lnx-valgrind/src
command: START
command: hg share -U /builds/hg-shared/mozilla-central /builds/slave/m-cen-lnx-valgrind/src
command: cwd: /builds/slave/m-cen-lnx-valgrind
command: output:
hg: unknown command 'share'
'share' is provided by the following extension:

    share         share a common history between several working directories

use "hg help extensions" for information on enabling extensions
command: ERROR
Traceback (most recent call last):
  File "/builds/slave/m-cen-lnx-valgrind/scripts/buildfarm/utils/../../lib/python/util/commands.py", line 42, in run_cmd
    return subprocess.check_call(cmd, **kwargs)
  File "/usr/lib/python2.6/subprocess.py", line 502, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['hg', 'share', '-U', '/builds/hg-shared/mozilla-central', '/builds/slave/m-cen-lnx-valgrind/src']' returned non-zero exit status 255
command: END (0.35s elapsed)
(Reporter)

Comment 1

5 years ago
Looks like adding /home/cltbld/.hgrc to mock_copyin_files could do the trick...
This is happening every day or other day, but it goes away with a retrigger. Unfortunately the sheriffs will have to manually retrigger everytime it occurs, once we get green trees.
Blocks: 631811
(Assignee)

Comment 3

5 years ago
Created attachment 668857 [details] [diff] [review]
copyin

It would be great to use the same config for all mock based builds. I hit some issues before and had to use the following config which is in hgrc arleady.

[format]
dotencode=False
Assignee: nobody → rail
Status: NEW → ASSIGNED
Attachment #668857 - Flags: review?(bugspam.Callek)

Updated

5 years ago
Attachment #668857 - Flags: review?(bugspam.Callek) → review+
(Assignee)

Comment 4

5 years ago
Comment on attachment 668857 [details] [diff] [review]
copyin

http://hg.mozilla.org/build/buildbot-configs/rev/0e1e9328d65c

It'll be in production next Monday after the scheduled reconfig.
Attachment #668857 - Flags: checked-in+
(Assignee)

Comment 5

5 years ago
In production http://hg.mozilla.org/build/buildbot-configs/rev/965373227870
(Assignee)

Updated

5 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.