Closed
Bug 1245566
Opened 9 years ago
Closed 9 years ago
Enable taskcluster scheduling for valgrind-mochitest runs
Categories
(Release Engineering :: Applications: MozharnessCore, defect)
Release Engineering
Applications: MozharnessCore
Tracking
(firefox47 fixed)
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
firefox47 | --- | fixed |
People
(Reporter: jseward, Assigned: jseward)
References
Details
Attachments
(2 files, 3 obsolete files)
4.61 KB,
patch
|
jgraham
:
review+
|
Details | Diff | Splinter Review |
3.00 KB,
patch
|
armenzg
:
review+
|
Details | Diff | Splinter Review |
Bug 1229348 adds target |mochitest-valgrind| to |./mach mozharness|.
This bug builds on that, adding taskcluster scheduling for such runs.
Assignee | ||
Comment 1•9 years ago
|
||
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → jseward
Assignee | ||
Comment 2•9 years ago
|
||
Enables Valgrind Mochitest runs on Taskcluster, manual request only for now,
using the try syntax "-b o -p linux64_tc -u mochitest-valgrind -t none"
Attachment #8715858 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8719445 -
Flags: review?(armenzg)
Assignee | ||
Updated•9 years ago
|
Assignee | ||
Comment 3•9 years ago
|
||
Changes needed to the Valgrind/Mochitest infrastructure needed to make
Taskcluster runs feasible:
mozbase/mozlog/mozlog/formatters/tbplformatter.py:
mozharness/mozharness/mozilla/testing/errors.py:
When converting a structured valgrind_error log message into text, use
the prefix TEST-UNEXPECTED-VALGRIND-ERROR rather than
TEST-VALGRIND-ERROR so that treeherder/log_parser/parsers.py actually
recognises the text as an error.
Update mozharness/mozharness/mozilla/testing/errors.py to match.
mozharness/configs/unittests/linux_unittest.py:
Increase mochitest timeout for Valgrind runs to 900 seconds,
with up to 50 timeouts allowed.
mozbase/mozdebug/mozdebug/mozdebug.py:
Rationalise get_default_valgrind_args():
- move tool specific leak-check args into the tool-specific function
- create a new tool-specific function get_default_valgrind_none_specific_args()
to make it easy to do debugging runs with --tool=none. Not used
in production.
Assignee | ||
Updated•9 years ago
|
Attachment #8719455 -
Flags: review?(james)
Comment 4•9 years ago
|
||
Comment on attachment 8719455 [details] [diff] [review]
bug1245566-5-002_mochitest_valgrind_mods.cset
Review of attachment 8719455 [details] [diff] [review]:
-----------------------------------------------------------------
::: testing/mozbase/mozdebug/mozdebug/mozdebug.py
@@ +246,3 @@
> def get_default_valgrind_tool_specific_args():
> + return get_default_valgrind_memcheck_specific_args()
> + # return get_default_valgrind_none_specific_args()
I'm not a big fan of checking in comment-out code. Isn't there a way that we can make the tool a command line option defaulting to memcheck, and then have this function dispatch to get the right args based on that?
Attachment #8719455 -
Flags: review?(james)
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to James Graham [:jgraham] from comment #4)
> I'm not a big fan of checking in comment-out code.
Yeah, I was in two minds myself about that. I can simply remove the
support for the 'none' tool and make get_default_valgrind_tool_specific_args()
directly return the arguments for memcheck. Ie pretty much as it was
originally, except that the tool specific args --leak-check=full and
--show-possibly-lost=no have been moved into the tool-specific function,
where they should have been to begin with. Would that be OK ?
Comment 6•9 years ago
|
||
Sure.
Assignee | ||
Comment 7•9 years ago
|
||
Attachment #8719455 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8719774 -
Flags: review?(james)
Comment 8•9 years ago
|
||
Comment on attachment 8719445 [details] [diff] [review]
bug1245566-4-001_basic_tc_scheduling.cset
Review of attachment 8719445 [details] [diff] [review]:
-----------------------------------------------------------------
Feel free to land after
::: testing/taskcluster/tasks/branches/base_job_flags.yml
@@ +102,5 @@
> - android-api-15
> - android-partner-sample1
> - android-b2gdroid
> - linux
> + - linux64_tc
We can't land this piece.
This is to allow me to use '-p linux64_tc' on my try syntax (hence avoiding to schedule Buildbot linux64 jobs).
::: testing/taskcluster/tasks/branches/try/job_flags.yml
@@ +60,5 @@
> opt:
> task: tasks/builds/opt_linux32_clobber.yml
> debug:
> task: tasks/builds/dbg_linux32_clobber.yml
> + linux64_tc:
Remove this as well.
@@ +222,5 @@
> task: tasks/tests/fx_linux64_mochitest_gl.yml
> + mochitest-valgrind:
> + allowed_build_tasks:
> + tasks/builds/opt_linux64_clobber.yml:
> + task: tasks/tests/fx_linux64_mochitest_vg.yml
If you land this piece, it means that every time that someone pushes to try, it will be scheduled for them.
You can keep this piece out if you don't want that to happen.
In other words, '-u all' would trigger all the valgrind tests.
Instead, what you can do is to keep your patch around for your pushes until you get everything green.
::: testing/taskcluster/tasks/tests/fx_linux64_mochitest_vg.yml
@@ +23,5 @@
> + MOZHARNESS_CONFIG: >
> + mozharness/configs/unittests/linux_unittest.py
> + mozharness/configs/remove_executables.py
> + metadata:
> + name: '[TC] Linux64 mochitest-valgrind'
Could you please add -{{chunk}}?
I'm building a tool and I will be enforcing such format for chunked jobs.
Attachment #8719445 -
Flags: review?(armenzg) → review+
Assignee | ||
Comment 9•9 years ago
|
||
Addresses review comments in comment 8.
Armen, thank you for the review. I think I made the right changes
but I am not entirely confident about that. Here's a new version.
Could you please give it a check and see if it is what you meant?
Attachment #8719445 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Attachment #8719445 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8720284 -
Flags: review?(armenzg)
Updated•9 years ago
|
Attachment #8720284 -
Flags: review?(armenzg) → review+
Updated•9 years ago
|
Attachment #8719774 -
Flags: review?(james) → review+
Comment 10•9 years ago
|
||
Comment 11•9 years ago
|
||
bugherder |
You need to log in
before you can comment on or make changes to this bug.
Description
•