Robert Raposa
a6ac06f210
Remove outdated safe template recommendations
...
- Remove <%include> linting
- Remove dump_html_escaped_json
2016-04-06 14:57:48 -04:00
Robert Raposa
916723fcaa
Enhance safe template linter
...
- Check includes for Mako templates
- Check display_name_with_default_escaped uses
- Add exceptions for Underscore and <%=
- Skip templates that are Django and not Mako
- Add pragma to disable errors
- Enhance unit tests
- Remove violation mako-js-string-missing-quotes
- Refactor line processing into StringLines
2016-03-30 14:16:51 -04:00
Ben Patterson
161b8f94e1
Merge pull request #11950 from open-craft/omar/reset-test-db
...
Fail fast if the reset-test-db script fails
2016-03-26 12:33:00 -04:00
Omar Khan
7810131457
Fail fast if the reset-test-db script fails
2016-03-25 19:04:29 +07:00
Robert Raposa
0707e0dd73
Add check for multiple page tags
2016-03-24 16:40:11 -04:00
Eric Fischer
7cfa0fa111
Safe template linter should use DOTALL
...
MULTILINE has to do with how '^' and '$' behave, DOTALL will make the
'.' match newlines as well. This catches several failures that were
previously missed.
2016-03-23 15:59:29 -04:00
Peter Fogg
6661063b5a
Minor fixes to the safe template linter.
2016-03-23 11:38:45 -04:00
Robert Raposa
f150fd9b3a
Merge pull request #11800 from edx/robrap/safe-template-linter
...
TNL-4214: Add safe template linter
2016-03-22 10:40:29 -04:00
Robert Raposa
52efa68b8b
Change to output as you go
2016-03-21 22:51:15 -04:00
Robert Raposa
0538dea994
Fix review comments
...
Changes include:
- Fix code review comments
- Add comments
- Rename variables and files
2016-03-21 22:31:57 -04:00
Ben Patterson
53c315a310
Builds: empty xunit file as a function.
...
This also ensures that future lms shards are handled in a
smarter way, like our bok-choy shards. When no shard is
specified, rather than running all shards, only create
an empty xunit report.
2016-03-19 12:57:54 -04:00
Ned Batchelder
d2b1d535db
Add help to the template linter
2016-03-17 15:24:53 -04:00
Ben Patterson
c504029b39
Create a third shard for lms unit tests.
...
This will leverage the nose attrib plugin to allow us
to break tests apart on our build system to run
in parallel on separate nodes.
2016-03-17 12:01:42 -04:00
Robert Raposa
eb42cb1f38
Add safe template linter
...
- Initial lint of Mako templates
- Initial lint of Underscore.js templates
2016-03-12 21:12:06 -05: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
f1b366589b
Remove ruby dependencies.
...
Sass compilation is no longer dependent on Ruby, so we are
removing its dependencies.
2016-02-08 17:02:55 -05:00
Jesse Zoldak
855d410159
Update the Python version
...
Other small changes:
* output the list of installed python packages
* tee the pylint output to the console so the build doesn't timeout when computing violations
2016-02-05 10:15:43 -05:00
Ned Batchelder
367a90bb95
Automatically find a better email for a committer than x@users.noreply.github.com
2016-02-01 07:39:00 -05:00
Ben Patterson
31841bdcbb
Merge pull request #11271 from edx/benp/9-bokchoy-shards
...
Benp/9 bokchoy shards
2016-01-20 12:09:53 -05:00
Ben Patterson
d0f6aee339
Update script for 9 shards.
2016-01-19 17:20:21 -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
Ben Patterson
99b029969c
Merge pull request #11097 from edx/ziafazal/SOL-1560
...
ziafazal/SOL-1560:load db_fixures when run with --testsonly
2016-01-04 09:00:38 -05:00
Zia Fazal
2f275f31b4
fixed scenario when tests run using cached sql schema
2015-12-31 20:03:28 +05:00
Christine Lytwynec
0c5cd86c5d
remove cut-branch option from release.py
2015-12-28 14:43:15 -05:00
Christine Lytwynec
590e0481ac
Merge pull request #11052 from edx/clytwynec/a11y-tests
...
Fix exit status of A11y tests
2015-12-22 11:47:31 -05:00
Christine Lytwynec
51766a73d8
Fix exit status of A11y tests
2015-12-22 10:02:30 -05:00
Ned Batchelder
756941524c
Update to latest edx-lint
2015-12-18 20:56:07 -05:00
Sarina Canelake
96ddf544ff
Remove Pylint violations
2015-12-17 16:29:28 -05:00
Ned Batchelder
0632240331
Pylint count is below 5000
2015-12-14 09:18:29 -05:00
Sarina Canelake
edf6730ca0
Pylint fixes to symmath module
2015-12-08 22:56:28 -05:00
David Baumgold
e48e250b1b
Merge pull request #10712 from edx/github-capital-h
...
GitHub has a capital H
2015-11-24 09:26:55 -05:00
Ned Batchelder
0872732cf0
Fix pylint C7630 (literal used as attribute) violations
...
There's no need to use a string literal in setattr, delattr, or the
two-argument form of getattr.
2015-11-23 15:32:54 -05:00
David Baumgold
2e71a66daa
GitHub has a capital H
2015-11-23 15:06:33 -05:00
Ben Patterson
72fbcdc606
Merge pull request #10687 from edx/benp/fix-edxtest-djan18
...
edxtest needs to be created on naked systems.
2015-11-20 08:31:36 -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
clrux
7f4dd4dbf5
Merge pull request #10679 from edx/clrux/add-gettext-to-global-jshint-ignore
...
Adding gettext to JSHint ignore
2015-11-19 15:45:48 -05:00
Chris Rodriguez
d1efc3fed1
Updating JSHint threshold
2015-11-19 14:58:05 -05:00
Usman Khalid
bc22f592c6
Merge pull request #10664 from edx/usman/regenerate-db-cache
...
Recreate db caches for bokchoy and lettuce
2015-11-19 19:20:21 +05:00
Usman Khalid
d8fd8ed678
Recreate db caches for bokchoy and lettuce
2015-11-18 21:08:05 +05:00
muhammad-ammar
8d5f153201
Merge remote-tracking branch 'origin/release' into dj18-release-merge
...
Conflicts:
common/djangoapps/util/testing.py
lms/djangoapps/instructor/views/api.py
lms/djangoapps/teams/tests/test_views.py
openedx/core/djangoapps/programs/models.py
openedx/core/djangoapps/user_api/accounts/tests/test_views.py
requirements/edx/github.txt
2015-11-18 17:53:44 +05:00
Christine Lytwynec
9aa1f2b73f
use .jshintignore instead of hardcoded directory list
2015-11-13 16:19:02 -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
Ned Batchelder
58e0633eae
This script is now in github.com/nedbat/xunit_tools
2015-11-09 06:11:42 -05:00
Christine Lytwynec
468864a314
add paver test_a11y and a11y_coverage commands
2015-11-05 13:55:35 -05:00
Ned Batchelder
68182b13d2
Merge pull request #10474 from edx/ned/django-pylint
...
Use 0.3.2 of edx-lint, with pylint-django and C extensions read
2015-11-04 06:16:01 -05:00