def upload_test_results():
    APEXTESTSDB_BASE_URL=os.environ.get('APEXTESTSDB_BASE_URL')
    APEXTESTSDB_USER_ID=os.environ.get('APEXTESTSDB_USER_ID')
    APEXTESTSDB_TOKEN=os.environ.get('APEXTESTSDB_TOKEN')

    PACKAGE=os.environ.get('PACKAGE')
    REPOSITORY_URL=os.environ.get('REPOSITORY_URL')
    BRANCH_NAME=os.environ.get('BRANCH_NAME')
    COMMIT_SHA=os.environ.get('COMMIT_SHA')
    EXECUTION_NAME=os.environ.get('EXECUTION_NAME')
    EXECUTION_URL=os.environ.get('EXECUTION_URL')
    RESULTS_FILE_URL=os.environ.get('RESULTS_FILE_URL')
    ENVIRONMENT_NAME=os.environ.get('ENVIRONMENT_NAME')

    payload = {
        'package': PACKAGE,
        'repository_url': REPOSITORY_URL,
        'branch_name': BRANCH_NAME,
        'commit_sha': COMMIT_SHA,
        'execution_name': EXECUTION_NAME,
        'execution_url': EXECUTION_URL,
        'environment_name': ENVIRONMENT_NAME,
        'user': APEXTESTSDB_USER_ID,
        'token': APEXTESTSDB_TOKEN,
        'results_file_url': RESULTS_FILE_URL,
    }

    response = requests.post(APEXTESTSDB_BASE_URL + '/upload_test_result', data=payload)
    data = json.loads(response.content)
    return '%s/executions/%s' % (APEXTESTSDB_BASE_URL, data['execution_id'])
dataset/ETHPy150Open SalesforceFoundation/CumulusCI/ci/upload_test_results.py/upload_test_results/original