• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tarantool / tarantool / 8232959940
88%

Build:
DEFAULT BRANCH: master
Ran 11 Mar 2024 12:56PM UTC
Jobs 1
Files 513
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Mar 2024 12:42PM UTC coverage: 86.964% (-0.03%) from 86.99%
8232959940

push

github

sergepetrenko
lua: increase error serialization verbosity

Currently, the error object's `__serialize` metamethod and the Lua
serializer only display the `message` field omitting all other potentially
useful fields.

Let's call the error object's `__serialize` metamethod from the Lua
serializer and call `error:unpack` from the `__serialize` metamethod to
display all other error object fields. This will transparently allow to
display the whole error stack (i.e., the cause chain).

Let's make the error object's  `__tostring` metamethod return the `message`
field followed by a whitespace and the rest of the fields encoded to JSON.
Let's print the error stack (i.e., the cause chain) on separate lines.

Since this change may potentially break existing users, let's add a new
`box_error_serialize_verbose` option to `compat` to retain old behavior,
and disable the new behaviour by default. Let's also retain the old
behaviour for the MsgPack serializers unconditionally.

Closes #9105

@TarantoolBot document
Title: Document increased error serialization verbosity
Product: Tarantool
Since: 3.1
Root documents: https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_error/
and https://www.tarantool.io/en/doc/latest/reference/reference_lua/box_error/error
and https://tarantool.io/compat/box_error_serialize_verbose

[Link to the design document](https://www.notion.so/tarantool/Error-subsystem-improvements-90faa0a4714b4143abaf8bed2c10b2fc?pvs=4#072087684e094ea28cba88002236178a)

Please add a new https://tarantool.io/compat/box_error_serialize_verbose
page for the `box_error_serialize_verbose` compatibility option.

67030 of 119448 branches covered (56.12%)

3 of 3 new or added lines in 1 file covered. (100.0%)

54 existing lines in 15 files now uncovered.

99512 of 114429 relevant lines covered (86.96%)

2692557.75 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8232959940.1 11 Mar 2024 12:56PM UTC 0
86.96
GitHub Action Run
Source Files on build 8232959940
Detailed source file information is not available for this build.
  • Back to Repo
  • cc7af2eb on github
  • Prev Build on master (#8230814183)
  • Next Build on master (#8233435586)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc