Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for functional localization #240

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

data in gitignore

59cc2bc
Select commit
Loading
Failed to load commit list.
Open

Support for functional localization #240

data in gitignore
59cc2bc
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request required action Jan 30, 2025 in 45s

Build Errored

The build errored, just like the previous build.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #240 Support for functional localization.
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 errored.

Job Python ENV OS State
1710.1 3.8 public 3.8 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux errored
1710.2 3.8 private 3.8 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux errored
1710.3 3.9 public 3.9 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux errored
1710.4 3.9 private 3.9 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux errored

Stage 2: Automerge check

This stage canceled.

Job Python ENV OS State
1710.5 3.9 PYTEST_SETTINGS="not requires_gpu and not memory_intense and not slow and not travis_slow" Linux canceled

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Xenial)
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "xenial",
  "env": [
    "global={:PYTEST_SETTINGS=>\"\\\"not requires_gpu and not memory_intense and not slow and not travis_slow\\\"\"}={: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"
  ],
  "before_script": [
    "git fetch --depth=50 origin refs/heads/main:refs/heads/main"
  ],
  "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  TESTING_NEEDED=$( python -c \"from brainscore_core.plugin_management.parse_plugin_changes import get_testing_info; get_testing_info(\\\"${CHANGED_FILES}\\\", 'brainscore_language')\" ) && \n  read MODIFIES_PLUGIN PLUGIN_ONLY <<< $TESTING_NEEDED && echo MODIFIES_PLUGIN: $MODIFIES_PLUGIN && echo PLUGIN_ONLY: $PLUGIN_ONLY; \nfi\n",
    "if [ \"$MODIFIES_PLUGIN\" = \"True\" ]; then python -c \"from brainscore_core.plugin_management.parse_plugin_changes import run_changed_plugin_tests; run_changed_plugin_tests(\\\"${CHANGED_FILES}\\\", 'brainscore_language')\"; fi",
    "if [ \"$PRIVATE_ACCESS\" = 1 ] && [ -n \"${GITHUB_TOKEN}\" ] && [ \"$PLUGIN_ONLY\" = \"False\" ]; then pytest -m \"private_access and $PYTEST_SETTINGS\"; fi",
    "if [ \"$PRIVATE_ACCESS\" != 1 ] && [ \"$PLUGIN_ONLY\" = \"False\" ]; then pytest -m \"not private_access and $PYTEST_SETTINGS\" --ignore \"tests/test_submission\"; fi"
  ],
  "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 WEB_SUBMISSION=\"True\"; fi",
    "if $WEB_SUBMISSION = \"True\"; then\n  BRAINSCORE_UID=$(<<<$PR_TITLE | sed -E 's/.*\\(user:([^)]+)\\).*/\\1/') && \n  python -c \"from brainscore_language.submission.endpoints import send_email_to_submitter; send_email_to_submitter(\\\"${BRAINSCORE_UID}\\\", 'language', \\\"${$TRAVIS_PULL_REQUEST}\\\", \\\"${$GMAIL_USERNAME}\\\", \\\"${GMAIL_PASSWORD}\\\")\"; \nfi\n"
  ],
  "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_language')\" )\nfi\n",
          "if [ \"$PLUGIN_ONLY\" = \"True\" ]; then bash ${TRAVIS_BUILD_DIR}/.github/workflows/travis_trigger.sh $GH_WORKFLOW_TRIGGER $TRAVIS_PULL_REQUEST_SHA; fi"
        ]
      }
    ]
  }
}