Source: python-ansible-pygments
Version: 0.1.1-4
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20230113 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
>  debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:107: Building wheel for python3.11 with "build" 
> module
> I: pybuild base:240: python3.11 -m build --skip-dependency-check 
> --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11 
> * Building wheel...
> Successfully built ansible_pygments-0.1.1-py3-none-any.whl
> I: pybuild plugin_pyproject:119: Unpacking wheel built for python3.11 with 
> "installer" module
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; 
> python3.11 -m pytest tests
> ============================= test session starts 
> ==============================
> platform linux -- Python 3.11.1, pytest-7.2.0, pluggy-1.0.0+repack -- 
> /usr/bin/python3.11
> cachedir: .pytest_cache
> rootdir: /<<PKGBUILDDIR>>, configfile: pytest.ini
> plugins: cov-4.0.0
> collecting ... collected 1 item
> 
> tests/lexer_test.py::test_ansible_output_lexer FAILED                    
> [100%]
> 
> =================================== FAILURES 
> ===================================
> __________________________ test_ansible_output_lexer 
> ___________________________
> 
>     def test_ansible_output_lexer():
>         """Test that AnsibleOutputLexer produces expected HTML output."""
>         data = R"""
>     ok: [windows] => {
>         "account": {
>             "account_name": "vagrant-domain",
>             "type": "User"
>         },
>         "authentication_package": "Kerberos",
>         "user_flags": []
>     }
>     
>     TASK [paused] 
> ************************************************************************************************************************************
>     Sunday 11 November 2018  20:16:48 +0100 (0:00:00.041)       0:07:59.637 
> *******
>     --- before
>     +++ after
>     @@ -1,5 +1,5 @@
>      {
>     -  "exists": false,
>     -  "paused": false,
>     -  "running": false
>     +  "exists": true,
>     +  "paused": true,
>     +  "running": true
>      }
>     \ No newline at end of file
>     
>     changed: [localhost]
>     
>     TASK [volumes (more volumes)] 
> ********************************************************************************************************************
>     Sunday 11 November 2018  20:19:25 +0100 (0:00:00.607)       0:10:36.974 
> *******
>     --- before
>     +++ after
>     @@ -1,11 +1,11 @@
>      {
>        "expected_binds": [
>     -    "/tmp:/tmp:rw",
>     -    "/:/whatever:rw,z"
>     +    "/tmp:/somewhereelse:ro,Z",
>     +    "/tmp:/tmp:rw"
>        ],
>        "expected_volumes": {
>     -    "/tmp": {},
>     -    "/whatever": {}
>     +    "/somewhereelse": {},
>     +    "/tmp": {}
>        },
>        "running": true
>      }
>     \ No newline at end of file
>     
>     changed: [localhost]
>     """
>         _, result = run_test(data, AnsibleOutputLexer())
>         print(result)
>     
>         # pylint: disable=line-too-long
> >       assert result == R"""<div class="highlight"><pre><span></span><span 
> > class="k">ok</span><span class="p">:</span> <span class="p">[</span><span 
> > class="nv">windows</span><span class="p">]</span> <span 
> > class="p">=&gt;</span> <span class="p">{</span>
>         <span class="nt">&quot;account&quot;</span><span class="p">:</span> 
> <span class="p">{</span>
>             <span class="nt">&quot;account_name&quot;</span><span 
> class="p">:</span> <span class="s">&quot;vagrant-domain&quot;</span><span 
> class="p">,</span>
>             <span class="nt">&quot;type&quot;</span><span class="p">:</span> 
> <span class="s">&quot;User&quot;</span>
>         <span class="p">},</span>
>         <span class="nt">&quot;authentication_package&quot;</span><span 
> class="p">:</span> <span class="s">&quot;Kerberos&quot;</span><span 
> class="p">,</span>
>         <span class="nt">&quot;user_flags&quot;</span><span 
> class="p">:</span> <span class="p">[]</span>
>     <span class="p">}</span>
>     
>     <span class="k">TASK</span> <span class="p">[</span><span 
> class="l">paused</span><span class="p">]</span> <span 
> class="nv">************************************************************************************************************************************</span>
>     <span class="w">Sunday 11 November 2018  20:16:48 +0100 (0:00:00.041)     
>   0:07:59.637 *******</span>
>     <span class="gd">--- before</span><span class="w"></span>
>     <span class="gi">+++ after</span><span class="w"></span>
>     <span class="gu">@@ -1,5 +1,5 @@</span><span class="w"></span>
>     <span class="w"> </span>{<span class="w"></span>
>     <span class="gd">-  &quot;exists&quot;: false,</span><span 
> class="w"></span>
>     <span class="gd">-  &quot;paused&quot;: false,</span><span 
> class="w"></span>
>     <span class="gd">-  &quot;running&quot;: false</span><span 
> class="w"></span>
>     <span class="gi">+  &quot;exists&quot;: true,</span><span 
> class="w"></span>
>     <span class="gi">+  &quot;paused&quot;: true,</span><span 
> class="w"></span>
>     <span class="gi">+  &quot;running&quot;: true</span><span 
> class="w"></span>
>     <span class="w"> </span>}<span class="w"></span>
>     <span class="w">\ No newline at end of file</span>
>     
>     <span class="k">changed</span><span class="p">:</span> <span 
> class="p">[</span><span class="nv">localhost</span><span class="p">]</span>
>     
>     <span class="k">TASK</span> <span class="p">[</span><span 
> class="l">volumes (more volumes)</span><span class="p">]</span> <span 
> class="nv">********************************************************************************************************************</span>
>     <span class="w">Sunday 11 November 2018  20:19:25 +0100 (0:00:00.607)     
>   0:10:36.974 *******</span>
>     <span class="gd">--- before</span><span class="w"></span>
>     <span class="gi">+++ after</span><span class="w"></span>
>     <span class="gu">@@ -1,11 +1,11 @@</span><span class="w"></span>
>     <span class="w"> </span>{<span class="w"></span>
>     <span class="w"> </span>  &quot;expected_binds&quot;: [<span 
> class="w"></span>
>     <span class="gd">-    &quot;/tmp:/tmp:rw&quot;,</span><span 
> class="w"></span>
>     <span class="gd">-    &quot;/:/whatever:rw,z&quot;</span><span 
> class="w"></span>
>     <span class="gi">+    &quot;/tmp:/somewhereelse:ro,Z&quot;,</span><span 
> class="w"></span>
>     <span class="gi">+    &quot;/tmp:/tmp:rw&quot;</span><span 
> class="w"></span>
>     <span class="w"> </span>  ],<span class="w"></span>
>     <span class="w"> </span>  &quot;expected_volumes&quot;: {<span 
> class="w"></span>
>     <span class="gd">-    &quot;/tmp&quot;: {},</span><span class="w"></span>
>     <span class="gd">-    &quot;/whatever&quot;: {}</span><span 
> class="w"></span>
>     <span class="gi">+    &quot;/somewhereelse&quot;: {},</span><span 
> class="w"></span>
>     <span class="gi">+    &quot;/tmp&quot;: {}</span><span class="w"></span>
>     <span class="w"> </span>  },<span class="w"></span>
>     <span class="w"> </span>  &quot;running&quot;: true<span class="w"></span>
>     <span class="w"> </span>}<span class="w"></span>
>     <span class="w">\ No newline at end of file</span>
>     
>     <span class="k">changed</span><span class="p">:</span> <span 
> class="p">[</span><span class="nv">localhost</span><span class="p">]</span>
>     </pre></div>
>     """
> E       assert '<div class=".../pre></div>\n' == '<div 
> class=".../pre></div>\n'
> E           <div class="highlight"><pre><span></span><span 
> class="k">ok</span><span class="p">:</span> <span class="p">[</span><span 
> class="nv">windows</span><span class="p">]</span> <span 
> class="p">=&gt;</span> <span class="p">{</span>
> E               <span class="nt">&quot;account&quot;</span><span 
> class="p">:</span> <span class="p">{</span>
> E                   <span class="nt">&quot;account_name&quot;</span><span 
> class="p">:</span> <span class="s">&quot;vagrant-domain&quot;</span><span 
> class="p">,</span>
> E                   <span class="nt">&quot;type&quot;</span><span 
> class="p">:</span> <span class="s">&quot...
> E         
> E         ...Full output truncated (97 lines hidden), use '-vv' to show
> 
> _          = 'pre { line-height: 125%; }\ntd.linenos .normal { color: 
> inherit; background-color: transparent; padding-left: 5px; pa... .vm { color: 
> #19177C } /* Name.Variable.Magic */\n.highlight .il { color: #666666 } /* 
> Literal.Number.Integer.Long */'
> data       = '\nok: [windows] => {\n    "account": {\n        "account_name": 
> "vagrant-domain",\n        "type": "User"\n    },\n  ...hereelse": {},\n+    
> "/tmp": {}\n   },\n   "running": true\n }\n\\ No newline at end of 
> file\n\nchanged: [localhost]\n'
> result     = '<div class="highlight"><pre><span></span><span 
> class="k">ok</span><span class="p">:</span> <span class="p">[</span><s...n 
> class="p">:</span> <span class="p">[</span><span 
> class="nv">localhost</span><span class="p">]</span>\n</pre></div>\n'
> 
> tests/lexer_test.py:78: AssertionError
> ----------------------------- Captured stdout call 
> -----------------------------
> <div class="highlight"><pre><span></span><span class="k">ok</span><span 
> class="p">:</span> <span class="p">[</span><span 
> class="nv">windows</span><span class="p">]</span> <span 
> class="p">=&gt;</span> <span class="p">{</span>
>     <span class="nt">&quot;account&quot;</span><span class="p">:</span> <span 
> class="p">{</span>
>         <span class="nt">&quot;account_name&quot;</span><span 
> class="p">:</span> <span class="s">&quot;vagrant-domain&quot;</span><span 
> class="p">,</span>
>         <span class="nt">&quot;type&quot;</span><span class="p">:</span> 
> <span class="s">&quot;User&quot;</span>
>     <span class="p">},</span>
>     <span class="nt">&quot;authentication_package&quot;</span><span 
> class="p">:</span> <span class="s">&quot;Kerberos&quot;</span><span 
> class="p">,</span>
>     <span class="nt">&quot;user_flags&quot;</span><span class="p">:</span> 
> <span class="p">[]</span>
> <span class="p">}</span>
> 
> <span class="k">TASK</span> <span class="p">[</span><span 
> class="l">paused</span><span class="p">]</span> <span 
> class="nv">************************************************************************************************************************************</span>
> <span class="w">Sunday 11 November 2018  20:16:48 +0100 (0:00:00.041)       
> 0:07:59.637 *******</span>
> <span class="gd">--- before</span>
> <span class="gi">+++ after</span>
> <span class="gu">@@ -1,5 +1,5 @@</span>
> <span class="w"> </span>{
> <span class="gd">-  &quot;exists&quot;: false,</span>
> <span class="gd">-  &quot;paused&quot;: false,</span>
> <span class="gd">-  &quot;running&quot;: false</span>
> <span class="gi">+  &quot;exists&quot;: true,</span>
> <span class="gi">+  &quot;paused&quot;: true,</span>
> <span class="gi">+  &quot;running&quot;: true</span>
> <span class="w"> </span>}
> <span class="w">\ No newline at end of file</span>
> 
> <span class="k">changed</span><span class="p">:</span> <span 
> class="p">[</span><span class="nv">localhost</span><span class="p">]</span>
> 
> <span class="k">TASK</span> <span class="p">[</span><span class="l">volumes 
> (more volumes)</span><span class="p">]</span> <span 
> class="nv">********************************************************************************************************************</span>
> <span class="w">Sunday 11 November 2018  20:19:25 +0100 (0:00:00.607)       
> 0:10:36.974 *******</span>
> <span class="gd">--- before</span>
> <span class="gi">+++ after</span>
> <span class="gu">@@ -1,11 +1,11 @@</span>
> <span class="w"> </span>{
> <span class="w"> </span>  &quot;expected_binds&quot;: [
> <span class="gd">-    &quot;/tmp:/tmp:rw&quot;,</span>
> <span class="gd">-    &quot;/:/whatever:rw,z&quot;</span>
> <span class="gi">+    &quot;/tmp:/somewhereelse:ro,Z&quot;,</span>
> <span class="gi">+    &quot;/tmp:/tmp:rw&quot;</span>
> <span class="w"> </span>  ],
> <span class="w"> </span>  &quot;expected_volumes&quot;: {
> <span class="gd">-    &quot;/tmp&quot;: {},</span>
> <span class="gd">-    &quot;/whatever&quot;: {}</span>
> <span class="gi">+    &quot;/somewhereelse&quot;: {},</span>
> <span class="gi">+    &quot;/tmp&quot;: {}</span>
> <span class="w"> </span>  },
> <span class="w"> </span>  &quot;running&quot;: true
> <span class="w"> </span>}
> <span class="w">\ No newline at end of file</span>
> 
> <span class="k">changed</span><span class="p">:</span> <span 
> class="p">[</span><span class="nv">localhost</span><span class="p">]</span>
> </pre></div>
> 
> - generated xml file: 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build/.test-results/pytest/results.xml
>  -
> ============================= slowest 10 durations 
> =============================
> 0.02s call     
> .pybuild/cpython3_3.11/build/tests/lexer_test.py::test_ansible_output_lexer
> 
> (2 durations < 0.005s hidden.  Use -vv to show these durations.)
> =========================== short test summary info 
> ============================
> FAILED tests/lexer_test.py::test_ansible_output_lexer - assert '<div 
> class="....
> ============================== 1 failed in 0.07s 
> ===============================
> E: pybuild pybuild:388: test: plugin pyproject failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11/build; python3.11 -m pytest tests
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/01/13/python-ansible-pygments_0.1.1-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230113;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230113&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to