Commit Graph

30 Commits

Author SHA1 Message Date
Zubair Shakoor
70f6f5ad9e fix: replaced mysql57 hosts with mysql80 (#33147) 2023-10-04 17:35:18 +05:00
Kyle McCormick
cd24534653 build: run ShellCheck in CI (#31809)
build: run ShellCheck

Adds a ShellCheck check to edx-platform PRs and master,
using the shared workflow & template from the .github repo.
This will become a "required" check once it passes for 2 straight weeks on master.

Brings all existing shell scripts into compliance with ShellCheck.
2023-03-10 16:10:56 +00:00
Julia Eskew
47b37ed191 Revert "fix: Disable column-statistics during mysqldump command."
This reverts commit b84e8937ff.
2021-06-10 16:30:08 -04:00
Julia Eskew
b84e8937ff fix: Disable column-statistics during mysqldump command. This option
was recently enabled by default in mysqldump, but the generation of
histogram statistics fails in devstack during this script's mysqldump
commands. The SQL statement and output of the failure:

mysql> SELECT \
COLUMN_NAME, JSON_EXTRACT(HISTOGRAM, '$."number-of-buckets-specified"') \
FROM information_schema.COLUMN_STATISTICS \
WHERE \
SCHEMA_NAME = 'edxtest' AND \
TABLE_NAME = 'agreements_integritysignature';
ERROR 1109 (42S02): Unknown table 'COLUMN_STATISTICS' in information_schema
2021-06-10 12:21:24 -04:00
Aarif
1a31236404 updated config to use mysql 5.7 container (#25362) 2020-10-29 21:51:39 +05:00
Jeremy Bowman
3941e40b1b Skip date comments on all bok-choy DB dumps (#22651)
In the script used to create the bok-choy database cache files, we've been passing in the parameters to omit timestamps that change for every run in some of the mysqldump commands but not all of them. Use them consistently so we can stop creating new redundant automated bok-choy DB cache PRs on almost every merge to edx-platform.
2019-12-30 15:14:21 -05:00
Jeremy Bowman
fb3f786c66 TE-2583 Avoid redundant bok-choy DB setup steps 2018-07-02 18:13:50 -04:00
Stuart Young
ee02919ad7 use db cache in jenkins bok choy builds
move migration calculation to reset test-db script
2018-01-10 11:58:27 -05:00
Stuart Young
454e5a3b55 bokchoy option for explicitly running migrations 2017-12-29 08:51:32 -05:00
Jesse Zoldak
00f6b36a49 Refactor reset-test-db.sh script and allow for an option to rebuild the cache 2017-12-22 11:33:57 -05:00
Jeremy Bowman
ba06372cac PLAT-1780 Remove dependency on django-extensions 2017-10-27 13:19:12 -04:00
Jeremy Bowman
5a6b8cd35b PLAT-1228 Support bok-choy in Docker Devstack 2017-06-22 15:03:12 -04:00
Renzo Lucioni
835c9cc957 Prevent dumpdata from dumping api_admin's Catalog model
The Catalog model is unmanaged, meaning no corresponding table exists in the database. When dumpdata tries to dump this model, it chokes because there's no table to read from.
2016-06-01 14:21:00 -04:00
Omar Khan
7810131457 Fail fast if the reset-test-db script fails 2016-03-25 19:04:29 +07:00
Kevin Falcone
b4ac588ce1 Update reset-test-db.sh for bok-choy
This now correctly migrates and dumps files for both databases.

Run lettuce migrations for both databases
2016-02-29 13:59:29 -05:00
Calen Pennington
dd90c55602 Create a new CSMHExtended table to hold our new data
This is a clone (copy) of CSMH's declaration and methods with an added
id of UnsignedBigInAutoField

We should be able to delete the save_history code, but needs testing.

Add error logging when capa failures happen

Put StudentModuleHistory into its own database

Bump out the primary key on CSMHE

This gives us a gap to backfill as needed.
Since the new table's pk is an unsigned bigint, even for people who don't
consolidate CSMH into CSMHE, the lost rows are unlikely to matter.

Remove StudentModuleHistory cleaner
2016-02-29 13:58:39 -05:00
Kevin Falcone
3a296a9183 Don't delete the whole db cache dir
It also contains the lettuce caches.
2016-02-18 22:43:47 -05:00
Ben Patterson
15b015abdc Only update comments; leave reset_db in place. 2016-01-14 06:23:08 -05:00
Ben Patterson
d4554fb14d TE-1133 Fix to allow for serversonly /testsonly and full test modes.
This will ensure a clean database for new runs, and will likewise
allow for the serversonly / testsonly approach for developing
bok-choy acceptance tests. The cleaner model will completely
rebuild the edxtest database for any new test run. This will
not be a costly maneuver because of our test cache.
2016-01-13 17:37:59 -05:00
Jesse Zoldak
a675081275 Add comments to the bok-choy DB reset script 2016-01-12 16:59:01 -05:00
Jesse Zoldak
157bd19e20 Clear out the bok choy DB with reset_db, not flush 2016-01-12 11:33:02 -05:00
Zia Fazal
2f275f31b4 fixed scenario when tests run using cached sql schema 2015-12-31 20:03:28 +05:00
Ben Patterson
c475f2830e edxtest needs to be created on naked systems.
This is a partial revert from d8fd8ed678
2015-11-19 17:39:41 -05:00
Usman Khalid
d8fd8ed678 Recreate db caches for bokchoy and lettuce 2015-11-18 21:08:05 +05:00
Usman Khalid
6cb62f2697 Rebase upgrade Django to v1.8.5
Please note that this is a squshed commit and the work of:
Symbolist, macdiesel, nedbat, doctoryes, muzaffaryousaf and muhammad-ammar
2015-11-10 15:00:19 -05:00
Don Mitchell
d49c82f9bd Add configuration to studio for asides 2014-12-18 14:43:22 -05:00
Ben Patterson
a19b97c61f Don't use 'test' db for mysql since it's reserved.
This db name is reserved and used by mysql installations. This can cause
conflicts when trying to populate our own 'test' database on mysql.
2014-11-13 14:41:50 -05:00
Ben Patterson
8e2d794264 Improve compatibility with additional mysql installations.
Some mysql debian packages do not grant mysql user as many permissions, and
we need to add them.
2014-11-12 22:11:59 -05:00
Feanil Patel
22b97338c9 Create the test database if it doesn't exist.
There is a bootstrapping case where the test DB doesn't exist which causes reset_db to fail.
2014-07-15 13:55:18 -04:00
Will Daly
a86d56ccba Cache databases to speed up acceptance tests 2014-01-28 14:39:26 -05:00