.cron.yml
author Nicholas Nethercote <nnethercote@mozilla.com>
Fri, 03 Mar 2017 15:32:11 +1100
changeset 374836 4e196d802c7be7f3a3c147cc6c5b6406656584b1
parent 371358 55dfa1cb4a754d7ad22e5a1d180428fd3efc47ae
child 375517 d32e5470aa322368f4a141fb41583a2a0e07d922
permissions -rw-r--r--
Bug 1344118 - Fix the profiler's sleeping threads optimization. r=jseward. When ProfilerBuffer::reset() is called, DuplicateLastSample() will start failing for all sleeping threads because there will be no prior thread data in the buffer to duplicate. But the sampling loop doesn't detect such failure. This causes two problems: - Missing samples. - CPU usage goes through the roof, because each time around the sampling loop the length of the failing search increases. The fix is simple: detect failure in the sampling loop and do a normal sample in that case. The patch also removes ThreadInfo::DuplicateLastSample(), because it just calls onto ProfileBuffer::DuplicateLastSample().

# Definitions for jobs that run periodically.  For details on the format, see
# `taskcluster/taskgraph/cron/schema.py`.  For documentation, see
# `taskcluster/docs/cron.rst`.

jobs:
    - name: nightly-desktop
      job:
          type: decision-task
          treeherder-symbol: Nd
          triggered-by: nightly
          target-tasks-method: nightly_linux
      run-on-projects:
          - mozilla-central
          - mozilla-aurora
          - date
      when:
          by-project:
            # Match buildbot starts for now
            date: [{hour: 16, minute: 0}]
            mozilla-central: [{hour: 11, minute: 0}]
            mozilla-aurora: [{hour: 8, minute: 45}]  # Buildbot uses minute 40
            # No default

    - name: nightly-android
      job:
          type: decision-task
          treeherder-symbol: Na
          triggered-by: nightly
          target-tasks-method: nightly_fennec
      run-on-projects:
          - mozilla-central
          - mozilla-aurora
          - date
      when:
        by-project:
            # Match buildbot starts for now
            date: [{hour: 16, minute: 0}]
            mozilla-central: [{hour: 11, minute: 0}]
            mozilla-aurora: [{hour: 8, minute: 45}]  # Buildbot uses minute 40
            # No default

    - name: nightly-mochitest-valgrind
      job:
          type: decision-task
          treeherder-symbol: Vg
          target-tasks-method: mochitest_valgrind
      run-on-projects:
          - mozilla-central
      when:
          - {hour: 16, minute: 0}
          - {hour: 4, minute: 0}

    - name: nightly-code-coverage
      job:
          type: decision-task
          treeherder-symbol: Nc
          target-tasks-method: nightly_code_coverage
      run-on-projects:
          - mozilla-central
      when:
          - {hour: 18, minute: 0}