Commit graph

50 commits

Author SHA1 Message Date
Russ Housley 45b14c83a7 Convert generate-draft-aliaes and generate-wg-aliases into management commands: generate_draft_aliases and generate_group_aliases. Also provide tests for the new management commands.
- Legacy-Id: 18913
2021-03-13 17:30:35 +00:00
Henrik Levkowetz 2552e60c72 Disabled patch warnings when running 'check' command.
- Legacy-Id: 18640
2020-10-26 14:03:19 +00:00
Henrik Levkowetz 392a38f47d Use BASE_DIR as starting point for finding patch files in checks.maybe_patch_libraries(), instead of CWD.
- Legacy-Id: 18468
2020-09-04 18:39:54 +00:00
Henrik Levkowetz ba01af0c4d Changed the maybe_patch_libraries() check action to emit 'patched now, restart needed' errors in test or development, but not in production, where we don't care if the patches were applied earlier or just now.
- Legacy-Id: 18408
2020-08-24 11:29:41 +00:00
Henrik Levkowetz 16fb382943 Made the patch utility return information to distinguish already patched files from successful patch application, and modified our checks extensions to signal when patches have been applied and a ccommand needs to be re-run.
- Legacy-Id: 18386
2020-08-20 11:36:46 +00:00
Henrik Levkowetz 25e644d0e2 Added support for pulling yang modules from yangcatalog.org.
- Legacy-Id: 18141
2020-07-08 18:44:56 +00:00
Henrik Levkowetz ebf9d1d32c Fixed a Py2/Py3 issue in patch.py.
- Legacy-Id: 17677
2020-04-23 04:15:08 +00:00
Henrik Levkowetz 52a01645c7 PyFlakes fix
- Legacy-Id: 17669
2020-04-20 18:26:57 +00:00
Henrik Levkowetz c1f6743b36 Removed code from checks.py that isn't needed any more under Py3.
- Legacy-Id: 17666
2020-04-20 17:55:07 +00:00
Henrik Levkowetz 726fcbf27d Removed all __future__ imports.
- Legacy-Id: 17391
2020-03-05 23:53:42 +00:00
Henrik Levkowetz e9a37d8ac8 Removed six.text_type(), changed six.moves.urllib to plain urllib, and removed now unused six imports.
- Legacy-Id: 17385
2020-03-05 14:41:41 +00:00
Henrik Levkowetz 8f2280130b Moved patch.py into project tree -- it's not being maintained any more.
- Legacy-Id: 17330
2020-02-23 16:20:43 +00:00
Henrik Levkowetz 33e8733b91 Fixed up mypy issues or added type:ignore comments as needed for a clean mypy run.
- Legacy-Id: 16772
2019-09-30 15:42:18 +00:00
Henrik Levkowetz 6ea87414b5 Fixed some issues with the changed import path of ietf.settings_local.
- Legacy-Id: 16507
2019-07-17 14:27:26 +00:00
Henrik Levkowetz 820539e822 Changed import path for settings_local.py to work with absolute_import under Py2, and also under Py3.
- Legacy-Id: 16506
2019-07-17 13:42:36 +00:00
Henrik Levkowetz 855716e1d5 Py2/3 compatibility: Added __future__ import
- Legacy-Id: 16448
2019-07-15 15:46:06 +00:00
Henrik Levkowetz 5e4146cb58 Fixed a bytes/str issue in a patch library call.
- Legacy-Id: 16326
2019-06-28 20:47:36 +00:00
Henrik Levkowetz 9210af58fa Added more hint information when patch actions in ietf/checks.py fails.
- Legacy-Id: 15438
2018-08-16 16:03:31 +00:00
Henrik Levkowetz 4c297ba4c0 Changed settings so that cache keys used by memcached includes the release version, in order to avoid stale and incorrect cache content on new release deployment. Made it easier to pick out cache key composition by normalizing the variable name. Adjusted cache prefix and the composition of some keys to have a unique and consistent cache key prefix.
- Legacy-Id: 14943
2018-03-26 21:26:20 +00:00
Henrik Levkowetz e5bc9c2e9a Removed the use of os.chdir() during patching, instead passing the found library path to the patcher.
- Legacy-Id: 14757
2018-03-09 17:54:24 +00:00
Henrik Levkowetz 89cf68b7f1 Catch IOError exceptions when trying to apply patches
- Legacy-Id: 14677
2018-02-22 18:08:56 +00:00
Henrik Levkowetz cbd18ae0ce Fixed a pyflakes issue.
- Legacy-Id: 14536
2018-01-17 21:02:36 +00:00
Henrik Levkowetz 7d5bd3f5d5 Modified the patch actions run under the 'check' management command to patch an issue with a unidecode lib warning.
- Legacy-Id: 14535
2018-01-17 19:27:52 +00:00
Henrik Levkowetz 11ca8dcaf2 Modified the django patch check action from [14474] (for django issue #28772) to work with arbitrary locations of the virtual Python environment, rather than assuming a particular location of the virtual environment directory.
- Legacy-Id: 14487
Note: SVN reference [14474] has been migrated to Git commit bb92c0a076
2018-01-04 13:18:57 +00:00
Henrik Levkowetz bb92c0a076 Added a patch for django issue #28772, a check action to apply the patch, and a setting that lists patches to be applied.
- Legacy-Id: 14474
2017-12-30 00:40:06 +00:00
Henrik Levkowetz 920a73a575 Fixed the formatting of a number of custom checks for the django check format, to be easier to read.
- Legacy-Id: 14407
2017-12-09 14:57:55 +00:00
Henrik Levkowetz 47a0b9d3ce Changed handling of yang modeules from drafts with errors, to not place them in separate directories, due to possible follow-on effects. Added use of IANA-held modules when validating, and regular rsyncing from IANA.
- Legacy-Id: 14389
2017-12-04 14:37:15 +00:00
Henrik Levkowetz 6ddacb6b4e Fixed an incorrect comparison in a check function.
- Legacy-Id: 14387
2017-12-01 17:30:50 +00:00
Henrik Levkowetz 4f8f9d5c3f Added a check for proper API key settings in production, and added workable default API key settings for development.
- Legacy-Id: 14319
2017-11-07 15:49:15 +00:00
Henrik Levkowetz 8c0f4f09b6 Added checks for the presence of yang module directories to the check framework. Tweaked some text strings.
- Legacy-Id: 13720
2017-06-27 14:41:36 +00:00
Henrik Levkowetz 5928bd9faa Added svn symlink check and creation to test setup. Forced test settings to use an empty INTERNAL_IPS list for consistency in code coverage figures.
- Legacy-Id: 12929
2017-02-28 18:02:30 +00:00
Henrik Levkowetz ec3723f875 Made the svn and libsvn symlinking code more robust against bad settings.
- Legacy-Id: 12243
2016-10-31 16:12:40 +00:00
Henrik Levkowetz db203a53cb Fixed typo
- Legacy-Id: 12241
2016-10-30 18:15:22 +00:00
Henrik Levkowetz 4ab2fe53cb Don't run ietf.checks.* more than once per invocation (under Django 1.7, these can be run more times than there are apps with migrations, posibly as many times as twice that number).
- Legacy-Id: 12239
2016-10-30 18:08:52 +00:00
Henrik Levkowetz 17bf44af3c To minimize what seems to be an increased risk of segfaults when using virtualenv with system packages, this commit introduces an alternative, which does away with the general system package availability, but adds symlinks to two svn related system packages when running checks.
- Legacy-Id: 12208
2016-10-25 00:11:31 +00:00
Henrik Levkowetz ef9bf2f175 Added a system check to ensure that the svn bindings are available when running in production mode.
- Legacy-Id: 12177
2016-10-19 14:44:05 +00:00
Henrik Levkowetz 75fd4d2876 Added a production-mode check to verify that the cache is functioning as expected.
- Legacy-Id: 11471
2016-06-24 15:36:25 +00:00
Henrik Levkowetz 92a2b1cbe0 Added a check that the proceedings directory given in the settings exists.
- Legacy-Id: 11427
2016-06-20 21:51:14 +00:00
Henrik Levkowetz 9855c2d54b Added a check for the existence of the media/photos directory.
- Legacy-Id: 11315
2016-06-10 19:37:36 +00:00
Henrik Levkowetz 91defa466e Fixed a missed import name change.
- Legacy-Id: 11192
2016-05-13 16:07:47 +00:00
Henrik Levkowetz 02d341cae5 Updated docker-related files based on 6.17.0
- Legacy-Id: 10967
2016-03-22 21:10:33 +00:00
Henrik Levkowetz 76bb233b70 Refactored draft submission checks so that new checkers can be slotted in through a configuration in settings.py. Refactored the calling of idnits to use the new API, and added a pyang validation check.
- Legacy-Id: 10894
2016-03-04 20:08:29 +00:00
Henrik Levkowetz b00b0c3db9 Moved some production-path checks to the checks module, and fixed up tests which changed some settings without restoring them.
- Legacy-Id: 10808
2016-02-09 18:50:37 +00:00
Henrik Levkowetz e348212f42 Added necessary check function returns.
- Legacy-Id: 10754
2016-01-28 16:13:38 +00:00
Henrik Levkowetz 289d9ebef6 Moved some path checks from SubmissionUploadForm to the ietf/checks.py.
- Legacy-Id: 10753
2016-01-28 16:09:44 +00:00
Henrik Levkowetz f1ca9a0f1c Shave off 10 seconds of test running time by not reading more than the start of files when checing that aliases exist.
- Legacy-Id: 10705
2016-01-16 22:31:31 +00:00
Henrik Levkowetz f41553f3d1 Added 2 new file existence checks to the check framework, since we're now reading email aliases for groups and documents from files. Added a call out to run_checks() in the test-crawler, so we don't see failures due to missing files.
- Legacy-Id: 10204
2015-10-13 19:07:11 +00:00
Henrik Levkowetz 0cdf7599a4 It's only an error not to have STATIC_ROOT available in production mode.
- Legacy-Id: 9957
2015-08-01 21:14:49 +00:00
Henrik Levkowetz d37aee7ae2 Updated ietf/checks.py to use STATIC_ROOT instead the CDN_STATIC_PATH used with the split-static setup.
- Legacy-Id: 9946
2015-08-01 14:55:47 +00:00
Henrik Levkowetz fbdd8b479d Added a check for the existence of the CDN static path using the new (Django 1.7) checks framework. Split the release version and patch string in order to not move the expected CDN static files location when adding a patch indicator to the version number.
- Legacy-Id: 9906
2015-07-28 10:25:58 +00:00