<commit_before>- job:
    name: 'daily-shame-mail'
    description: 'Send the daily flaky issue shame email. Test owner: test infra team.'
    properties:
        - build-discarder:
            num-to-keep: 20
    triggers:
        - timed: 'H 8 * * 1-5'
    wrappers:
        - credentials-binding:
            - text:
                credential-id: '8864846d-2090-4173-9b00-163a79c51913'  # read-only GitHub API token
                variable: 'GITHUB_API_TOKEN'
            - username-password-separated:
                credential-id: '<PASSWORD>-<PASSWORD>'  # sendgrid credentials
                username: 'SMTP_USER'
                password: '<PASSWORD>'
    builders:
        - shell: |
            set +x  # Don't echo credentials into the build log
            IMAGE=gcr.io/google_containers/shame-mailer:2016-05-03-a8b2ceb
            echo "Running ${IMAGE}"
            docker run \
              -e ALLOWED_SHAME_DOMAINS="google.com,redhat.com" \
              -e GITHUB_API_TOKEN="${GITHUB_API_TOKEN}" \
              -e SHAME_FROM="<EMAIL>" \
              -e SHAME_CC="<EMAIL>" \
              -e SMTP_SERVER="smtp.sendgrid.net:2525" \
              -e SMTP_USER="${SMTP_USER}" \
              -e SMTP_PASS="${SMTP_PASS}" \
              "${IMAGE}"<commit_msg>Run shame mailer on master<commit_after>- job:
    name: 'daily-shame-mail'
    description: 'Send the daily flaky issue shame email. Test owner: test infra team.'
    node: 'master'
    properties:
        - build-discarder:
            num-to-keep: 20
    triggers:
        - timed: 'H 8 * * 1-5'
    wrappers:
        - credentials-binding:
            - text:
                credential-id: '8864846d-2090-4173-9b00-163a79c51913'  # read-only GitHub API token
                variable: 'GITHUB_API_TOKEN'
            - username-password-separated:
                credential-id: '8184516b-02e3-426f-be2c-81296ff6d545'  # sendgrid credentials
                username: 'SMTP_USER'
                password: '<PASSWORD>'
    builders:
        - shell: |
            set +x  # Don't echo credentials into the build log
            IMAGE=gcr.io/google_containers/shame-mailer:2016-05-03-a8b2ceb
            echo "Running ${IMAGE}"
            docker run \
              -e ALLOWED_SHAME_DOMAINS="google.com,redhat.com" \
              -e GITHUB_API_TOKEN="${GITHUB_API_TOKEN}" \
              -e SHAME_FROM="<EMAIL>" \
              -e SHAME_CC="<EMAIL>" \
              -e SMTP_SERVER="smtp.sendgrid.net:2525" \
              -e SMTP_USER="${SMTP_USER}" \
              -e SMTP_PASS="${SMTP_PASS}" \
              "${IMAGE}"
{'fraction_non_alphanumeric': 0.11832500960430273, 'fraction_numerical': 0.04494813676527084, 'mean_word_length': 1.6517311608961303, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6344145', 'n_tokens_mistral': 924, 'n_tokens_neox': 838, 'n_words': 161}