From 19b79f7ab5ddc508eb448d12c420dabef2f687b3 Mon Sep 17 00:00:00 2001 From: Alex Willmer Date: Sat, 1 Jul 2023 17:30:36 +0100 Subject: [PATCH] CI: Fix tests on Linux, Ansible tests targetting Debian 9 & 11 Without Ubuntu 20.04 virtualenv package being installed pip was installing a version of virtualenv that couldn't create the Tox environment for Python 2.7. > Successfully installed distlib-0.3.6 filelock-3.12.2 platformdirs-3.8.0 > pluggy-1.2.0 py-1.11.0 tomli-2.0.1 tox-3.28.0 virtualenv-20.23.1 > Finishing: Install tooling > ... > py27-mode_mitogen-distro_centos6 create: /home/vsts/work/1/s/.tox/py27- > mode_mitogen-distro_centos6 > ERROR: invocation failed (exit code 1), logfile: /home/vsts/work/1/s/.tox/ > py27-mode_mitogen-distro_centos6/log/py27-mode_mitogen-distro_centos6-0.log > ================================== log start > =================================== > RuntimeError: failed to query /usr/bin/python2.7 with code 1 err: > ' File "/home/vsts/.local/lib/python3.8/site-packages/virtualenv/discovery/ > py_info.py", line 24\n return list(OrderedDict.fromkeys(["", > *os.environ.get("PATHEXT", "").lower().split(os.pathsep)]))\n > ^\nSyntaxError: invalid syntax\n' --- .ci/azure-pipelines-steps.yml | 7 ++++- docs/changelog.rst | 1 + .../debian-archive-bookworm-automatic.gpg | Bin 0 -> 5836 bytes .../debian-archive-bullseye-automatic.gpg | Bin 0 -> 5836 bytes .../issue_776__load_plugins_called_twice.yml | 24 ++++++++++++++++++ 5 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 tests/ansible/regression/files/debian-archive-bookworm-automatic.gpg create mode 100644 tests/ansible/regression/files/debian-archive-bullseye-automatic.gpg diff --git a/.ci/azure-pipelines-steps.yml b/.ci/azure-pipelines-steps.yml index 6aeeca93..b7b094e3 100644 --- a/.ci/azure-pipelines-steps.yml +++ b/.ci/azure-pipelines-steps.yml @@ -12,9 +12,14 @@ steps: versionSpec: '$(python.version)' condition: ne(variables['python.version'], '') +- script: | + type python + python --version + displayName: Show python version + - script: | sudo apt-get update - sudo apt-get install -y python2-dev + sudo apt-get install -y python2-dev python3-pip virtualenv displayName: Install build deps condition: and(eq(variables['python.version'], ''), eq(variables['Agent.OS'], 'Linux')) diff --git a/docs/changelog.rst b/docs/changelog.rst index da5cc5e4..2878783f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -28,6 +28,7 @@ v0.3.4.dev0 resource leaks. * :gh:issue:`659` Removed :mod:`mitogen.compat.simplejson`, not needed with Python 2.7+, contained Python 3.x syntax errors * :gh:issue:`983` CI: Removed PyPI faulthandler requirement from tests +* :gh:issue:`1001` CI: Fixed Debian 9 & 11 tests v0.3.3 (2022-06-03) ------------------- diff --git a/tests/ansible/regression/files/debian-archive-bookworm-automatic.gpg b/tests/ansible/regression/files/debian-archive-bookworm-automatic.gpg new file mode 100644 index 0000000000000000000000000000000000000000..ae9cfa19dd6ca8a42ffcfb3971edd607b277d71e GIT binary patch literal 5836 zcma)=RZtuXwnZEF#@!l+pp8S&PH=*|ySqCy?h*pQ9YP?uyF=p;2u^4;5FkN=!@Dz6 zQ}gP6yf?q6&i-4qYS+$2#6h;4oFhiS0~{Ep8w+oriG^E-J#;b(VGdpDGhPK{_TRA2 ztn!(HW*NyDCF=`j(iJ?vjKOUx5@Kwywl}l@K*{aM_9KB;F?-Ofk>nq7v(gJJZ?E-$>MAN|hj~fDE2|e4K zC>Uswepe+4&bw5RS%XS_p_MLDP8x~W-IFA_^A%3fra_(ovgDU>G=Vm>NYUZtAr#K$ z&i$62<&Wcye^?b?xPE~FHRlQ#DfbJVJR7DcJO!m=%QBMw6_pQdUTE~c6P$I}Q=3H< zw`{x)i8T7DwWG#24}&b>g~?_f{fib;+c94hgP8lNlvHzWKuWhHBvD)l+~+j@pYS;) ztwMQUDQQML5xi`p?yOjhlE7l@inR(8odTW7O=@+UA@`Y!#PoeTh-%K>44?U$l^tVuvAw9r>Iqs>RD6O-LSf3(;##P~BM}q5%My7+9iER^=Zo2#eL#2xrDTvhI8 z0-PM|{ZX4O)}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N2k!OvlYVlK1EQRGHJtd2y0A&+L zFXcHb9L(4wi~G>Fbd2lk|RXTidplHK3VLWQV-*23~Dag7q2PleqI8Y{O< zb3?My&EU4US{k>XUYEm3EQkL=8>TZ=tjLWWu%d{;U42S+Jp_{e1`l3f6<7S}=h*nM zU(H;;?-^4n0srY$-~>wH*>AS>nmon58G6f~T1k&sEuSY?>tf*E?NH2&EUFy6qtoCr zZ4BEzKp0FhRM60ZEv(E+J?`ETart$&WF&2;Df|V65oO!r%ORJteA8p;Bs9basw{|` zkoI#mA|!

8pI{gX+YW$6i8)u5v_eZ=!3^xAsX39U(LrOAhW6nQk`hM9O=6{$_mIeNKUlnd z7Uwh_g;z&l=N>r?p8Pa6TtJIbQ+-HPB_v$U*0R1xaz1z*h#-3dZIEcEet+U~WND_| k(W13(ukoIB;yqV8#FnU_P#8~8%}2Fjf_xOUvUl=-0M9bp$^ZZW literal 0 HcmV?d00001 diff --git a/tests/ansible/regression/files/debian-archive-bullseye-automatic.gpg b/tests/ansible/regression/files/debian-archive-bullseye-automatic.gpg new file mode 100644 index 0000000000000000000000000000000000000000..66f1a94b55e3cd55f946abd6d5ff5beb4294b161 GIT binary patch literal 5836 zcma)=Wl$6hyM~t~Ru*sCPU%Ks>0G)I5D@AYWb#rPC>IQ$22;>9tr=Go3vJ_x zyQ5U|Tfx=dLuo6UIakPH=V<>+HPR$r#{??l1N3cNMGzz*jCi3Tw$?O2Jb?Eko_H^Ljp}$u}v% z5scH>!YMp!-Mz&~rypc&Sbl9a&?<2NJ{kZm0;qyPjRpn?647E%N2G}X0`J#JE=E7O zN%84v^jfU%+fc_yrYJg`Y~ zP-R~5;7lG0(;d;kvI}Y!&`nP^Wjd**P(qpK!4%O~Ht~jL(MwE=aNAp>7PNi)TyT>^ zI3sp-flW&w{xMotksM15)!UxhbjrD$tp3IzzXv!g2D;rw-%h(&{%~W-&i>{)_6rHF zbNaViGuU>Pty)^=| z{?k2mE-y%2>g9$BFvU1J*Ci2HRDO83FSL92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ZP6dqvXD|g7Nx9y6ccf`<+u>dvlhqc(p4v zhIDM%bbMT9)K#`q_>pUZy_e@A2U(3BsA=Xw-tZc``)n|d8{r2&SdI=XHH=C zn@8yr@9>Fq_pgvY*#Yx9jjGB;oQ6&A+>-qhx-!8++i%=lh&Aa@g=h(u;ROSTF2^-W z$9dgQg#Kc0WR6mF)xa5<)6R#i>+VVzSaY<0=1QHfEMlrgN#vF`L2wf7?f0^kO9fDm z1E7_JI}=y4$!QIP=(E4g?oc|a;B+{_@+LA#c+(9{twcc`J$sMBZBL4PWGfm4=0Z1O zdYw>S$6#6&Q5TEWFXdP-k)(B%fQQgoAv|5L1fS*L-oji?n)^(6V!}_{2G4?;)u*KA zD=i*g=mUtj>A~6AO8!o+TD^Aix(HBqQrDOs^I_70E(k$ioGct+lM%-W!_s z0w!A_2O(kPS#}#zdk2U`c7?z|W(_a_(WKOMdHZGg9X)*l>zym%P0j@QOcKoQq`DDs z4q?!NhKATIHV30ePfBzyJe`!i-U87?jXu>OF@q1Ml3~O|NVRk;MxmiZ((@<;qh#X0R+(Wn0x4G!O1 literal 0 HcmV?d00001 diff --git a/tests/ansible/regression/issue_776__load_plugins_called_twice.yml b/tests/ansible/regression/issue_776__load_plugins_called_twice.yml index 2eda3944..ad5bbd69 100755 --- a/tests/ansible/regression/issue_776__load_plugins_called_twice.yml +++ b/tests/ansible/regression/issue_776__load_plugins_called_twice.yml @@ -15,6 +15,30 @@ when: - ansible_facts.pkg_mgr in ["dnf"] + - name: Switch to archive.debian.org + # Debian 9 has been archived https://lists.debian.org/debian-devel-announce/2023/03/msg00006.html + copy: + content: | + deb http://archive.debian.org/debian stretch main contrib non-free + dest: /etc/apt/sources.list + mode: u=rw,go=r + when: + - ansible_facts.distribution == "Debian" + - ansible_facts.distribution_major_version == "9" + + - name: Add signing keys + copy: + src: "{{ item.src }}" + dest: "/etc/apt/trusted.gpg.d/{{ item.src | basename }}" + mode: u=rw,go=r + loop: + - src: debian-archive-bullseye-automatic.gpg # Debian 11 + - src: debian-archive-bookworm-automatic.gpg # Debian 12 + when: + # Ideally this would check for Debian 11, but distribution_major_version + # is unpopulated sometimes. + - ansible_facts.distribution == "Debian" + - name: Update package index apt: update_cache: true