Import shared Travis scripts from core
#229
Open
Travis CI / Travis CI - Pull Request
succeeded
Jan 3, 2024 in 1h 0m 41s
Build Passed
The build passed, just like the previous build.
Details
This is a pull request build.
It is running a build against the merge commit, after merging #229 Import shared Travis scripts from core
.
Any changes that have been made to the main branch before the build ran are also included.
Jobs and Stages
This build has five jobs, running in two sequential stages.
Stage 1: test
This stage passed.
Job | Python | ENV | OS | State |
---|---|---|---|---|
1434.1 3.8 public | 3.8 | PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" | Linux | passed |
1434.2 3.8 private | 3.8 | PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" | Linux | passed |
1434.3 3.9 public | 3.9 | PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" | Linux | passed |
1434.4 3.9 private | 3.9 | PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" | Linux | passed |
Stage 2: Automerge check
This stage passed.
Job | Python | ENV | OS | State |
---|---|---|---|---|
1434.5 | 3.9 | 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=>\"\\\"language\\\"\"}={:MODIFIES_PLUGIN=>\"\\\"False\\\"\"}={:PLUGIN_ONLY=>\"\\\"False\\\"\"}={:WEB_SUBMISSION=>\"\\\"False\\\"\"}"
],
"install": [
"python -m 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",
"conda install -yc conda-forge singularity"
],
"jobs": {
"include": [
{
"name": "3.8 public",
"python": "3.8"
},
{
"name": "3.8 private",
"python": "3.8",
"env": [
{
"PRIVATE_ACCESS": "1"
}
]
},
{
"name": "3.9 public",
"python": "3.9"
},
{
"name": "3.9 private",
"python": "3.9",
"env": [
{
"PRIVATE_ACCESS": "1"
}
]
},
{
"stage": "Automerge check",
"python": "3.9",
"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"
]
}
]
},
"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; \n 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