Commit Graph

53 Commits

Author SHA1 Message Date
Daniel Moody
a48948a9d2 SERVER-67993 fix 4.4 pylinters
(cherry picked from commit 1919b5797c)
2022-07-13 16:16:13 +00:00
Billy Donahue
6bc5f238ca SERVER-54031 Include .py and .idl files in the errorcodes.py scan 2021-03-11 07:33:50 +00:00
Matthew Russotto
5988fe51d7 SERVER-38731 Implement ability to specify sync source read preference in initial sync 2020-04-21 17:54:41 +00:00
Mark Benvenuto
286c031264 SERVER-40559 Python linters do not run after upgrade to Python 3 2019-04-16 14:33:43 -04:00
Mathew Robinson
f4feba485b SERVER-40542 Remove references to pip2 2019-04-10 11:42:47 -04:00
Mathew Robinson
8dd6d47557 SERVER-32295 Support Python 3 2019-04-08 14:08:49 -04:00
Geert Bosch
b55c15a5a0 SERVER-36103 Prevent excessive skipping of error codes 2018-08-03 18:11:32 -04:00
Max Hirschhorn
8503e64f26 SERVER-23312 Fix running errorcodes.py as a script. 2018-04-05 15:59:53 -04:00
Jonathan Abrahams
c50c68fef1 SERVER-23312 Python linting - Lint using pylint, pydocstyle & mypy 2018-04-05 14:41:58 -04:00
Jonathan Abrahams
36148ad8bb SERVER-23312 Format Python files with yapf 2018-03-26 13:04:25 -04:00
Mathias Stearn
cd26a1d5ee SERVER-31629 Support putting unique codes directly into Status constructors 2017-11-02 14:25:21 -04:00
Mathias Stearn
cb0e59f347 SERVER-31742 errorcodes.py should include columns when printing file positions
This makes it more useful when loading duplicate locations into vim with
:cexpr system('python2 buildscripts/errorcodes.py -q')

Other editors can probably also make use of this.
2017-11-01 14:18:08 -04:00
Mathias Stearn
7deeaa1d92 SERVER-30877 Add --list-files option to errorcodes.py 2017-08-29 19:05:08 -04:00
Mathias Stearn
347935f7a5 SERVER-30580 Eliminate UserException and MsgAssertionException types
All users were converted to just use AssertionException.
2017-08-16 16:28:02 -04:00
Mathias Stearn
7b8d937701 SERVER-30468 switch from re2 to regex for errorcodes.py
It is easier to install and seems to be faster.
2017-08-09 14:48:34 -04:00
Mathias Stearn
5b71d07dfc SERVER-30468 Optimize errorcodes.py
* Only look in src/mongo rather than filtering after the fact
* Use re2 if available
* Lazily convert byte offsets to line numbers only when needed

Also I added a --quiet option to make it silent on success.
2017-08-08 10:04:23 -04:00
Jonathan Reams
1ec5c55923 SERVER-24047 Remove errors.md and support for generating it 2016-07-11 09:47:31 -04:00
Adam Midvidy
11bb27229c SERVER-22698 fix errorcodes.py to work with multiline asserts... 😞 2016-02-17 17:55:09 -05:00
Eric Milkie
75081de3da SERVER-19025 add fassertStatusOK to errorcodes.py 2015-06-18 09:16:08 -04:00
Mathias Stearn
d8dc1d99e7 Fatal assertion fixups 2014-12-08 11:35:38 -05:00
Geert Bosch
d41c5f3514 SERVER-15469: Fix errorcodes.py error message for bare assert 2014-10-01 16:24:44 -04:00
Spencer T Brody
998ed78216 SERVER-14827 Do not generate reports by default in errorcodes.py 2014-08-14 15:57:37 -04:00
Spencer T Brody
ef85749d9a Make errorcodes.py return a non-zero code on failure 2014-07-10 16:44:24 -04:00
Eric Milkie
81ed23939d SERVER-14522 add fassertFailedWithStatus() to errorcodes.py checking 2014-07-10 11:22:34 -04:00
Matt Kangas
153f2302ca SERVER-10069 Rewrite errorcodes.py so it captures multiline messages
- captures multiline messages, when possible
- no longer silently modifies source code. (for hygenic build)
- prompts user to reinvoke with "--fix" when conflict or zero code detected
- faster
2014-06-18 23:56:23 -04:00
Tad Marshall
41e3d093a2 Make "bare assert" check more selective
Do not trigger "bare assert" error when " assert(" appears in a
quoted string, as it does in src/mongo/shell/mongo.cpp for example
(as generated by the Visual Studio build).
2013-04-22 08:20:35 -04:00
Andy Schwerin
ef446f655b Have errorcodes.py track fassert and fassertFailed.
Fix up duped error codes.
2012-04-23 16:11:12 -04:00
Eliot Horowitz
87a4604930 fail to build if you use a bare assert SERVER-1259 2012-03-26 13:23:23 -04:00
Eliot Horowitz
bd6d0c9919 replace assert with verify SERVER-1259 2012-03-26 12:58:52 -04:00
Eliot Horowitz
da292a8d8e make buildscripts pay attention to fassert and assign error codes 2012-03-23 00:46:36 -04:00
Eliot Horowitz
08eac1faf3 improve scons invocation time by short circuiting regex 2012-01-22 00:06:06 -05:00
Dwight
359a4fe928 fix for windows 2011-10-07 17:10:54 -04:00
Mathias Stearn
fff9db5a8d Preserve existing spacing when replacing 0 errorcodes 2011-08-01 19:14:03 -04:00
gregs
7acd676093 Auto-gen zero error codes. 2011-06-21 17:23:01 -04:00
Eliot Horowitz
bf856b75d9 fix error codes 2011-06-06 14:41:56 -04:00
Eliot Horowitz
510347df13 add verify( <code> , <test> ) SERVER-1259 2011-05-29 22:19:59 -04:00
Mathias Stearn
5d5d572a64 use master for github link to avoid huge diffs 2011-05-12 18:01:53 -04:00
Mathias Stearn
b379b62557 Write docs/errors.md in binary mode 2011-05-12 17:26:22 -04:00
Eliot Horowitz
138040ccc0 not checking msgasserted for dupes 2011-04-15 13:39:47 -04:00
Mathias Stearn
c017195103 use /usr/bin/env python in all buildscripts 2010-10-21 16:52:51 -04:00
Eliot Horowitz
cbc4f28938 some cleaning 2010-09-03 11:58:53 -04:00
Eliot Horowitz
4b50326dbc cleaning and error code stuff 2010-07-19 15:37:19 -04:00
Eliot Horowitz
4d201c39db don't look at module links 2010-06-02 14:15:54 -04:00
Eliot Horowitz
db6337a8e8 seperate package for c++ client 2010-05-23 23:30:52 -04:00
Roman Shtylman
b5faf3b514 buildsystem: added new header directories
ignore the debian directory when looking for duplicate IDs
2010-05-21 00:10:36 +08:00
Dwight
53ca30be25 use stringstream 2010-05-06 15:46:11 -04:00
Dwight
7d26553061 a little code cleanup / renameing 2010-01-03 16:37:38 -05:00
Mathias Stearn
53667da6d8 Make buildscripts/errorcodes.py executable 2009-12-30 18:41:07 -05:00
Eliot Horowitz
b93d04c91f fix nightly 2009-12-29 10:43:34 -05:00
Eliot Horowitz
35dc5cd0fd fix 64-bit osx 2009-12-28 17:17:01 -05:00