#1016744 vim-ultisnips: flaky autopkgtest with-neovim

#1016744#5
Date:
2022-08-06 13:49:20 UTC
From:
To:
Dear maintainer(s),

You recently added an autopkgtest to your package vim-ultisnips, great.
However, it fails on arm64, i386 and ppc64el. Currently this failure is
blocking the migration to testing [1]. Can you please investigate the
situation and fix it?

I copied some of the output at the bottom of this report.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=vim-ultisnips

https://ci.debian.net/data/autopkgtest/testing/arm64/v/vim-ultisnips/23984911/log.gz


======================================================================
FAIL: runTest (test_ParseSnippets.ParseSnippets_ExtendsWithoutFiletype)
----------------------------------------------------------------------
Traceback (most recent call last):
   File
"/tmp/autopkgtest-lxc.p149hn5f/downtmp/build.kSM/src/test/vim_test_case.py",
line 53, in runTest
     self.assertRegexpMatches(self.output, self.expected_error)
AssertionError: Regex didn't match: "'extends' without file types in
\\S+:2" not found in 'An error occured. This is either a bug in
UltiSnips or a bug in a\nsnippet definition. If you think this is a bug,
please report it
to\nhttps://github.com/SirVer/ultisnips/issues/new\nPlease read and
follow:\nhttps://github.com/SirVer/ultisnips/blob/master/CONTRIBUTING.md#reproducing-bugs\n\nFollowing
is the full stack trace:\nTraceback (most recent call last):\n  File
"/usr/share/nvim/site/pack/dist-bundle/opt/ultisnips/pythonx/UltiSnips/err_to_scratch_buffer.py",
line 18, in wrapper\n    return func(self, *args, **kwds)\n  File
"/usr/share/nvim/site/pack/dist-bundle/opt/ultisnips/pythonx/UltiSnips/snippet_manager.py",
line 905, in _track_change\n
self._try_expand(autotrigger_only=True)\n  File
"/usr/share/nvim/site/pack/dist-bundle/opt/ultisnips/pythonx/UltiSnips/snippet_manager.py",
line 749, in _try_expand\n    snippets = self._snips(before, False,
autotrigger_only)\n  File
"/usr/share/nvim/site/pack/dist-bundle/opt/ultisnips/pythonx/UltiSnips/snippet_manager.py",
line 629, in _snips\n    source.ensure(filetypes)\n  File
"/usr/share/nvim/site/pack/dist-bundle/opt/ultisnips/pythonx/UltiSnips/snippet/source/file/base.py",
line 31, in ensure\n    self._load_snippets_for(ft)\n  File
"/usr/share/nvim/site/pack/dist-bundle/opt/ultisnips/pythonx/UltiSnips/snippet/source/file/base.py",
line 53, in _load_snippets_for\n    self._parse_snippets(ft, fn)\n  File
"/usr/share/nvim/site/pack/dist-bundle/opt/ultisnips/pythonx/UltiSnips/snippet/source/file/base.py",
line 69, in _parse_snippets\n    raise SnippetSyntaxError(filename,
line_index, msg)\nUltiSnips.snippet.source.file.base.SnippetSyntaxError:
\'extends\' without file types in
/tmp/p\tautopkgtest-lxc.p149hn5f/downtmp/autopkgtest_tmp/UltiSnipsTest_Casenir0duuw/us/all.snippets:2'
----------------------------------------------------------------------
Ran 560 tests in 1259.152s

FAILED (failures=1, skipped=4)
autopkgtest [05:49:55]: test with-neovim

#1016744#12
Date:
2022-10-23 17:44:44 UTC
From:
To:
This was resolved in the mean time by some other package upload.
#1016744#23
Date:
2023-02-04 18:37:02 UTC
From:
To:
severity 1016744 minor
retitle 1016744 vim-ultisnips: flaky autopkgtest with-neovim
stop

I applied a patch [1] increasing attempts of tests with regular expressions.
And now probability of failure is far less.

Although, the initial issue with a race of I/O in tmux(1) was not completely
fixed. I daresay it does not block our release of the package.

If you still encounter failure of the with-neovim autopkgtest as of package
version 3.2-2, please retry the test and it should pass. Sorry for inconvenience.

 [1]: https://salsa.debian.org/mymedia/vim-ultisnips/-/commit/50df4908a8452042d358cce94527c22b4d253872