Skip to content

Update deposit.py

e483238
Select commit
Loading
Failed to load commit list.
Merged

OA加速化ワークフロー_デモ版 #588

Update deposit.py
e483238
Select commit
Loading
Failed to load commit list.
Travis CI / Travis CI - Pull Request required action May 19, 2025 in 6m 22s

Build Errored

The build errored. This is a change from the previous build, which passed.

Details

This is a pull request build.

It is running a build against the merge commit, after merging #588 OA加速化ワークフロー_デモ版.
Any changes that have been made to the rcos-release branch before the build ran are also included.

Jobs and Stages

This build has five jobs, running in parallel.

Job Python ENV OS State
9362.1 3.6 WHEELHOUSE="$HOME/.cache/wheelhouse" Linux errored
9362.2 3.6 WHEELHOUSE="$HOME/.cache/wheelhouse" Linux errored
9362.3 3.6 WHEELHOUSE="$HOME/.cache/wheelhouse" Linux errored
9362.4 3.6 WHEELHOUSE="$HOME/.cache/wheelhouse" Linux errored
9362.5 3.6 WHEELHOUSE="$HOME/.cache/wheelhouse" Linux errored

Build Configuration

Build Option Setting
Language Python
Operating System Linux (Trusty)
Python Version 3.6
Build Configuration
{
  "language": "python",
  "os": [
    "linux"
  ],
  "dist": "trusty",
  "python": [
    "3.6"
  ],
  "sudo": false,
  "cache": {
    "yarn": true,
    "pip": true,
    "directories": [
      "$HOME/.cache",
      "node_modules",
      "website/static/vendor/bower_components"
    ]
  },
  "env": [
    "global={:WHEELHOUSE=>\"\\\"$HOME/.cache/wheelhouse\\\"\"}={:LIBXML2_DEB=>\"\\\"libxml2-dbg_2.9.1+dfsg1-3ubuntu4.13_amd64.deb\\\"\"}={:ELASTICSEARCH_ARCHIVE=>\"\\\"elasticsearch-2.4.5.tar.gz\\\"\"}={:ELASTICSEARCH6_ARCHIVE=>\"\\\"elasticsearch-6.3.1.tar.gz\\\"\"}={:LIBJEMALLOC_DEB=>\"\\\"libjemalloc1_3.5.1-2_amd64.deb\\\"\"}={:LIBPCRE_DEB=>\"\\\"libpcre3_8.31-2ubuntu2.3_amd64.deb\\\"\"}={:OSF_DB_PORT=>\"\\\"54321\\\"\"}={:BOTO_CONFIG=>\"/dev/null\"}={:ES_GC_OPTS=>\"\\\"-XX:+UseG1GC\\\"\"}={:ES_HEAP_SIZE=>\"\\\"1024m\\\"\"} jobs={:TEST_BUILD=>\"\\\"addons\\\"\"}={:TEST_BUILD=>\"\\\"website\\\"\"}={:TEST_BUILD=>\"\\\"api1_and_js\\\"\"}={:TEST_BUILD=>\"\\\"api2\\\"\"}={:TEST_BUILD=>\"\\\"api3_and_osf\\\"\"}"
  ],
  "before_install": [
    "mkdir -p $HOME/.cache/downloads\nmkdir -p $HOME/.cache/pip\nmkdir -p $HOME/.cache/wheelhouse\nmkdir -p $HOME/.cache/testmon\nrm -rf node_modules  ## TODO remove this later\n",
    "cd $HOME/.cache/downloads\n\nif [ ! -f \"$LIBXML2_DEB\" ]; then\n  curl -SLO http://security.ubuntu.com/ubuntu/pool/main/libx/libxml2/$LIBXML2_DEB\nfi\n\ndpkg -x $LIBXML2_DEB /tmp/libxml2\n",
    "export LD_LIBRARY_PATH=/tmp/libxml2/usr/lib/x86_64-linux-gnu\n/usr/lib/postgresql/9.6/bin/initdb /tmp/postgres/data --nosync -U postgres\nsed -i -e 's/#fsync.*/fsync = off/' /tmp/postgres/data/postgresql.conf\nsed -i -e 's/#synchronous_commit.*/synchronous_commit = off/' /tmp/postgres/data/postgresql.conf\nsed -i -e 's/#full_page_writes.*/full_page_writes = off/' /tmp/postgres/data/postgresql.conf\n/usr/lib/postgresql/9.6/bin/postgres -k /tmp -D /tmp/postgres/data -p 54321 > /dev/null & export POSTGRES_PID=$!\n",
    "cd $HOME/.cache/downloads\n\nif [ ! -f \"$ELASTICSEARCH_ARCHIVE\" ]; then\n  curl -SLO https://download.elasticsearch.org/elasticsearch/elasticsearch/$ELASTICSEARCH_ARCHIVE\nfi\n\nif [ ! -f \"$ELASTICSEARCH_ARCHIVE.sha1.txt\" ]; then\n  curl -SLO https://download.elasticsearch.org/elasticsearch/elasticsearch/$ELASTICSEARCH_ARCHIVE.sha1.txt\nfi\n\nsha1sum --check $ELASTICSEARCH_ARCHIVE.sha1.txt\n\nmkdir -p /tmp/elasticsearch\ntar xzf $ELASTICSEARCH_ARCHIVE -C /tmp/elasticsearch --strip-components=1\n/tmp/elasticsearch/bin/plugin install analysis-kuromoji\n/tmp/elasticsearch/bin/plugin install analysis-icu\n",
    "/tmp/elasticsearch/bin/elasticsearch > /dev/null & export ELASTICSEARCH_PID=$!",
    "while true; do\n    sleep 5\n    curl -sf http://localhost:9200/_cluster/health?wait_for_status=yellow\n    if [ $? -eq 0 ]; then\n        break\n    fi\ndone",
    "\nif [ ! -f \"$ELASTICSEARCH6_ARCHIVE\" ]; then\n  curl -SLO https://artifacts.elastic.co/downloads/elasticsearch/$ELASTICSEARCH6_ARCHIVE\nfi\n\nif [ ! -f \"$ELASTICSEARCH6_ARCHIVE.sha1.txt\" ]; then\n  curl -SLO https://artifacts.elastic.co/downloads/elasticsearch/$ELASTICSEARCH6_ARCHIVE.sha1.txt\nfi\n\nsha1sum --check $ELASTICSEARCH6_ARCHIVE.sha1.txt\n\nmkdir -p /tmp/elasticsearch6\ntar xzf $ELASTICSEARCH6_ARCHIVE -C /tmp/elasticsearch6 --strip-components=1\n",
    "/tmp/elasticsearch6/bin/elasticsearch > /dev/null & export ELASTICSEARCH6_PID=$!",
    "while true; do\n    sleep 5\n    curl -sf http://localhost:9201/_cluster/health?wait_for_status=yellow\n    if [ $? -eq 0 ]; then\n        break\n    fi\ndone"
  ],
  "install": [
    "cd $TRAVIS_BUILD_DIR",
    "cp website/settings/local-travis.py website/settings/local.py",
    "cp api/base/settings/local-travis.py api/base/settings/local.py",
    "[ -d $HOME/preprints ] || ( mkdir -p $HOME/preprints && touch $HOME/preprints/index.html )",
    "travis_retry pip install --upgrade pip --trusted-host pypi.python.org",
    "travis_retry pip install invoke==0.13.0",
    "travis_retry pip install flake8==2.4.0 --force-reinstall --upgrade",
    "travis_retry invoke wheelhouse --dev --addons",
    "if [ \"$TEST_BUILD\" = \"api1_and_js\" ]; then\n nvm install 8.6.0\n nvm use 8.6.0\n curl -o- -L https://yarnpkg.com/install.sh | bash\n export PATH=$HOME/.yarn/bin:$PATH\n travis_retry invoke assets --dev\nfi\n",
    "travis_retry invoke travis_addon_settings",
    "travis_retry pip install psycopg2==2.7.3 --no-binary psycopg2",
    "travis_retry invoke requirements --dev --addons",
    "pip uninstall uritemplate.py --yes",
    "pip install uritemplate.py==0.3.0",
    "mkdir -p ./user_key_info",
    "cp root_cert_verifycate.pem ./user_key_info",
    "netstat -an|grep tcp.*LISTEN"
  ],
  "script": [
    "export COVERAGE=`if [ \"$TRAVIS_BRANCH\" == \"master-w-coverage\" ]; then echo \"--coverage\"; else echo \"\"; fi`",
    "export TESTMON=`if [[ \"$TRAVIS_PULL_REQUEST_BRANCH\" == \"\" && \"$TRAVIS_BRANCH\" == \"develop\" || \"$TRAVIS_PULL_REQUEST_BRANCH\" == \"\" && \"$TRAVIS_BRANCH\" == \"master\" ]]; then echo \"\"; else  echo \"--testmon\"; fi`",
    "export TESTMON_DATAFILE=$HOME/.cache/testmon/.testmondata_$TEST_BUILD",
    "rm $TESTMON_DATAFILE",
    "invoke test_travis_$TEST_BUILD -n 1 $COVERAGE $TESTMON"
  ],
  "after_success": [
    "if [[ \"$TRAVIS_BRANCH\" == \"master-w-coverage\" ]]; then coveralls; fi"
  ],
  "before_cache": [
    "inv remove_failures_from_testmon --db-path=$HOME/.cache/testmon/.testmondata_$TEST_BUILD",
    "rm -Rf $HOME/.cache/pip/http",
    "rm -f $HOME/.cache/pip/log/debug.log",
    "rm -f $HOME/.cache/wheelhouse/modular_odm-*.whl",
    "rm -f $HOME/.cache/wheelhouse/mfr-*.whl",
    "rm -f $HOME/.cache/wheelhouse/responses-*.whl",
    "rm -f $HOME/.cache/wheelhouse/mendeley-*.whl",
    "rm -f $HOME/.cache/wheelhouse/feedparser-*.whl",
    "kill -9 $POSTGRES_PID",
    "kill -9 $ELASTICSEARCH_PID",
    "kill -9 $ELASTICSEARCH6_PID"
  ],
  "branches": {
    "except": [
      "/^[0-9]/"
    ]
  }
}