Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding related error since upgrading to nunit-console 3.11.1 #74

Open
samcook opened this issue May 21, 2020 · 3 comments
Open

Encoding related error since upgrading to nunit-console 3.11.1 #74

samcook opened this issue May 21, 2020 · 3 comments
Assignees

Comments

@samcook
Copy link

samcook commented May 21, 2020

Hi,

I'm running a set of nunit tests on Teamcity 2020.1 (build 78475).

Everything was working fine using nunit-console 3.10.0, but I've updated to nunit-console 3.11.1 and now I'm getting the following error while running a test case with some non-ASCII characters (Øçtanüŵ) in the test data.

[Step 1/1] Unexpected error during build messages processing in TeamCity
[Step 1/1] Unexpected error occurred during build message processing in TeamCity, please contact your system administrator

The TC server logs contain the following details:

[2020-05-21 07:53:51,926]  ERROR -   jetbrains.buildServer.SERVER - Unexpected exception occurred during message processing, will change build status to failing for build #1.0.12-development+sha.1ec913b {build id=446495, buildTypeId=Backend_UnitTestWebServices}, messages pack: [BuildMessage1 1785 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("- 1 - 1 - 1 -"," 1  1  1 ")' duration='0' flowId='2545192936800_1-1036'] DefaultMessage NORMAL  , BuildMessage1 1786 Text ##teamcity[flowFinished flowId='2545192936800_1-1036'] DefaultMessage NORMAL  , BuildMessage1 1787 Text ##teamcity[flowStarted flowId='2545192936800_1-1037' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1788 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("---","")' captureStandardOutput='false' flowId='2545192936800_1-1037'] DefaultMessage NORMAL  , BuildMessage1 1789 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("---","")' duration='0' flowId='2545192936800_1-1037'] DefaultMessage NORMAL  , BuildMessage1 1790 Text ##teamcity[flowFinished flowId='2545192936800_1-1037'] DefaultMessage NORMAL  , BuildMessage1 1791 Text ##teamcity[flowStarted flowId='2545192936800_1-1038' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1792 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("1-","1")' captureStandardOutput='false' flowId='2545192936800_1-1038'] DefaultMessage NORMAL  , BuildMessage1 1793 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("1-","1")' duration='0' flowId='2545192936800_1-1038'] DefaultMessage NORMAL  , BuildMessage1 1794 Text ##teamcity[flowFinished flowId='2545192936800_1-1038'] DefaultMessage NORMAL  , BuildMessage1 1795 Text ##teamcity[flowStarted flowId='2545192936800_1-1039' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1796 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("-","")' captureStandardOutput='false' flowId='2545192936800_1-1039'] DefaultMessage NORMAL  , BuildMessage1 1797 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("-","")' duration='0' flowId='2545192936800_1-1039'] DefaultMessage NORMAL  , BuildMessage1 1798 Text ##teamcity[flowFinished flowId='2545192936800_1-1039'] DefaultMessage NORMAL  , BuildMessage1 1799 Text ##teamcity[flowStarted flowId='2545192936800_1-1040' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1800 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("- "," ")' captureStandardOutput='false' flowId='2545192936800_1-1040'] DefaultMessage NORMAL  , BuildMessage1 1801 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest("- "," ")' duration='0' flowId='2545192936800_1-1040'] DefaultMessage NORMAL  , BuildMessage1 1802 Text ##teamcity[flowFinished flowId='2545192936800_1-1040'] DefaultMessage NORMAL  , BuildMessage1 1803 Text ##teamcity[flowStarted flowId='2545192936800_1-1041' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1804 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest(null,null)' captureStandardOutput='false' flowId='2545192936800_1-1041'] DefaultMessage NORMAL  , BuildMessage1 1805 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemoveDashesTest(null,null)' duration='0' flowId='2545192936800_1-1041'] DefaultMessage NORMAL  , BuildMessage1 1806 Text ##teamcity[flowFinished flowId='2545192936800_1-1041'] DefaultMessage NORMAL  , BuildMessage1 1807 Text ##teamcity[flowStarted flowId='2545192936800_1-1026' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1808 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.","1.123456789","123456789")' captureStandardOutput='false' flowId='2545192936800_1-1026'] DefaultMessage NORMAL  , BuildMessage1 1809 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.","1.123456789","123456789")' duration='0' flowId='2545192936800_1-1026'] DefaultMessage NORMAL  , BuildMessage1 1810 Text ##teamcity[flowFinished flowId='2545192936800_1-1026'] DefaultMessage NORMAL  , BuildMessage1 1811 Text ##teamcity[flowStarted flowId='2545192936800_1-1027' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1812 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.","1.1.123456789","1.123456789")' captureStandardOutput='false' flowId='2545192936800_1-1027'] DefaultMessage NORMAL  , BuildMessage1 1813 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.","1.1.123456789","1.123456789")' duration='0' flowId='2545192936800_1-1027'] DefaultMessage NORMAL  , BuildMessage1 1814 Text ##teamcity[flowFinished flowId='2545192936800_1-1027'] DefaultMessage NORMAL  , BuildMessage1 1815 Text ##teamcity[flowStarted flowId='2545192936800_1-1028' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1816 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.","1.","")' captureStandardOutput='false' flowId='2545192936800_1-1028'] DefaultMessage NORMAL  , BuildMessage1 1817 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.","1.","")' duration='0' flowId='2545192936800_1-1028'] DefaultMessage NORMAL  , BuildMessage1 1818 Text ##teamcity[flowFinished flowId='2545192936800_1-1028'] DefaultMessage NORMAL  , BuildMessage1 1819 Text ##teamcity[flowStarted flowId='2545192936800_1-1029' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1820 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.","","")' captureStandardOutput='false' flowId='2545192936800_1-1029'] DefaultMessage NORMAL  , BuildMessage1 1821 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.","","")' duration='0' flowId='2545192936800_1-1029'] DefaultMessage NORMAL  , BuildMessage1 1822 Text ##teamcity[flowFinished flowId='2545192936800_1-1029'] DefaultMessage NORMAL  , BuildMessage1 1823 Text ##teamcity[flowStarted flowId='2545192936800_1-1030' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1824 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1."," "," ")' captureStandardOutput='false' flowId='2545192936800_1-1030'] DefaultMessage NORMAL  , BuildMessage1 1825 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1."," "," ")' duration='0' flowId='2545192936800_1-1030'] DefaultMessage NORMAL  , BuildMessage1 1826 Text ##teamcity[flowFinished flowId='2545192936800_1-1030'] DefaultMessage NORMAL  , BuildMessage1 1827 Text ##teamcity[flowStarted flowId='2545192936800_1-1031' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1828 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.",null,null)' captureStandardOutput='false' flowId='2545192936800_1-1031'] DefaultMessage NORMAL  , BuildMessage1 1829 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.RemovePhoneNumberPrefixTest("1.",null,null)' duration='0' flowId='2545192936800_1-1031'] DefaultMessage NORMAL  , BuildMessage1 1830 Text ##teamcity[flowFinished flowId='2545192936800_1-1031'] DefaultMessage NORMAL  , BuildMessage1 1831 Text ##teamcity[flowStarted flowId='2545192936800_1-1043' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1832 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("Tom","Tom",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1043'] DefaultMessage NORMAL  , BuildMessage1 1833 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("Tom","Tom",True,True)' duration='8' flowId='2545192936800_1-1043'] DefaultMessage NORMAL  , BuildMessage1 1834 Text ##teamcity[flowFinished flowId='2545192936800_1-1043'] DefaultMessage NORMAL  , BuildMessage1 1835 Text ##teamcity[flowStarted flowId='2545192936800_1-1044' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1836 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("Tom","Tom",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1044'] DefaultMessage NORMAL  , BuildMessage1 1837 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("Tom","Tom",True,True)' duration='0' flowId='2545192936800_1-1044'] DefaultMessage NORMAL  , BuildMessage1 1838 Text ##teamcity[flowFinished flowId='2545192936800_1-1044'] DefaultMessage NORMAL  , BuildMessage1 1839 Text ##teamcity[flowStarted flowId='2545192936800_1-1045' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1840 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("D@d","D@d",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1045'] DefaultMessage NORMAL  , BuildMessage1 1841 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("D@d","D@d",True,True)' duration='0' flowId='2545192936800_1-1045'] DefaultMessage NORMAL  , BuildMessage1 1842 Text ##teamcity[flowFinished flowId='2545192936800_1-1045'] DefaultMessage NORMAL  , BuildMessage1 1843 Text ##teamcity[flowStarted flowId='2545192936800_1-1046' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1844 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("T|0x00f8m","Tom",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1046'] DefaultMessage NORMAL  , BuildMessage1 1845 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("T|0x00f8m","Tom",True,True)' duration='8' flowId='2545192936800_1-1046'] DefaultMessage NORMAL  , BuildMessage1 1846 Text ##teamcity[flowFinished flowId='2545192936800_1-1046'] DefaultMessage NORMAL  , BuildMessage1 1847 Text ##teamcity[flowStarted flowId='2545192936800_1-1047' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1848 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x00d8|0x00e7tan|0x00fc|0x0175","Octanuw",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1047'] DefaultMessage NORMAL  , BuildMessage1 1849 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x00d8|0x00e7tan|0x00fc|0x0175","Octanuw",True,True)' duration='5' flowId='2545192936800_1-1047'] DefaultMessage NORMAL  , BuildMessage1 1850 Text ##teamcity[flowFinished flowId='2545192936800_1-1047'] DefaultMessage NORMAL  , BuildMessage1 1851 Text ##teamcity[flowStarted flowId='2545192936800_1-1048' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1852 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x0429|0x0401|0x03c0om","ShchEpom",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1048'] DefaultMessage NORMAL  , BuildMessage1 1853 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x0429|0x0401|0x03c0om","ShchEpom",True,True)' duration='0' flowId='2545192936800_1-1048'] DefaultMessage NORMAL  , BuildMessage1 1854 Text ##teamcity[flowFinished flowId='2545192936800_1-1048'] DefaultMessage NORMAL  , BuildMessage1 1855 Text ##teamcity[flowStarted flowId='2545192936800_1-1049' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1856 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x00c4|0x0159|0x00f8n","Aron",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1049'] DefaultMessage NORMAL  , BuildMessage1 1857 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x00c4|0x0159|0x00f8n","Aron",True,True)' duration='0' flowId='2545192936800_1-1049'] DefaultMessage NORMAL  , BuildMessage1 1858 Text ##teamcity[flowFinished flowId='2545192936800_1-1049'] DefaultMessage NORMAL  , BuildMessage1 1859 Text ##teamcity[flowStarted flowId='2545192936800_1-1050' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1860 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x00c4|0x0159|0x00f8n","Aeron",False,True)' captureStandardOutput='false' flowId='2545192936800_1-1050'] DefaultMessage NORMAL  , BuildMessage1 1861 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x00c4|0x0159|0x00f8n","Aeron",False,True)' duration='0' flowId='2545192936800_1-1050'] DefaultMessage NORMAL  , BuildMessage1 1862 Text ##teamcity[flowFinished flowId='2545192936800_1-1050'] DefaultMessage NORMAL  , BuildMessage1 1863 Text ##teamcity[flowStarted flowId='2545192936800_1-1051' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1864 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("","",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1051'] DefaultMessage NORMAL  , BuildMessage1 1865 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("","",True,True)' duration='0' flowId='2545192936800_1-1051'] DefaultMessage NORMAL  , BuildMessage1 1866 Text ##teamcity[flowFinished flowId='2545192936800_1-1051'] DefaultMessage NORMAL  , BuildMessage1 1867 Text ##teamcity[flowStarted flowId='2545192936800_1-1052' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1868 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest(null,null,True,True)' captureStandardOutput='false' flowId='2545192936800_1-1052'] DefaultMessage NORMAL  , BuildMessage1 1869 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest(null,null,True,True)' duration='0' flowId='2545192936800_1-1052'] DefaultMessage NORMAL  , BuildMessage1 1870 Text ##teamcity[flowFinished flowId='2545192936800_1-1052'] DefaultMessage NORMAL  , BuildMessage1 1871 Text ##teamcity[flowStarted flowId='2545192936800_1-1053' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1872 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x0429|0x0401|0x03c0om","ShchYopom",False,True)' captureStandardOutput='false' flowId='2545192936800_1-1053'] DefaultMessage NORMAL  , BuildMessage1 1873 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x0429|0x0401|0x03c0om","ShchYopom",False,True)' duration='0' flowId='2545192936800_1-1053'] DefaultMessage NORMAL  , BuildMessage1 1874 Text ##teamcity[flowFinished flowId='2545192936800_1-1053'] DefaultMessage NORMAL  , BuildMessage1 1875 Text ##teamcity[flowStarted flowId='2545192936800_1-1054' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1876 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x00d8|0x00e7tan|0x00fc|0x0175","Octanuew",False,True)' captureStandardOutput='false' flowId='2545192936800_1-1054'] DefaultMessage NORMAL  , BuildMessage1 1877 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("|0x00d8|0x00e7tan|0x00fc|0x0175","Octanuew",False,True)' duration='0' flowId='2545192936800_1-1054'] DefaultMessage NORMAL  , BuildMessage1 1878 Text ##teamcity[flowFinished flowId='2545192936800_1-1054'] DefaultMessage NORMAL  , BuildMessage1 1879 Text ##teamcity[flowStarted flowId='2545192936800_1-1055' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1880 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("W|0x1ebdird|0x2211D|0x00e7|0x221a|0x222be$","Weird-Dc--e$",True,True)' captureStandardOutput='false' flowId='2545192936800_1-1055'] DefaultMessage NORMAL  , BuildMessage1 1881 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("W|0x1ebdird|0x2211D|0x00e7|0x221a|0x222be$","Weird-Dc--e$",True,True)' duration='0' flowId='2545192936800_1-1055'] DefaultMessage NORMAL  , BuildMessage1 1882 Text ##teamcity[flowFinished flowId='2545192936800_1-1055'] DefaultMessage NORMAL  , BuildMessage1 1883 Text ##teamcity[flowStarted flowId='2545192936800_1-1056' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1884 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("W|0x1ebdird|0x2211D|0x00e7|0x221a|0x222be$","Weird|0x2211Dc|0x221a|0x222be$",True,False)' captureStandardOutput='false' flowId='2545192936800_1-1056'] DefaultMessage NORMAL  , BuildMessage1 1885 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest("W|0x1ebdird|0x2211D|0x00e7|0x221a|0x222be$","Weird|0x2211Dc|0x221a|0x222be$",True,False)' duration='0' flowId='2545192936800_1-1056'] DefaultMessage NORMAL  , BuildMessage1 1886 Text ##teamcity[flowFinished flowId='2545192936800_1-1056'] DefaultMessage NORMAL  , BuildMessage1 1887 Text ##teamcity[flowStarted flowId='2545192936800_1-1073' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1888 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee","MiddleName","Lee, Bruce MiddleName")' captureStandardOutput='false' flowId='2545192936800_1-1073'] DefaultMessage NORMAL  , BuildMessage1 1889 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee","MiddleName","Lee, Bruce MiddleName")' duration='1' flowId='2545192936800_1-1073'] DefaultMessage NORMAL  , BuildMessage1 1890 Text ##teamcity[flowFinished flowId='2545192936800_1-1073'] DefaultMessage NORMAL  , BuildMessage1 1891 Text ##teamcity[flowStarted flowId='2545192936800_1-1074' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1892 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee",null,"Lee, Bruce")' captureStandardOutput='false' flowId='2545192936800_1-1074'] DefaultMessage NORMAL  , BuildMessage1 1893 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee",null,"Lee, Bruce")' duration='0' flowId='2545192936800_1-1074'] DefaultMessage NORMAL  , BuildMessage1 1894 Text ##teamcity[flowFinished flowId='2545192936800_1-1074'] DefaultMessage NORMAL  , BuildMessage1 1895 Text ##teamcity[flowStarted flowId='2545192936800_1-1075' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1896 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee","","Lee, Bruce")' captureStandardOutput='false' flowId='2545192936800_1-1075'] DefaultMessage NORMAL  , BuildMessage1 1897 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee","","Lee, Bruce")' duration='0' flowId='2545192936800_1-1075'] DefaultMessage NORMAL  , BuildMessage1 1898 Text ##teamcity[flowFinished flowId='2545192936800_1-1075'] DefaultMessage NORMAL  , BuildMessage1 1899 Text ##teamcity[flowStarted flowId='2545192936800_1-1076' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1900 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee"," ","Lee, Bruce")' captureStandardOutput='false' flowId='2545192936800_1-1076'] DefaultMessage NORMAL  , BuildMessage1 1901 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee"," ","Lee, Bruce")' duration='0' flowId='2545192936800_1-1076'] DefaultMessage NORMAL  , BuildMessage1 1902 Text ##teamcity[flowFinished flowId='2545192936800_1-1076'] DefaultMessage NORMAL  , BuildMessage1 1903 Text ##teamcity[flowStarted flowId='2545192936800_1-1077' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1904 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee","  ","Lee, Bruce")' captureStandardOutput='false' flowId='2545192936800_1-1077'] DefaultMessage NORMAL  , BuildMessage1 1905 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","Lee","  ","Lee, Bruce")' duration='0' flowId='2545192936800_1-1077'] DefaultMessage NORMAL  , BuildMessage1 1906 Text ##teamcity[flowFinished flowId='2545192936800_1-1077'] DefaultMessage NORMAL  , BuildMessage1 1907 Text ##teamcity[flowStarted flowId='2545192936800_1-1078' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1908 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce",null,"MiddleName","Bruce MiddleName")' captureStandardOutput='false' flowId='2545192936800_1-1078'] DefaultMessage NORMAL  , BuildMessage1 1909 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce",null,"MiddleName","Bruce MiddleName")' duration='0' flowId='2545192936800_1-1078'] DefaultMessage NORMAL  , BuildMessage1 1910 Text ##teamcity[flowFinished flowId='2545192936800_1-1078'] DefaultMessage NORMAL  , BuildMessage1 1911 Text ##teamcity[flowStarted flowId='2545192936800_1-1079' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1912 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","","MiddleName","Bruce MiddleName")' captureStandardOutput='false' flowId='2545192936800_1-1079'] DefaultMessage NORMAL  , BuildMessage1 1913 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","","MiddleName","Bruce MiddleName")' duration='0' flowId='2545192936800_1-1079'] DefaultMessage NORMAL  , BuildMessage1 1914 Text ##teamcity[flowFinished flowId='2545192936800_1-1079'] DefaultMessage NORMAL  , BuildMessage1 1915 Text ##teamcity[flowStarted flowId='2545192936800_1-1080' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1916 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce"," ","MiddleName","Bruce MiddleName")' captureStandardOutput='false' flowId='2545192936800_1-1080'] DefaultMessage NORMAL  , BuildMessage1 1917 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce"," ","MiddleName","Bruce MiddleName")' duration='0' flowId='2545192936800_1-1080'] DefaultMessage NORMAL  , BuildMessage1 1918 Text ##teamcity[flowFinished flowId='2545192936800_1-1080'] DefaultMessage NORMAL  , BuildMessage1 1919 Text ##teamcity[flowStarted flowId='2545192936800_1-1081' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1920 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","  ","MiddleName","Bruce MiddleName")' captureStandardOutput='false' flowId='2545192936800_1-1081'] DefaultMessage NORMAL  , BuildMessage1 1921 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("Bruce","  ","MiddleName","Bruce MiddleName")' duration='0' flowId='2545192936800_1-1081'] DefaultMessage NORMAL  , BuildMessage1 1922 Text ##teamcity[flowFinished flowId='2545192936800_1-1081'] DefaultMessage NORMAL  , BuildMessage1 1923 Text ##teamcity[flowStarted flowId='2545192936800_1-1082' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1924 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests(null,"Lee","MiddleName","Lee, MiddleName")' captureStandardOutput='false' flowId='2545192936800_1-1082'] DefaultMessage NORMAL  , BuildMessage1 1925 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests(null,"Lee","MiddleName","Lee, MiddleName")' duration='0' flowId='2545192936800_1-1082'] DefaultMessage NORMAL  , BuildMessage1 1926 Text ##teamcity[flowFinished flowId='2545192936800_1-1082'] DefaultMessage NORMAL  , BuildMessage1 1927 Text ##teamcity[flowStarted flowId='2545192936800_1-1083' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1928 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("","Lee","MiddleName","Lee, MiddleName")' captureStandardOutput='false' flowId='2545192936800_1-1083'] DefaultMessage NORMAL  , BuildMessage1 1929 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests("","Lee","MiddleName","Lee, MiddleName")' duration='0' flowId='2545192936800_1-1083'] DefaultMessage NORMAL  , BuildMessage1 1930 Text ##teamcity[flowFinished flowId='2545192936800_1-1083'] DefaultMessage NORMAL  , BuildMessage1 1931 Text ##teamcity[flowStarted flowId='2545192936800_1-1084' parent='2545192936800_1-1094'] DefaultMessage NORMAL  , BuildMessage1 1932 Text ##teamcity[testStarted name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests(" ","Lee","MiddleName","Lee, MiddleName")' captureStandardOutput='false' flowId='2545192936800_1-1084'] DefaultMessage NORMAL  , BuildMessage1 1933 Text ##teamcity[testFinished name='xxxx.Common.Tests.StringFormatterTests.ToIndividualClientName_Tests(" ","Lee","MiddleName","Lee, MiddleName")' duration='0' flowId='2545192936800_1-1084'] DefaultMessage NORMAL  , BuildMessage1 1934 Text ##teamcity[flowFinished flowId='2545192936800_1-1084'] DefaultMessage NORMAL  ]
jetbrains.buildServer.serverSide.db.MySQL.MySqlIncorrectStringValueException: Data truncation: Incorrect string value: '\xC5\xB5","O...' for column `teamcity`.`test_names`.`test_name` at row 1 while performing SQL query: SQL DML: insert into test_names (id, test_name, order_num) values (?, ?, ?) | PARAMETERS: 7991503558035659114, "xxxx.Common.Tests.dll: xxxx.Common.Tests.StringExtensionsTests.ReplaceForeignCharactersTest(\"Øçtanüŵ\",\"Octanuw\",True,True)", 659735: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect string value: '\xC5\xB5","O...' for column `teamcity`.`test_names`.`test_name` at row 1
	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:104)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:955)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1094)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdateInternal(ClientPreparedStatement.java:1042)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeLargeUpdate(ClientPreparedStatement.java:1345)
	at com.mysql.cj.jdbc.ClientPreparedStatement.executeUpdate(ClientPreparedStatement.java:1027)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:114)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:114)
	at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:114)
	at jetbrains.buildServer.serverSide.db.DatabaseUtil.executeUpdate(DatabaseUtil.java:489)
	at jetbrains.buildServer.serverSide.db.DBFunctions$13.run(DBFunctions.java:1198)
	at jetbrains.buildServer.serverSide.db.DBFunctions$13.run(DBFunctions.java:1194)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:70)
	at jetbrains.buildServer.serverSide.db.DBInternalUtils.rawOperation(DBInternalUtils.java:55)
	at jetbrains.buildServer.serverSide.db.DBFunctions.executeDmlInternal(DBFunctions.java:1194)
	at jetbrains.buildServer.serverSide.db.DBFunctions.executeDml(DBFunctions.java:1151)
	at jetbrains.buildServer.serverSide.TestName2IndexImpl.saveTestNameIntoDatabase(TestName2IndexImpl.java:585)
	at jetbrains.buildServer.serverSide.TestName2IndexImpl.lambda$getOrSaveTestNameId$4(TestName2IndexImpl.java:2)
	at jetbrains.buildServer.serverSide.TestName2IndexImpl.lambda$withConnectionAndWriteLock$23(TestName2IndexImpl.java:302)
	at jetbrains.buildServer.serverSide.db.DBFacade$3.run(DBFacade.java:223)
	at jetbrains.buildServer.serverSide.db.DBFacade$3.run(DBFacade.java:221)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:242)
	at jetbrains.buildServer.serverSide.db.DBFacade.withDB(DBFacade.java:221)
	at jetbrains.buildServer.serverSide.TestName2IndexImpl.withConnectionAndWriteLock(TestName2IndexImpl.java:148)
	at jetbrains.buildServer.serverSide.TestName2IndexImpl.getOrSaveTestNameId(TestName2IndexImpl.java:239)
	at jetbrains.buildServer.serverSide.TestName2IndexImpl.getOrSaveTestNameId(TestName2IndexImpl.java:504)
	at jetbrains.buildServer.serverSide.stat.DefaultMessagesProcessor.getTestNameId(DefaultMessagesProcessor.java:150)
	at jetbrains.buildServer.serverSide.stat.DefaultMessagesProcessor.access$2700(DefaultMessagesProcessor.java:210)
	at jetbrains.buildServer.serverSide.stat.DefaultMessagesProcessor$TestBlockProcessor.markTestFinished(DefaultMessagesProcessor.java:45)
	at jetbrains.buildServer.serverSide.stat.DefaultMessagesProcessor$TestBlockProcessor.processBlockEnd(DefaultMessagesProcessor.java:33)
	at jetbrains.buildServer.serverSide.stat.DefaultMessagesProcessor$BlockEndProcessor.processBlockEnd(DefaultMessagesProcessor.java:10)
	at jetbrains.buildServer.serverSide.stat.DefaultMessagesProcessor$BlockEndProcessor.processMessage(DefaultMessagesProcessor.java:9)
	at jetbrains.buildServer.serverSide.stat.DefaultMessagesProcessor.doProcessMessage(DefaultMessagesProcessor.java:128)
	at jetbrains.buildServer.serverSide.stat.BaseMessageProcessor.processMessage(BaseMessageProcessor.java:3)
	at jetbrains.buildServer.serverSide.impl.BuildAgentMessagesQueue$BuildMessagesQueue.doProcessMessage(BuildAgentMessagesQueue.java:216)
	at jetbrains.buildServer.serverSide.impl.BuildAgentMessagesQueue$BuildMessagesQueue.access$1200(BuildAgentMessagesQueue.java:42)
	at jetbrains.buildServer.serverSide.impl.BuildAgentMessagesQueue$BuildMessagesQueue$2.doInTransactionWithoutResult(BuildAgentMessagesQueue.java:6)
	at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34)
	at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
	at jetbrains.buildServer.serverSide.impl.BuildAgentMessagesQueue$BuildMessagesQueue.doProcessMessages(BuildAgentMessagesQueue.java:40)
	at jetbrains.buildServer.serverSide.impl.BuildAgentMessagesQueue$BuildMessagesQueue.lambda$processMessages$0(BuildAgentMessagesQueue.java:171)
	at jetbrains.buildServer.util.NamedThreadFactory.executeWithNewThreadName(NamedThreadFactory.java:75)
	at jetbrains.buildServer.serverSide.impl.BuildAgentMessagesQueue$BuildMessagesQueue.processMessages(BuildAgentMessagesQueue.java:8)
	at jetbrains.buildServer.serverSide.impl.BuildAgentMessagesQueue$2.run(BuildAgentMessagesQueue.java:6)
	at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: com.mysql.cj.jdbc.exceptions.MysqlDataTruncation: Data truncation: Incorrect string value: '\xC5\xB5","O...' for column `teamcity`.`test_names`.`test_name` at row 1
	... 45 more

Maybe related to #71?

I've tried adding --encoding=utf-8 to the nunit console parameters, and also setting teamcity.runner.commandline.stdstreams.encoding to UTF-8 in the build step configuration parameters as suggested in #36, but I'm still getting the error.

@rprouse
Copy link
Member

rprouse commented Aug 25, 2020

@NikolayPianikov any thoughts on this?

@NikolayPianikov
Copy link
Member

@rprouse I missed it. @samcook Sorry for delay, I will try to reproduce

@NikolayPianikov NikolayPianikov self-assigned this Aug 28, 2020
@gokhanercan
Copy link

gokhanercan commented Dec 5, 2020

Edit: After spending a couple of hours, I found out that my case is not directly related to I/O or streams. Somehow TeamCity ignores CultureInfo instances I set on the fly. That is way more interesting. Sorry to bother. https://stackoverflow.com/questions/4732805/wrong-currentculture-when-running-an-nunit-test-in-teamcity/65161987#65161987

Hi, I'm having the same error on non-latin chars with the following configuration:

  • nunit-console 3.10.0 | 3.11.0 | 3.11.1 (all three versions yield the same error in my case)
  • additional cmd line parameter on "nunit--encoding=utf-8"
  • Agent with the parameter "teamcity.runner.commandline.stdstreams.encoding=UTF-8"
  • NUnit.Extension.TeamCityEventListener Version 1.0.7
    (%teamcity.tool.NuGet.CommandLine.DEFAULT%\tools\nuget.exe install NUnit.Extension.TeamCityEventListener -Version 1.0.7 -o packages) initial step.

Any update on this? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants