<commit_before>steps:
  - label:  ':docker: Build expo publisher'
    timeout_in_minutes: 30
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    plugins:
      - docker-compose#v3.1.0:
          build: expo-publisher
          image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
          cache-from:
            - expo-publisher:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-publisher-${BRANCH_NAME}
            - expo-publisher:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-publisher-latest
      - docker-compose#v3.1.0:
          push:
            - expo-publisher:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-publisher-${BRANCH_NAME}
            - expo-publisher:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-publisher-latest

  - label: ':docker: Build expo maze runner image'
    timeout_in_minutes: 10
    plugins:
      - docker-compose#v3.1.0:
          build: expo-maze-runner
          image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
          cache-from:
            - expo-maze-runner:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
      - docker-compose#v3.1.0:
          push:
            - expo-maze-runner:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
            - expo-maze-runner:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-latest

  - label:  ':docker: Build expo APK builder'
    timeout_in_minutes: 40
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    plugins:
      - docker-compose#v3.1.0:
          build: expo-android-builder
          image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
          cache-from:
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-${BRANCH_NAME}
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-latest
      - docker-compose#v3.1.0:
          push:
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-${BRANCH_NAME}
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-latest

  - wait

  - label:  ':docker: Publish expo app'
    timeout_in_minutes: 20
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    plugins:
      - docker-compose#v3.1.0:
          run: expo-publisher

  - wait

  - label:  ':docker: Build expo APK'
    timeout_in_minutes: 20
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    artifact_paths: build/output.apk
    plugins:
      - docker-compose#v3.1.0:
          run: expo-android-builder
          cache-from:
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-latest

  - label: ':docker: Build expo IPA'
    timeout_in_minutes: 20
    agents:
      queue: "opensource-mac"
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    artifact_paths: build/output.ipa
    commands:
      - test/expo/scripts/build-ios.sh
  
  - wait

  - label: 'expo Android 9'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_9"
      APP_LOCATION: "build/output.apk"
    concurrency: 5
    concurrency_group: 'browserstack-app'
  
  - label: 'expo iOS 12'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.ipa"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "IOS_12"
      APP_LOCATION: "build/output.ipa"
    concurrency: 5
    concurrency_group: 'browserstack-app'

  - block: "Trigger full test suite"

  - label: 'expo Android 8'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_8"
      APP_LOCATION: "build/output.apk"
    concurrency: 5
    concurrency_group: 'browserstack-app'

  - label: 'expo Android 7'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_7"
      APP_LOCATION: "build/output.apk"
    concurrency: 5
    concurrency_group: 'browserstack-app'

  - label: 'expo Android 6'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_6"
      APP_LOCATION: "build/output.apk"
    concurrency: 5
    concurrency_group: 'browserstack-app'

  - label: 'expo Android 5'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_5"
      APP_LOCATION: "build/output.apk"
    concurrency: 5
    concurrency_group: 'browserstack-app'

  - label: 'expo iOS 10'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.ipa"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "IOS_10"
      APP_LOCATION: "build/output.ipa"
    concurrency: 5
    concurrency_group: 'browserstack-app'

  - label: 'expo iOS 11'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.ipa"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "IOS_11"
      APP_LOCATION: "build/output.ipa"
    concurrency: 5
    concurrency_group: 'browserstack-app'<commit_msg>(build): increase browserstack-app steps concurrency to 10<commit_after>steps:
  - label:  ':docker: Build expo publisher'
    timeout_in_minutes: 30
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    plugins:
      - docker-compose#v3.1.0:
          build: expo-publisher
          image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
          cache-from:
            - expo-publisher:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-publisher-${BRANCH_NAME}
            - expo-publisher:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-publisher-latest
      - docker-compose#v3.1.0:
          push:
            - expo-publisher:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-publisher-${BRANCH_NAME}
            - expo-publisher:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-publisher-latest

  - label: ':docker: Build expo maze runner image'
    timeout_in_minutes: 10
    plugins:
      - docker-compose#v3.1.0:
          build: expo-maze-runner
          image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
          cache-from:
            - expo-maze-runner:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
      - docker-compose#v3.1.0:
          push:
            - expo-maze-runner:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-${BRANCH_NAME}
            - expo-maze-runner:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:ci-latest

  - label:  ':docker: Build expo APK builder'
    timeout_in_minutes: 40
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    plugins:
      - docker-compose#v3.1.0:
          build: expo-android-builder
          image-repository: 855461928731.dkr.ecr.us-west-1.amazonaws.com/js
          cache-from:
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-${BRANCH_NAME}
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-latest
      - docker-compose#v3.1.0:
          push:
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-${BRANCH_NAME}
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-latest

  - wait

  - label:  ':docker: Publish expo app'
    timeout_in_minutes: 20
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    plugins:
      - docker-compose#v3.1.0:
          run: expo-publisher

  - wait

  - label:  ':docker: Build expo APK'
    timeout_in_minutes: 20
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    artifact_paths: build/output.apk
    plugins:
      - docker-compose#v3.1.0:
          run: expo-android-builder
          cache-from:
            - expo-android-builder:855461928731.dkr.ecr.us-west-1.amazonaws.com/js:expo-android-builder-latest

  - label: ':docker: Build expo IPA'
    timeout_in_minutes: 20
    agents:
      queue: "opensource-mac"
    env:
      EXPO_RELEASE_CHANNEL: ${BUILDKITE_BUILD_ID}
    artifact_paths: build/output.ipa
    commands:
      - test/expo/scripts/build-ios.sh

  - wait

  - label: 'expo Android 9'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_9"
      APP_LOCATION: "build/output.apk"
    concurrency: 10
    concurrency_group: 'browserstack-app'

  - label: 'expo iOS 12'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.ipa"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "IOS_12"
      APP_LOCATION: "build/output.ipa"
    concurrency: 10
    concurrency_group: 'browserstack-app'

  - block: "Trigger full test suite"

  - label: 'expo Android 8'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_8"
      APP_LOCATION: "build/output.apk"
    concurrency: 10
    concurrency_group: 'browserstack-app'

  - label: 'expo Android 7'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_7"
      APP_LOCATION: "build/output.apk"
    concurrency: 10
    concurrency_group: 'browserstack-app'

  - label: 'expo Android 6'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_6"
      APP_LOCATION: "build/output.apk"
    concurrency: 10
    concurrency_group: 'browserstack-app'

  - label: 'expo Android 5'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.apk"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "ANDROID_5"
      APP_LOCATION: "build/output.apk"
    concurrency: 10
    concurrency_group: 'browserstack-app'

  - label: 'expo iOS 10'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.ipa"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "IOS_10"
      APP_LOCATION: "build/output.ipa"
    concurrency: 10
    concurrency_group: 'browserstack-app'

  - label: 'expo iOS 11'
    timeout_in_minutes: 50
    plugins:
      artifacts#v1.2.0:
        download: "build/output.ipa"
      docker-compose#v3.1.0:
        run: expo-maze-runner
        use-aliases: true
    env:
      DEVICE_TYPE: "IOS_11"
      APP_LOCATION: "build/output.ipa"
    concurrency: 10
    concurrency_group: 'browserstack-app'
{'fraction_non_alphanumeric': 0.11980173065613711, 'fraction_numerical': 0.05544820633453751, 'mean_word_length': 2.334453781512605, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '94018', 'n_tokens_mistral': 4946, 'n_tokens_neox': 4483, 'n_words': 641}