Commit f4cc54a5 by bmedx

Fix for devstack sqlite segfaults PLAT-1637

parent 2d9eb570
#!/usr/bin/env bash
#
# Script to update sqlite3 to a version which will not segfault
# in out Django unit tests.
#
curl https://codeload.github.com/ghaering/pysqlite/tar.gz/2.8.3 > pysqlite-2.8.3.tar.gz
curl https://www.sqlite.org/2016/sqlite-autoconf-3140100.tar.gz > sqlite-autoconf-3140100.tar.gz
tar -xzvf sqlite-autoconf-3140100.tar.gz
tar -xzvf pysqlite-2.8.3.tar.gz
cp -av sqlite-autoconf-3140100/. pysqlite-2.8.3/
cd ./pysqlite-2.8.3 && python setup.py build_static install
cd ..
rm -rf pysqlite-2.8.3*
rm -rf sqlite-autoconf-3140100*
rm upgrade_sqlite.sh
......@@ -178,6 +178,30 @@
- install
- install:app-requirements
# Copy the sqlite upgrade script to { edx_app_dir }
- name: copy the sqlite script to the desired location
copy:
src: 'edx/app/edxapp/upgrade_sqlite.sh'
dest: '{{ edxapp_app_dir }}/upgrade_sqlite.sh'
owner: '{{ edxapp_user }}'
group: '{{ edxapp_user }}'
mode: '0750'
when: devstack is defined and devstack
tags:
- install
- install:app-requirements
# Fix up sqlite3 on devstacks to prevent segfaults when running tests
- name: install upgraded sqlite
shell: "{{ edxapp_app_dir }}/upgrade_sqlite.sh"
args:
chdir: "{{ edxapp_app_dir }}"
become_user: "{{ edxapp_user }}"
when: devstack is defined and devstack
tags:
- install
- install:app-requirements
# If using CAS and you have a function for mapping attributes, install
# the module here. The next few tasks set up the python code sandbox
- name: install CAS attribute module
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment