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

tarantool / test-run
63%
master: 63%

Build:
Build:
LAST BUILD BRANCH: gh-tarantool-6646-workflow-catching-flaky-tests
DEFAULT BRANCH: master
Repo Added 19 May 2021 12:03PM UTC
Files 25
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

LAST BUILD ON BRANCH ylobankov/read-logfile-safely
branch: ylobankov/read-logfile-safely
CHANGE BRANCH
x
Reset
  • ylobankov/read-logfile-safely
  • 0x501D/fix-get_iproto_port
  • 0x501D/fix-luarocks-warnings
  • Totktonada/add-github-actions-step-summary
  • Totktonada/bump-luatest-to-1.0.1-15-gfcabd2a
  • Totktonada/calc-jobs-using-available-cpus
  • Totktonada/descrease-unix-socket-path-length
  • Totktonada/dynamic-test-report-width
  • Totktonada/fix-worker-failure-on-failed-tap13-parsing
  • Totktonada/gh-22-tags
  • Totktonada/gh-287-lift-pipe-buffer-size-restriction
  • Totktonada/gh-325-add-env-option
  • Totktonada/gh-361-status-line
  • Totktonada/gh-382-add-test-timeout-for-luatest
  • Totktonada/gh-437-fix-ability-to-run-test-several-times
  • Totktonada/luatest-experimenting
  • Totktonada/luatest-run-test-cases-in-parallel
  • Totktonada/prettify-help-output
  • Totktonada/qa-128-strengthen-wait-cond
  • Totktonada/test-python-versions-in-ci
  • Totktonada/update-flake8
  • VitaliyaIoffe/gh-276-hangs-timeout-doesnt-work
  • VitaliyaIoffe/gh-304-include-luatest
  • add-extra-log-msg
  • avtikhon/gh-qa-97-disk-bound-collect
  • avtikhon/gh-qa-97-disk-bound-collect-TMP
  • avtikhon/restart-tests
  • avtikhon/restart-tests_TMP
  • bump-luatest
  • bump-luatest-to-1.0.0-3-gf37b353
  • dependabot/pip/gevent-23.9.0
  • drewdzzz/wait_cluster_vclock_fix
  • fix-flake8-E721-do-not-compare-types
  • gh-119-buffering-problems
  • gh-330-fix-consistent-mode
  • gh-tarantool-6646-workflow-catching-flaky-tests
  • gorcunov/wait-log-drop-redundant-assert
  • grafin/add_ignore_zero_to_get_vclock
  • grafin/delete-zero-vclock-in-get_cluster_vclock
  • i-cod/fix-bug-when-lua-script-name-truncated-by-dot
  • i-cod/fix-incorrect-char-in-log-file-name
  • i-cod/timeout-adjustment
  • iverbin/fix-non-utf8-chars-parsing
  • kyukhin/enable-parallel-fragile
  • ligurio/add-unittest
  • ligurio/fix-typo
  • ligurio/support-skip-tap13
  • locker/rm-luatest-submodule-v2
  • lua-workflow
  • master
  • mechanik20051988/implement-lua-libs-for-luatests
  • sergos/qa-272
  • sergos/readme-update
  • skaplun/pretest-clean-dis-arm64
  • slavakirichenko/refactoring-ci-workflow
  • utf8-fixup
  • ylobanklov/improve-failed-test-report
  • ylobankov/add-retries-option
  • ylobankov/bump-gevent
  • ylobankov/bump-luatest
  • ylobankov/bump-luatest-to-new-version
  • ylobankov/change-vardir-default
  • ylobankov/consider-flaky-tests
  • ylobankov/drop-checksums
  • ylobankov/fix-ci
  • ylobankov/fix-crash-detect
  • ylobankov/fix-ports-issue
  • ylobankov/fix-server-start-check
  • ylobankov/fix-server-start-check-backup
  • ylobankov/fix-test-run
  • ylobankov/handle-server-start-errors-in-py-tests
  • ylobankov/ignore-sockets-on-artifact-copying
  • ylobankov/improve-ports-lua-script
  • ylobankov/kill-procs-of-not-started-servers
  • ylobankov/refactor-luatest-helpers
  • ylobankov/retry-all-failed-tests
  • ylobankov/run-luatest-tests-by-pattern
  • ylobankov/switch-to-python2
  • ylobankov/update-luatest
  • ylobankov/update-requirements

13 Feb 2024 11:38AM UTC coverage: 62.54% (+0.06%) from 62.479%
7885918686

Pull #422

github

ylobankov
Fix decoding error when reading server's log file

When a diff test starts a Tarantool server, test-run reads the server's
log file and tries to find the message indicating the server is ready.
Sometimes the server's log file may contain bytes that cannot be decoded
by `utf-8` codec and test-run fails with an error like this:

    [044] TarantoolInpector.handle() received the following error:
    [044] Traceback (most recent call last):
    [044]   File "/tarantool/test-run/lib/inspector.py", line 98, in handle
    [044]     result = self.parser.parse_preprocessor(line)
    [044]   File "/tarantool/test-run/lib/preprocessor.py", line 123, in parse_preprocessor
    [044]     return self.server(stype, sname, options)
    [044]   File "/tarantool/test-run/lib/preprocessor.py", line 351, in server
    [044]     return getattr(self, attr)(ctype, sname, opts)
    [044]   File "/tarantool/test-run/lib/preprocessor.py", line 209, in server_start
    [044]     self.servers[sname].start(silent=True, rais=True, wait=wait,
    [044]   File "/tarantool/test-run/lib/tarantool_server.py", line 910, in start
    [044]     self.wait_until_started(wait_load, deadline)
    [044]   File "/tarantool/test-run/lib/tarantool_server.py", line 1147, in wait_until_started
    [044]     self.wait_load(deadline)
    [044]   File "/tarantool/test-run/lib/tarantool_server.py", line 1131, in wait_load
    [044]     if not self.logfile_pos.seek_wait(msg, p, self.name, deadline):
    [044]   File "/tarantool/test-run/lib/tarantool_server.py", line 485, in seek_wait
    [044]     log_str = f.readline()
    [044]   File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/codecs.py", line 322, in decode
    [044]     (result, consumed) = self._buffer_decode(data, self.errors, final)
    [044] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 660: invalid continuation byte

At least, I have seen such errors when Tarantool... (continued)
Pull Request #422: Fix decoding error when reading server log file

760 of 1564 branches covered (48.59%)

Branch coverage included in aggregate %.

2938 of 4349 relevant lines covered (67.56%)

0.68 hits per line

Relevant lines Covered
Build:
Build:
4349 RELEVANT LINES 2938 COVERED LINES
0.68 HITS PER LINE
Source Files on ylobankov/read-logfile-safely
  • Tree
  • List 25
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
7885918686 ylobankov/read-logfile-safely Fix decoding error when reading server's log file When a diff test starts a Tarantool server, test-run reads the server's log file and tries to find the message indicating the server is ready. Sometimes the server's log file may contain bytes tha... Pull #422 13 Feb 2024 11:40AM UTC ylobankov github
62.54
7873168164 ylobankov/read-logfile-safely Fix decoding error when reading server log file When a diff test starts a Tarantool server, test-run reads the server log file and tries to find the message indicating the server is ready. Sometimes the server log file may contain bytes that cann... Pull #422 12 Feb 2024 02:24PM UTC ylobankov github
62.51
7873154404 ylobankov/read-logfile-safely Fix decoding error when reading server log file When a diff test starts a Tarantool server, test-run reads the server log file and tries to find the message indicating the server is ready. Sometimes the server log file may contain bytes that cann... push 12 Feb 2024 02:23PM UTC ylobankov github
62.51
See All Builds (520)
  • Repo on GitHub
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

© 2025 Coveralls, Inc