DXR will be turned off on Tuesday, December 29th. It will redirect to Searchfox.
See the announcement on Discourse.

DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
task:
  created: '{{now}}'
  deadline: '{{#from_now}}24 hours{{/from_now}}'
  metadata:
    source: '{{source}}'
    owner: mozilla-taskcluster-maintenance@mozilla.com
  tags:
    createdForUser: {{owner}}
  workerType: b2gtest
  provisionerId: aws-provisioner-v1
  schedulerId: task-graph-scheduler

  scopes:
    - 'docker-worker:image:{{#docker_image}}tester-device{{/docker_image}}'
    - 'queue:create-task:aws-provisioner-v1/testdroid-device'
    - 'docker-worker:cache:level-{{level}}-{{project}}-tc-vcs'
    - 'docker-worker:capability:device:phone'

  payload:
    image: '{{#docker_image}}tester-device{{/docker_image}}'
    maxRunTime: 7200
    cache:
      level-{{level}}-{{project}}-tc-vcs: '/home/worker/.tc-vcs'
    env:
      MOZ_BUILD_DATE: '{{pushdate}}'
      GAIA_HEAD_REPOSITORY: '{{{gaia_head_repository}}}'
      GAIA_BASE_REPOSITORY: '{{{gaia_base_repository}}}'
      GAIA_REF: '{{{gaia_ref}}}'
      GAIA_REV: '{{{gaia_rev}}}'
      TESTS_TIMEOUT_IN_MS: 30000
      MANIFEST_PATH: gaia/source/tests/python/gaia-ui-tests/gaiatest/tests/functional/manifest.ini
      MANIFEST_INCLUDE_EXCLUDE: b2g-dsds

    log: 'private/b2g/logs/live.log'

    # All builds share a common artifact directory for ease of uploading.
    artifacts:
      'private/b2g/device.json':
        type: file
        path: '/home/worker/data/device.json'
        expires: '{{#from_now}}1 year{{/from_now}}'

      'private/b2g/logs':
        type: directory
        path: '/home/worker/upload/logs/'
        expires: '{{#from_now}}1 year{{/from_now}}'

      'private/b2g/videos':
        type: directory
        path: '/home/worker/upload/videos/'
        expires: '{{#from_now}}3 months{{/from_now}}'

    features:
      testdroidProxy: true

    capabilities:
      devices:
        phone:
          type: 'flame'
          memory: '512'
          sims: '0'
          build: '{{{img_url}}}'

    command:
      - >
        adb
        -H $PROXY_HOST
        -P $ADB_PORT
        -s $SERIAL_ID
        logcat
        -v threadtime
        &> /home/worker/upload/logs/logcat.log
        &

      - >
        gaiatest
        --total-chunks={{total_chunks}}
        --this-chunk={{chunk}}
        --testvars=/home/worker/data/gaia_testvars.json
        --testvars=/home/worker/data/device.json
        --adb-host=$PROXY_HOST
        --adb-port=$ADB_PORT
        --address=$PROXY_HOST:$MARIONETTE_PORT
        --device $SERIAL_ID
        --xml-output=/home/worker/upload/logs/xml_output.xml
        --log-html=/home/worker/upload/logs/index.html
        --log-mach=-
        --log-raw=/home/worker/upload/logs/raw.log
        --capture=whenfail
        --capturefolder=/home/worker/upload/videos/
        --restart
        --timeout=$TESTS_TIMEOUT_IN_MS
        --type=$MANIFEST_INCLUDE_EXCLUDE
        $MANIFEST_PATH

  extra:
    treeherder:
      groupName: B2G end-to-end tests (Python)
      groupSymbol: e2e-py
      productName: b2g
    chunks:
      total: 1
      current: {{chunk}}