Setup GitHub Actions and Travis for automated submissions #428
Travis CI / Travis CI - Branch
succeeded
Jan 4, 2024 in 11m 43s
Build Passed
The build passed, just like the previous build.
Details
This is a normal build for the kvf/automated_submissions branch. You should be able to reproduce it by checking out the branch locally.
Jobs and Stages
This build has two jobs, running in parallel.
Job | Python | ENV | OS | State |
---|---|---|---|---|
3531.1 3.7 public | 3.7 | PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" | Linux | passed |
3531.2 3.7 private | 3.7 | PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" | Linux | passed |
Build Configuration
Build Option | Setting |
---|---|
Language | Python |
Operating System | Linux (Xenial) |
Build Configuration
{
"language": "python",
"os": [
"linux"
],
"dist": "xenial",
"version": "~> 1.0",
"env": [
"global={:PYTEST_SETTINGS=>\"\\\"not requires_gpu and not memory_intense and not slow and not travis_slow\\\"\"}={:DOMAIN=>\"\\\"vision\\\"\"}={:MODIFIES_PLUGIN=>\"\\\"False\\\"\"}={:PLUGIN_ONLY=>\"\\\"False\\\"\"}={:WEB_SUBMISSION=>\"\\\"False\\\"\"}"
],
"before_install": [
"pip install --upgrade pip",
"pip install setuptools==60.5.0",
"pip install pytest",
"pip install awscli"
],
"install": [
"pip install -e \".[test]\"",
"wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh",
"bash miniconda.sh -b -p $HOME/miniconda",
"source \"$HOME/miniconda/etc/profile.d/conda.sh\"",
"hash -r",
"conda config --set always_yes yes --set changeps1 no",
"conda update -q conda",
"conda info -a",
"pip list"
],
"jobs": {
"include": [
{
"name": "3.7 public",
"python": "3.7"
},
{
"name": "3.7 private",
"python": "3.7",
"env": [
{
"PRIVATE_ACCESS": "1"
},
{
"secure": "f1rWEwrslh7qa2g/QlKs001sGC3uaOxZNQSfNOPj+TMCqEo2c6OzImC4hyz+WqCyc6N/lFT4yYo2RhvaqStHMRmu/+9aZmuH05Bb0KQpfzNFA+yGa/U5W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787vKn2Cm4XmhyQ0UBhvwsPZ351l27wZYuNV07o9Ik83hN/w4o2v899QQ/zbX42Iy8ZUCWOPX7MV7+TA7SMxru3qx7HL5hDM8kTetxbLB6Ckr+JOdX8L2Fb5L3TVDpsvfv0ebXgwaQR/ez8/7bcXmBqcERApHDz73HaMXUap+iDR4FLdXE="
},
{
"AWS_DEFAULT_REGION": "us-east-1"
}
]
},
{
"stage": "Automerge check",
"python": "3.7",
"install": [
"python -m pip install -e \".[test]\""
],
"if": "type = pull_request",
"script": [
"if [ ! -z \"$TRAVIS_PULL_REQUEST_BRANCH\" ]; then \n CHANGED_FILES=$( git config remote.origin.fetch \"+refs/heads/*:refs/remotes/origin/*\" && git fetch && echo $(git diff --name-only origin/$TRAVIS_PULL_REQUEST_BRANCH origin/$TRAVIS_BRANCH -C $TRAVIS_BUILD_DIR) | tr '\\n' ' ' ) &&\n PLUGIN_ONLY=$( python -c \"from brainscore_core.plugin_management.parse_plugin_changes import is_plugin_only; is_plugin_only(\\\"${CHANGED_FILES}\\\", \\\"brainscore_${DOMAIN}\\\")\" )\nfi\n",
"if [ \"$PLUGIN_ONLY\" = \"True\" ]; then \n bash ${TRAVIS_BUILD_DIR}/.github/workflows/travis_trigger.sh $GH_WORKFLOW_TRIGGER $TRAVIS_PULL_REQUEST_SHA; \nfi\n"
]
}
]
},
"notifications": {
"slack": [
]
},
"script": [
"echo 'travis_fold:start:configure'\nif [ ! -z "$TRAVIS_PULL_REQUEST_BRANCH" ]; then \n CHANGED_FILES=$( git config remote.origin.fetch "+refs/heads/:refs/remotes/origin/" && git fetch && echo $(git diff --name-only origin/$TRAVIS_PULL_REQUEST_BRANCH origin/$TRAVIS_BRANCH -C $TRAVIS_BUILD_DIR) | tr '\n' ' ' ) &&\n TESTING_NEEDED=$( python -c "from brainscore_core.plugin_management.parse_plugin_changes import get_testing_info; get_testing_info(\"${CHANGED_FILES}\", \"brainscore_${DOMAIN}\")" ) && \n read MODIFIES_PLUGIN PLUGIN_ONLY <<< $TESTING_NEEDED && echo MODIFIES_PLUGIN: $MODIFIES_PLUGIN && echo PLUGIN_ONLY: $PLUGIN_ONLY; \nfi\necho 'travis_fold:end:configure'\n",
"if [ "$MODIFIES_PLUGIN" = "True" ]; then \n python -c "from brainscore_core.plugin_management.parse_plugin_changes import run_changed_plugin_tests; run_changed_plugin_tests(\"${CHANGED_FILES}\", \"brainscore_${DOMAIN}\")"; \nfi\n",
"if [ "$PRIVATE_ACCESS" = 1 ] && [ -n "${GITHUB_TOKEN}" ] && [ "$PLUGIN_ONLY" = "False" ]; then \n pytest -m "private_access and $PYTEST_SETTINGS"; \nfi\n",
"if [ "$PRIVATE_ACCESS" != 1 ] && [ "$PLUGIN_ONLY" = "False" ]; then \n pytest -m "not private_access and $PYTEST_SETTINGS" --ignore "tests/test_submission"; \nfi"
],
"after_failure": [
"PR_TITLE=$(curl https://github.com/${TRAVIS_REPO_SLUG}/pull/${TRAVIS_PULL_REQUEST} 2> /dev/null | grep "title" | head -1)",
"if [[ "$PR_TITLE" = "brain-score.org (user:"* ]]; then \n WEB_SUBMISSION="True"; \nfi\n",
"if $WEB_SUBMISSION = "True"; then\n BRAINSCORE_UID=$(<<<$PR_TITLE | sed -E 's/.\(user:([^)]+)\)./\1/') && \n python -c "from brainscore_$DOMAIN.submission.endpoints import send_email_to_submitter; send_email_to_submitter(\"${BRAINSCORE_UID}\", \"${$DOMAIN}\", \"${$TRAVIS_PULL_REQUEST}\", \"${$GMAIL_USERNAME}\", \"${GMAIL_PASSWORD}\")"; \nfi"
]
}
Loading