|
Ran
|
Jobs
1
|
Files
526
|
Run time
2min
|
Badge
README BADGES
|
push
github
lua: export checks and metrics to application threads Note that this commit just exports the metrics module. It doesn't implement any functionality for collecting or exporting modules set in application threads via configurable application roles. The latter will be done later. The metrics module uses `_G.arg` unconditionally at the top level so we have to initialize it in application threads. We set it to an empty table, which should be fine because usage of command-line arguments doesn't make much sense in application threads. It's acceptable for the metrics module because the latter uses `arg[0]` to set a metric label[1]. If it's nil, the label won't be set, which isn't a big deal. If it turns out to be not enough for some other module, we can always export the real command-line arguments but for now this doesn't seem to be necessary. Closes #12213 Closes #12339 [1]: https://github.com/tarantool/metrics/blob/921efdc18/metrics/psutils/cpu.lua#L11 NO_DOC=unreleased NO_CHANGELOG=unreleased
70586 of 118791 branches covered (59.42%)
2 of 2 new or added lines in 1 file covered. (100.0%)
38 existing lines in 14 files now uncovered.106137 of 121044 relevant lines covered (87.68%)
1363533.56 hits per line
| Lines | Coverage | ∆ | File |
|---|---|---|---|
| 9 |
60.42 |
-4.03% | src/lib/core/fio.c |
| 4 |
91.51 |
-0.06% | src/box/box.cc |
| 4 |
88.09 |
-0.12% | src/box/vy_run.c |
| 4 |
93.31 |
-1.27% | src/lib/swim/swim_io.c |
| 3 |
97.56 |
0.2% | src/lib/msgpuck/msgpuck.h |
| 3 |
22.66 |
-0.04% | src/lib/uri/uri_parser.c |
| 2 |
85.89 |
-0.08% | src/box/xlog.c |
| 2 |
89.99 |
-0.1% | src/box/xrow.c |
| 2 |
93.79 |
0.77% | src/box/xrow_update_field.c |
| 1 |
88.96 |
-0.61% | src/box/engine.c |
| 1 |
96.88 |
-1.56% | src/box/engine.h |
| 1 |
92.69 |
0.0% | src/box/vinyl.c |
| 1 |
90.3 |
-0.08% | src/box/vy_log.c |
| 1 |
98.08 |
-0.31% | src/lib/json/json.c |
| ID | Job ID | Ran | Files | Coverage | |
|---|---|---|---|---|---|
| 1 | 23895950226.1 | 526 |
87.68 |
GitHub Action Run |
| Coverage | ∆ | File | Lines | Relevant | Covered | Missed | Hits/Line | Branch Hits | Branch Misses |
|---|