[SERVER-10069] Improve errorcodes.py so it captures multiline messages Created: 01/Jul/13  Updated: 31/Jul/15  Resolved: 19/Jun/14

Status: Closed
Project: Core Server
Component/s: Diagnostics
Affects Version/s: None
Fix Version/s: 2.6.6, 2.7.3

Type: Improvement Priority: Major - P3
Reporter: Matt Kangas Assignee: Matt Kangas
Resolution: Done Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Backport Completed:
Sprint: Server 2.7.3
Participants:

 Description   

The output of buildscripts/errorcodes.py currently contains a large number of missing or truncated messages. At least 400 are visible here:

http://docs.10gen.cc/kernel/master/errors.html

Not being able to see these messages in the errors.md output prevents us from providing a full audit as requested in DOCS-1519, and makes it difficult to improve our messages.

Many of these missing messages are caused by errorcodes.py naively walking the source files line-by-line, without lookahead. Let's fix this.



 Comments   
Comment by Githook User [ 24/Nov/14 ]

Author:

{u'name': u'Ramon Fernandez', u'email': u'ramon@mongodb.com'}

Message: SERVER-10069 Update error codes for 2.6.6
Branch: v2.6
https://github.com/mongodb/mongo/commit/a0d1aa6229be3dab2bf9616402d6b6a860376f60

Comment by Githook User [ 24/Nov/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@10gen.com'}

Message: 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

(cherry picked from commit 153f2302cac190167dd1c039ad2c68c4aa520fcc)
Branch: v2.6
https://github.com/mongodb/mongo/commit/1fca6e2b2679bb14f71a6e27d691297bc2fe46f2

Comment by Githook User [ 19/Jun/14 ]

Author:

{u'username': u'kangas', u'name': u'Matt Kangas', u'email': u'matt.kangas@10gen.com'}

Message: SERVER-10069 Rewrite errorcodes.py so it captures multiline messages

Generated at Thu Feb 08 03:22:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.