Skip to content

Commit bc9620c

Browse files
committed
feat docs: update changelog and fix some typos
Tests: протестировано CI commit_hash:1ac5587383679329ba236f4f7ea7b9b47e9f1730
1 parent aa68c4a commit bc9620c

25 files changed

Lines changed: 103 additions & 77 deletions

odbc/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
# userver: ODBC Driver Wrapper [WIP]
2+
3+
Under heavy development. Come back later

scripts/docs/en/userver/gdb_debugging.md

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
# Debugging with GDB
22

3-
In the most cases writing extensive logs and running profilers is sufficient for debugging. But in the most complex cases it may be useful to do interactive debugging with GDB. Additionally, GDB is the only option for debugging coredumps. Userver provides the capability to perform such debugging.
3+
In the most cases writing extensive logs and running profilers is sufficient for debugging. But in the most complex
4+
cases it may be useful to do interactive debugging with GDB. Additionally, GDB is the only option for debugging
5+
coredumps. 🐙 userver provides the capability to perform such debugging.
6+
7+
First of all, you can use GDB on your service based on userver just like any other binary (debug symbols are included
8+
by default in all build types).
49

5-
First of all, you can use GDB on your service based on Userver just like any other binary (debug symbols are included by default in all build types).
610

711
## Userver-specific debug features
812

9-
To use Userver-specific debug features, you need to allow execution of debug scripts, linked into your binary.
13+
To use userver-specific debug features, you need to allow execution of debug scripts, linked into your binary.
1014
It can be done by adding the following line to your ~/.gdbinit file
1115
```
1216
add-auto-load-safe-path <path-to-your-binary>
@@ -17,9 +21,11 @@ add-auto-load-safe-path /
1721
```
1822
See [GDB manual](https://www.sourceware.org/gdb/current/onlinedocs/gdb.html/Auto_002dloading-safe-path.html) for more details.
1923

24+
2025
### Custom pretty-printers
2126

22-
The simplest extentions for GDB, that Userver provides, are pretty-printers for certain data stuctures. Below is an example comparing the output for a `formats::json::Value` with and without pretty-printers:
27+
The simplest extentions for GDB, that userver provides, are pretty-printers for certain data stuctures. Below is an
28+
example comparing the output for a `formats::json::Value` with and without pretty-printers:
2329

2430
```
2531
(gdb) print value
@@ -39,9 +45,12 @@ $2 = {holder_ = {static kInvalidVersion = 18446744073709551615, data_ = {__ptr_
3945

4046
In addition, the output has a hierarchical structure that is displayed correctly when debugging from the IDE.
4147

48+
4249
### Coroutines exploration
4350

44-
Userver provides GDB command `utask`, which mimics `thread` command and allows you to explore all coroutines (Userver Tasks), including running and suspended ones, in a manner similar to threads.
51+
🐙 userver provides GDB command `utask`, which mimics `thread` command and allows you to explore all coroutines
52+
(userver tasks), including running and suspended ones, in a manner similar to threads.
53+
4554

4655
#### Commands
4756

@@ -57,7 +66,10 @@ Task State Span
5766
0x10f27fc42000 Running task_4
5867
```
5968

60-
* `utask apply <task> <cmd...>`: Executes `<cmd...>` in the context of selected `<task>`. The `<task>` may be specified by its ID ("Task") or name ("Span") (as shown in `utask list`), or set to "all" to apply the command to all tasks. `<cmd...>` can be any GDB command, including Python scripts.
69+
* `utask apply <task> <cmd...>`: Executes `<cmd...>` in the context of selected `<task>`. The `<task>` may be
70+
specified by its ID ("Task") or name ("Span") (as shown in `utask list`), or set to "all" to apply the command to all
71+
tasks. `<cmd...>` can be any GDB command, including Python scripts.
72+
6173

6274
#### Examples:
6375

@@ -108,6 +120,15 @@ For now `utask` commands are implemented for only linux x86 platforms, but can b
108120

109121
In addition, all of the above functionality works for debugging both a live process and coredumps.
110122

123+
111124
## Adding new pretty-printers and commands
112125

113-
If you need a new pretty-printer or a GDB command, you can always implement it yourself in `userver/scripts/gdb` and bring us a PR!
126+
If you need a new pretty-printer or a GDB command, you can always implement it yourself in `userver/scripts/gdb` and
127+
bring us a PR!
128+
129+
130+
----------
131+
132+
@htmlonly <div class="bottom-nav"> @endhtmlonly
133+
@ref scripts/docs/en/userver/profile_context_switches.md | @ref scripts/docs/en/userver/grpc/grpc.md ⇨
134+
@htmlonly </div> @endhtmlonly

scripts/docs/en/userver/grpc/grpc.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ These are the metrics provided for each gRPC method:
389389
----------
390390
391391
@htmlonly <div class="bottom-nav"> @endhtmlonly
392-
⇦ @ref scripts/docs/en/userver/profile_context_switches.md | @ref scripts/docs/en/userver/grpc/server_middlewares.md ⇨
392+
⇦ @ref scripts/docs/en/userver/gdb_debugging.md | @ref scripts/docs/en/userver/grpc/server_middlewares.md ⇨
393393
@htmlonly </div> @endhtmlonly
394394
395395
@example grpc-generic-proxy/src/proxy_service.hpp

scripts/docs/en/userver/mongodb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,5 +101,5 @@ requests and helps Mongo to return to the normal state with lower response timin
101101
----------
102102

103103
@htmlonly <div class="bottom-nav"> @endhtmlonly
104-
@ref scripts/docs/en/userver/ydb.md | @ref scripts/docs/en/userver/redis.md ⇨
104+
@ref scripts/docs/en/userver/sqlite/design_and_details.md | @ref scripts/docs/en/userver/redis.md ⇨
105105
@htmlonly </div> @endhtmlonly

scripts/docs/en/userver/profile_context_switches.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,5 +119,5 @@ $ make -j4 userver-core_unittest && ./userver/core/userver-core_unittest --gtest
119119
----------
120120

121121
@htmlonly <div class="bottom-nav"> @endhtmlonly
122-
@ref scripts/docs/en/userver/chaos_testing.md | @ref scripts/docs/en/userver/grpc/grpc.md ⇨
122+
@ref scripts/docs/en/userver/chaos_testing.md | @ref scripts/docs/en/userver/gdb_debugging.md ⇨
123123
@htmlonly </div> @endhtmlonly

scripts/docs/en/userver/publications.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55

66
## Introductions
77
* 🎥 [Microservices on C++, or why we made our own framework](https://youtu.be/WkcmNOmwAH8)
8+
* 📖 Implementing pastebin using only userver (ru):
9+
[Пишем свой pastebin, используя только userver](https://habr.com/ru/companies/yandex/articles/894294/)
810
* 🎥 Writing a new service with database and cache from scratch (ru):
911
[Эффективные и высоконагруженные сервисы на C++](https://youtu.be/qrGZARf2Wno?t=2034)
1012
* 🎥 Writing a new gRPC server and client with userver (ru):

scripts/docs/en/userver/roadmap_and_changelog.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ Changelog news also go to the
3939

4040
* Initial implementation of @ref scripts/docs/en/userver/sqlite/sqlite_driver.md. Many thanks to
4141
[Turulin Zakhar](https://github.com/zahartd) for the implementation, tests and for the documentation.
42-
* Merged a foundation for the ODBC driver. Many thanks to [Alexey](https://github.com/Olex1313) for the PR!
4342
* GDB pretty printers now can list all the tasks via `utask list` and can apply commands to all or selected
4443
tasks. For example `utask apply all bt` prints the backtraces of all the tasks, `utask apply some_task_name bt`
45-
prints the backtrace of the task with name `some_task_name`. Many thanks to
44+
prints the backtrace of the task with name `some_task_name`. See
45+
@ref scripts/docs/en/userver/gdb_debugging.md for more info. Many thanks to
4646
[Maxim Belov](https://github.com/UNEXPECTEDsemicolon) for the brilliant implementation.
47+
* Merged a foundation for the ODBC driver. Many thanks to [Alexey](https://github.com/Olex1313) for the PR!
4748
* Redis driver now can ignore ping times to different instances to do a fair round-robin. See `consider_ping` field
4849
in storages::redis::CommandControl.
4950
* Dropped gRPC `[(userver.field).secret = true];`. Use `[debug_redact = true];` instead.

scripts/docs/en/userver/ydb.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,5 @@ You may store YQL queries in @ref scripts/docs/en/userver/sql_files.md.
2626

2727
@htmlonly <div class="bottom-nav"> @endhtmlonly
2828
@ref scripts/docs/en/userver/kafka.md |
29-
@ref scripts/docs/en/userver/mongodb.md ⇨
29+
@ref scripts/docs/en/userver/sqlite/sqlite_driver.md ⇨
3030
@htmlonly </div> @endhtmlonly

sqlite/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# userver: SQLite Driver
22

3-
Docs: TODO
3+
Docs: https://userver.tech/dd/d8a/md_en_2userver_2sqlite_2sqlite__driver.html

sqlite/functional_tests/integration_tests/tests/test_sqlite.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ async def test_update_by_unknown_key(service_client):
6464
assert response.status == 404
6565

6666

67-
# A test for checking succesful execute standard transactions with deferred mode
68-
async def test_trx_deffered_ok(service_client):
67+
# A test for checking successful execute standard transactions with deferred mode
68+
async def test_trx_deferred_ok(service_client):
6969
response = await service_client.delete('/basic/sqlite/key-value?key=foo')
7070
assert response.status == 200
7171

0 commit comments

Comments
 (0)