Daniel Moody
e54f728ad4
SERVER-103927 switch from scons to bazel ( #39284 )
...
GitOrigin-RevId: 698b83c9b64adf5dfe2b670d16052f24342c04e3
2025-07-29 17:50:19 +00:00
Ernesto Rodriguez Reina
fd2584ad19
SERVER-100387 [v8.0] Make error code linter work with 6 digit SERVER ticket ids ( #33472 )
...
GitOrigin-RevId: f32a4793345325c6c2f7da1e6fe1ee00fc33c8fe
2025-04-22 21:37:56 +00:00
Ivan Fefer
e6faf62a8f
SERVER-88699 Remove debug output to generate codes starting from 00 not 01 ( #20541 )
...
GitOrigin-RevId: 01f14197a08ad33ec3ae9c5548c65e12b19d1530
2024-03-28 19:52:29 +00:00
Ivan Fefer
43d4feb04e
SERVER-85440 Support MONGO_UNIMPLEMENTED_TASSERT in errorcodes.py ( #18177 )
...
GitOrigin-RevId: cab185dfa4430aaca4fd2647978db3096c12fd11
2024-01-21 09:15:14 +00:00
Reo Kimura
0d12c83b9b
SERVER-69926 errorcodes.py doesn't detect duplicate errors in MONGO_UNREACHABLE_TASSERT
2022-10-13 22:22:10 +00:00
Alexander Neben
97ac02fa50
SERVER-68593 Disable low value python warnings
2022-09-02 22:55:09 +00:00
Jennifer Peshansky
5ce6313f7a
SERVER-65277 Remove dependency on deprecated PCRE library
2022-06-27 23:23:38 +00:00
Alex Li
765e3c89b7
SERVER-49153 Fix the policy used by errorcodes.py
2022-06-21 19:56:52 +00:00
Robert Guo
a3a87f936f
SERVER-65672 upgrade python packages to support 3.10
2022-04-24 02:12:33 +00:00
A. Jesse Jiryu Davis
d589fdc86a
SERVER-64421 Ban extra args to errorcodes.py
2022-03-10 21:35:32 +00:00
Etienne Petrel
dbba52bba7
SERVER-61744 Integrate WiredTiger's verbose messaging system with LOGV2
...
Co-authored-by: Alison Felizzi <alison.felizzi@mongodb.com>
2022-01-12 00:24:31 +00:00
Benety Goh
7d155b747d
SERVER-59575 SERVER-59639 re-enable regex in errorcodes.py
...
This reverts commit 5b78474fa9 .
2021-08-28 14:46:13 +00:00
Benety Goh
5b78474fa9
SERVER-59575 temporarily disable the use of regex in errorcodes.py
2021-08-27 05:47:09 +00:00
Billy Donahue
982db36aae
SERVER-54031 Include .py and .idl files in the errorcodes.py scan
2021-03-06 13:29:10 +00:00
David Bradford
a22cbaba06
SERVER-54861: Update pylint to 2.7.2
2021-03-01 23:46:55 +00:00
Daniel Gottlieb
9038625445
SERVER-48323: Have errorcodes.py accept a `--ticket` input to generate unique error codes.
2020-10-10 02:08:51 +00:00
Amirsaman Memaripour
813c96fc1e
SERVER-49151 Fix linter to prevent malformed LOGV2 and assertion IDs
2020-07-01 23:10:42 +00:00
Mark Benvenuto
ae7506fb3e
SERVER-46404 Remove shouldLog from logger V1 API
2020-02-28 04:14:38 +00:00
Henrik Edin
e8f1d29de7
SERVER-46156 Deprecate LogstreamBuilder and more manual log conversions
...
* Remove setPlainConsoleLogger()
* Update errorcodes linter to work with custom user defined log macros
rename src/mongo/embedded/{embedded_log_appender.h => embedded_log_backend.h} (61%)
2020-02-23 18:43:31 +00:00
Henrik Edin
3c776d880a
SERVER-46179 Relax errorcodes.py linter now when log statements also use this
2020-02-18 14:55:36 +00:00
Henrik Edin
d52125a29a
SERVER-45443 Logv2 log statements are required to have a unique id
2020-01-14 18:49:59 +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