Skip to contentSkip to conversation

new recipe: python3-pytest-httpx

PATCH In review Tom Geelen 2 participants 7 messages Nov 22, 2025 – Nov 23, 2025

lore
Share & tools
lore

Tom Geelen

author
#0 lore raw

PATCH 1/5 new recipe: python3-pytest-httpx

Description: Send responses to httpx.

---
 .../ptest-packagelists-meta-python.inc        |  1 +
 .../packagegroups/packagegroup-meta-python.bb |  1 +
 .../python/python3-pytest-httpx_0.35.0.bb     | 24 +++++++++++++++++++
 3 files changed, 26 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pytest-httpx_0.35.0.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index ad179ccf56..a172f8c676 100644
@@ -74,6 +74,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-pyasyncore \
     python3-pyroute2 \
     python3-pyserial \
+    python3-pytest-httpx \
     python3-pytest-mock \
     python3-pytest-sugar \
     python3-pytoml \
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index 9b06096d1d..ad68d74205 100644
@@ -348,6 +348,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-pytest-forked \
     python3-pytest-helpers-namespace \
     python3-pytest-html \
+    python3-pytest-httpx \
     python3-pytest-lazy-fixtures \
     python3-pytest-metadata \
     python3-pytest-tempdir \
meta-python/recipes-devtools/python/python3-pytest-httpx_0.35.0.bb new file +24 -0
new file mode 100644
index 0000000000..a419f8841e
@@ -0,0 +1,24 @@
+SUMMARY = "Send responses to httpx."
+HOMEPAGE = "https://github.com/Colin-b/pytest_httpx"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=80d06bde9296c367ea063b11e9518842"
+RECIPE_MAINTAINER = "Tom Geelen <[email protected]>"
+
+SRC_URI[sha256sum] = "d619ad5d2e67734abfbb224c3d9025d64795d4b8711116b1a13f72a251ae511f"
+
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+DEPENDS += "python3-setuptools-scm-native"
+
+RDEPENDS:${PN} += "\
+    python3-httpx (>=0.28) \
+    python3-pytest (>=8) \
+"
+
+RDEPENDS:${PN}-ptest += "\
+    python3-pytest-cov \
+    python3-pytest-asyncio \
+"
+
+PYPI_PACKAGE = "pytest_httpx"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
Signature · 1 line
2.43.0
author
#1 lore raw

PATCH 2/5 new recipe: python3-pytest-picked

Description: Run the tests related to the changed files

---
 .../include/ptest-packagelists-meta-python.inc   |  1 +
 .../packagegroups/packagegroup-meta-python.bb    |  1 +
 .../python/python3-pytest-picked_0.5.1.bb        | 16 ++++++++++++++++
 3 files changed, 18 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index a172f8c676..1cb419a721 100644
@@ -76,6 +76,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-pyserial \
     python3-pytest-httpx \
     python3-pytest-mock \
+    python3-pytest-picked \
     python3-pytest-sugar \
     python3-pytoml \
     python3-pyyaml-include \
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index ad68d74205..d3abc0761f 100644
@@ -351,6 +351,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-pytest-httpx \
     python3-pytest-lazy-fixtures \
     python3-pytest-metadata \
+    python3-pytest-picked\
     python3-pytest-tempdir \
     python3-pytest-timeout \
     python3-pytest-xdist \
meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb new file +16 -0
new file mode 100644
index 0000000000..79c47a32cc
@@ -0,0 +1,16 @@
+SUMMARY = "Run the tests related to the changed files"
+HOMEPAGE = "https://github.com/anapaulagomes/pytest-picked"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=6d374a27c85c3fcc979009952ec16f1b"
+RECIPE_MAINTAINER = "Tom Geelen <[email protected]>"
+
+SRC_URI[sha256sum] = "6634c4356a560a5dc3dba35471865e6eb06bbd356b56b69c540593e9d5620ded"
+
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+RDEPENDS:${PN} += "\
+    python3-pytest (>=3.7.0) \
+"
+
+PYPI_PACKAGE = "pytest_picked"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
Signature · 1 line
2.43.0
#2 lore raw

Re: [oe] [meta-python][PATCH 2/5] new recipe: python3-pytest-picked

tests fail on qemuarm64

{'python3-pytest-picked': 'START: ptest-runner\n'

                          '2025-11-23T01:09\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_should_return_git_status_command\n'

                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_should_not_warn_about_main_branch\n'

                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[D
'

                          'tests/migrations/auto.py-None]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[R
'

                          'tests/from-school.csv -> '
                          'test_new_things.py-test_new_things.py]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[R
'

                          'tests/from-school.csv -> '

'tests/test_new_things.py-tests/test_new_things.py]\n'

                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[ '

                          'M test.py-test.py]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[AD '

                          'test.py-None]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_parser_should_ignore_no_paths_characteres[?? '

                          'api/-api/]\n'
                          'PASS: '

'tests/test_modes.py:TestUnstaged.test_should_list_unstaged_changed_files_as_affected_tests\n'

                          'PASS: '

'tests/test_modes.py:TestBranch.test_should_return_command_that_list_all_changed_files\n'

                          'PASS: '

'tests/test_modes.py:TestBranch.test_should_warn_about_main_branch\n'

                          'PASS: '

'tests/test_modes.py:TestBranch.test_should_return_command_that_list_all_changed_files_for_different_branch\n'

                          'PASS: '

'tests/test_modes.py:TestBranch.test_parser_should_ignore_no_paths_characters[D

      '
                          'tests/migrations/auto.py-None]\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_parser_should_ignore_no_paths_characters[R098
'
'tests/test_pytest_picked.py '

'tests/test_pytest_picked.py-tests/test_pytest_picked.py]\n'

                          'PASS: '

'tests/test_modes.py:TestBranch.test_parser_should_ignore_no_paths_characters[M

      '
                          'test.py-test.py]\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_parser_should_ignore_no_paths_characters[AD

     '
                          'test.py-None]\n'
                          'PASS: '

'tests/test_modes.py:TestBranch.test_should_list_branch_changed_files_as_affected_tests\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py, '
'line 164\n'
' def test_should_list_changed_files(self, '
'testdir, git_repository):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, git_repository, ' 'monkeypatch, pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py:164\n'

                          'ERROR: '

'tests/test_modes.py:TestBranch.test_should_list_changed_files\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py, '
'line 171\n'
' def '

'test_should_only_list_pytest_root_changed_files(self, '

                          'git_repository, testdir):\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py, '
'line 8\n'
' @pytest.fixture\n'
' def git_repository(testdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, git_repository, ' 'monkeypatch, pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_modes.py:8\n'

                          'ERROR: '

'tests/test_modes.py:TestBranch.test_should_only_list_pytest_root_changed_files\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 6\n'
' def test_shows_affected_tests(testdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:6\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_shows_affected_tests\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 13\n'
' def test_help_message(testdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:13\n'

                          'ERROR: '
                          'tests/test_pytest_picked.py:test_help_message\n'
                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 26\n'
' @pytest.mark.parametrize("picked_type", [None,
'
'"only"])\n'
' def test_picked_type_options(testdir, ' 'picked_type):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:26\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_picked_type_options[None]\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 26\n'
' @pytest.mark.parametrize("picked_type", [None,
'
'"only"])\n'
' def test_picked_type_options(testdir, ' 'picked_type):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:26\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_picked_type_options[only]\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 38\n'
' def '

'test_filter_items_according_with_git_status(testdir, '
'tmpdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:38\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_filter_items_according_with_git_status\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 65\n'
' def '

'test_return_nothing_if_does_not_have_changed_test_files(testdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:65\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_return_nothing_if_does_not_have_changed_test_files\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 74\n'
' def '

'test_return_error_if_not_git_repository(testdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:74\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_return_error_if_not_git_repository\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 84\n'
' def '

'test_dont_call_the_plugin_if_dont_find_it_as_option(testdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:84\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_dont_call_the_plugin_if_dont_find_it_as_option\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 90\n'
' def '

'test_filter_file_when_is_either_modified_and_not_staged(testdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:90\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_filter_file_when_is_either_modified_and_not_staged\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 116\n'
' def test_handle_with_white_spaces(testdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:116\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_handle_with_white_spaces\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 146\n'
' def '

'test_should_match_with_the_begin_of_path(testdir, '
'tmpdir, tmpdir_factory):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:146\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_should_match_with_the_begin_of_path\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 160\n'
' def test_should_accept_branch_as_mode(testdir,
'
'tmpdir, recwarn):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:160\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_should_accept_branch_as_mode\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '

                          'line 189\n'
                          '  def

test_should_accept_unstaged_as_mode(testdir, '
'tmpdir, recwarn):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:189\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_should_accept_unstaged_as_mode\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 217\n'
' def '

'test_should_not_run_the_tests_if_mode_is_invalid(testdir, '
'tmpdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:217\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_should_not_run_the_tests_if_mode_is_invalid\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 226\n'
' def '

'test_picked_first_orders_tests_correctly(testdir, '
'tmpdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:226\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_picked_first_orders_tests_correctly\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 260\n'
' def ' 'test_picked_first_but_nothing_changed(testdir, ' 'tmpdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:260\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_picked_first_but_nothing_changed\n'

                          '\n'
                          'file '

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py, '
'line 279\n'
' def '

'test_should_accept_different_parent_branch_param(testdir, '
'tmpdir):\n'
"E fixture 'testdir' not found\n"
'> available fixtures: cache, capfd, '
'capfdbinary, caplog, capsys, capsysbinary, ' 'capteesys, doctest_namespace, monkeypatch, ' 'pytestconfig, record_property, ' 'record_testsuite_property, record_xml_attribute,
'
'recwarn, tmp_path, tmp_path_factory, tmpdir, ' 'tmpdir_factory\n'
"> use 'pytest --fixtures [testpath]' for
help "

                          'on them.\n'
                          '\n'

'/usr/lib/python3-pytest-picked/ptest/tests/test_pytest_picked.py:279\n'

                          'ERROR: '

'tests/test_pytest_picked.py:test_should_accept_different_parent_branch_param\n'

'============================================================================\n'

                          'Testsuite summary\n'
                          '# TOTAL: 36\n'
                          '# PASS: 17\n'
                          '# SKIP: 0\n'
                          '# XFAIL: 0\n'
                          '# FAIL: 0\n'
                          '# XPASS: 0\n'
                          '# ERROR: 19\n'
                          '\n'
                          'ERROR: Exit status is 1\n'
                          'DURATION: 1\n'}
Quoted 77 lines · Tom Geelen via lists.openembedded.org

Description: Run the tests related to the changed files

---
 .../include/ptest-packagelists-meta-python.inc   |  1 +
 .../packagegroups/packagegroup-meta-python.bb    |  1 +
 .../python/python3-pytest-picked_0.5.1.bb        | 16 ++++++++++++++++
 3 files changed, 18 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/

python3-pytest-picked_0.5.1.bb

meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index a172f8c676..1cb419a721 100644
@@ -76,6 +76,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-pyserial \
     python3-pytest-httpx \
     python3-pytest-mock \
+    python3-pytest-picked \
     python3-pytest-sugar \
     python3-pytoml \
     python3-pyyaml-include \
(quoted diff) +0 -0

packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/ packagegroup-meta-python.bb
index ad68d74205..d3abc0761f 100644

meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
@@ -351,6 +351,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-pytest-httpx \
     python3-pytest-lazy-fixtures \
     python3-pytest-metadata \
+    python3-pytest-picked\
     python3-pytest-tempdir \
     python3-pytest-timeout \
     python3-pytest-xdist \
(quoted diff) +0 -0

python3-pytest-picked_0.5.1.bb b/meta-python/recipes-devtools/python/ python3-pytest-picked_0.5.1.bb
new file mode 100644
index 0000000000..79c47a32cc

meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb new file +7 -0
@@ -0,0 +1,16 @@
+SUMMARY = "Run the tests related to the changed files"
+HOMEPAGE = "https://github.com/anapaulagomes/pytest-picked"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=6d374a27c85c3fcc979009952ec16f1b"
+RECIPE_MAINTAINER = "Tom Geelen <[email protected]>"
+
+SRC_URI[sha256sum] =

"6634c4356a560a5dc3dba35471865e6eb06bbd356b56b69c540593e9d5620ded"

meta-python/recipes-devtools/python/python3-pytest-picked_0.5.1.bb new file +9 -1
+
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+RDEPENDS:${PN} += "\
+    python3-pytest (>=3.7.0) \
+"
+
+PYPI_PACKAGE = "pytest_picked"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#121974):
https://lists.openembedded.org/g/openembedded-devel/message/121974
Mute This Topic: https://lists.openembedded.org/mt/116422738/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#3 lore raw

PATCH 3/5 new recipe: python3-pytest-retry

In reply to Tom Geelen

Description: Adds the ability to retry flaky tests in CI environments

---
 .../include/ptest-packagelists-meta-python.inc   |  1 +
 .../packagegroups/packagegroup-meta-python.bb    |  1 +
 .../python/python3-pytest-retry_1.7.0.bb         | 16 ++++++++++++++++
 3 files changed, 18 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-pytest-retry_1.7.0.bb
meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 1cb419a721..d2794d5df1 100644
@@ -77,6 +77,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-pytest-httpx \
     python3-pytest-mock \
     python3-pytest-picked \
+    python3-pytest-retry \
     python3-pytest-sugar \
     python3-pytoml \
     python3-pyyaml-include \
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
index d3abc0761f..dfc35f946f 100644
@@ -352,6 +352,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-pytest-lazy-fixtures \
     python3-pytest-metadata \
     python3-pytest-picked\
+    python3-pytest-retry \
     python3-pytest-tempdir \
     python3-pytest-timeout \
     python3-pytest-xdist \
meta-python/recipes-devtools/python/python3-pytest-retry_1.7.0.bb new file +16 -0
new file mode 100644
index 0000000000..e92122aa63
@@ -0,0 +1,16 @@
+SUMMARY = "Adds the ability to retry flaky tests in CI environments"
+HOMEPAGE = "https://github.com/str0zzapreti/pytest-retry"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c25bd3d1db774af27b10acd6f80bf939"
+RECIPE_MAINTAINER = "Tom Geelen <[email protected]>"
+
+SRC_URI[sha256sum] = "f8d52339f01e949df47c11ba9ee8d5b362f5824dff580d3870ec9ae0057df80f"
+
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+RDEPENDS:${PN} += "\
+    python3-pytest (>=7.0.0) \
+"
+
+PYPI_PACKAGE = "pytest_retry"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
Signature · 1 line
2.43.0
#4 lore raw

Re: [oe] [meta-python][PATCH 3/5] new recipe: python3-pytest-retry

Ptests are failing for qemuarm64

{'python3-pytest-retry':
['tests/test_retry_plugin.py:test_no_retry_on_pass',

'tests/test_retry_plugin.py:test_no_retry_on_fail_without_plugin',

'tests/test_retry_plugin.py:test_no_retry_on_skip_mark',

'tests/test_retry_plugin.py:test_no_retry_on_skip_call',

'tests/test_retry_plugin.py:test_no_retry_on_xfail_mark',

'tests/test_retry_plugin.py:test_no_retry_on_xpass',

'tests/test_retry_plugin.py:test_no_retry_on_strict_xpass',

'tests/test_retry_plugin.py:test_retry_fails_after_consistent_setup_failure',

'tests/test_retry_plugin.py:test_retry_exits_immediately_on_teardown_failure',

'tests/test_retry_plugin.py:test_retry_fails_after_consistent_test_failure',

'tests/test_retry_plugin.py:test_retry_passes_after_temporary_test_failure',

'tests/test_retry_plugin.py:test_custom_retry_outcome_for_reporting_compatibility',

'tests/test_retry_plugin.py:test_retry_passes_after_temporary_test_failure_with_flaky_mark',

'tests/test_retry_plugin.py:test_retries_if_flaky_mark_is_applied_without_options',

'tests/test_retry_plugin.py:test_fixtures_are_retried_with_test',

'tests/test_retry_plugin.py:test_retry_executes_class_scoped_fixture',

'tests/test_retry_plugin.py:test_retry_executes_module_scoped_fixture',

'tests/test_retry_plugin.py:test_retry_fails_if_temporary_failures_exceed_retry_limit',

'tests/test_retry_plugin.py:test_retry_delay_from_mark_between_attempts',

'tests/test_retry_plugin.py:test_retry_delay_from_command_line_between_attempts',

'tests/test_retry_plugin.py:test_passing_outcome_is_available_from_item_stash',

'tests/test_retry_plugin.py:test_failed_outcome_is_available_from_item_stash',

'tests/test_retry_plugin.py:test_skipped_outcome_is_available_from_item_stash',

'tests/test_retry_plugin.py:test_duration_is_available_from_item_stash',

'tests/test_retry_plugin.py:test_failed_outcome_after_successful_teardown',

'tests/test_retry_plugin.py:test_failed_outcome_after_unsuccessful_setup',

'tests/test_retry_plugin.py:test_failed_outcome_after_unsuccessful_teardown',

'tests/test_retry_plugin.py:test_attempts_are_always_available_from_item_stash',

'tests/test_retry_plugin.py:test_global_filtered_exception_is_retried',

'tests/test_retry_plugin.py:test_temporary_filtered_exception_fails_when_attempts_exceeded',

'tests/test_retry_plugin.py:test_temporary_exception_is_not_retried_if_filter_not_matched',

'tests/test_retry_plugin.py:test_temporary_exception_is_retried_if_not_globally_excluded',

'tests/test_retry_plugin.py:test_temporary_exception_fails_if_not_excluded_and_attempts_exceeded',

'tests/test_retry_plugin.py:test_temporary_exception_is_not_retried_if_excluded',

'tests/test_retry_plugin.py:test_flaky_mark_exception_filter_param_overrides_global_filter',

'tests/test_retry_plugin.py:test_attempt_count_is_correct',

'tests/test_retry_plugin.py:test_flaky_mark_overrides_command_line_options',

'tests/test_retry_plugin.py:test_configuration_by_ini_file',

'tests/test_retry_plugin.py:test_configuration_by_pyproject_toml_file',

'tests/test_retry_plugin.py:test_duration_in_overwrite_timings_mode',

'tests/test_retry_plugin.py:test_duration_in_cumulative_timings_mode',

'tests/test_retry_plugin.py:test_conditional_flaky_marks_evaluate_correctly',

'tests/test_retry_plugin.py:test_stack_trace_depth_uses_verbosity_count[vv]',

'tests/test_retry_plugin.py:test_stack_trace_depth_uses_verbosity_count[vvv]',

'tests/test_retry_plugin.py:test_stack_trace_depth_uses_verbosity_count[vvvv]']}

Quoted 77 lines · Tom Geelen via lists.openembedded.org

Description: Adds the ability to retry flaky tests in CI environments

---
 .../include/ptest-packagelists-meta-python.inc   |  1 +
 .../packagegroups/packagegroup-meta-python.bb    |  1 +
 .../python/python3-pytest-retry_1.7.0.bb         | 16 ++++++++++++++++
 3 files changed, 18 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/

python3-pytest-retry_1.7.0.bb

meta-python/conf/include/ptest-packagelists-meta-python.inc +1 -0
index 1cb419a721..d2794d5df1 100644
@@ -77,6 +77,7 @@ PTESTS_FAST_META_PYTHON = "\
     python3-pytest-httpx \
     python3-pytest-mock \
     python3-pytest-picked \
+    python3-pytest-retry \
     python3-pytest-sugar \
     python3-pytoml \
     python3-pyyaml-include \
(quoted diff) +0 -0

packagegroup-meta-python.bb b/meta-python/recipes-core/packagegroups/ packagegroup-meta-python.bb
index d3abc0761f..dfc35f946f 100644

meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +1 -0
@@ -352,6 +352,7 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-pytest-lazy-fixtures \
     python3-pytest-metadata \
     python3-pytest-picked\
+    python3-pytest-retry \
     python3-pytest-tempdir \
     python3-pytest-timeout \
     python3-pytest-xdist \
(quoted diff) +0 -0

python3-pytest-retry_1.7.0.bb b/meta-python/recipes-devtools/python/ python3-pytest-retry_1.7.0.bb
new file mode 100644
index 0000000000..e92122aa63

meta-python/recipes-devtools/python/python3-pytest-retry_1.7.0.bb new file +7 -0
@@ -0,0 +1,16 @@
+SUMMARY = "Adds the ability to retry flaky tests in CI environments"
+HOMEPAGE = "https://github.com/str0zzapreti/pytest-retry"
+LICENSE = "MIT"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=c25bd3d1db774af27b10acd6f80bf939"
+RECIPE_MAINTAINER = "Tom Geelen <[email protected]>"
+
+SRC_URI[sha256sum] =

"f8d52339f01e949df47c11ba9ee8d5b362f5824dff580d3870ec9ae0057df80f"

meta-python/recipes-devtools/python/python3-pytest-retry_1.7.0.bb new file +9 -1
+
+inherit pypi python_setuptools_build_meta ptest-python-pytest
+
+RDEPENDS:${PN} += "\
+    python3-pytest (>=7.0.0) \
+"
+
+PYPI_PACKAGE = "pytest_retry"
+UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
--

2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#121975):
https://lists.openembedded.org/g/openembedded-devel/message/121975
Mute This Topic: https://lists.openembedded.org/mt/116422739/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

author
#5 lore raw

PATCH 4/5 packagegroup-meta-python: sort RDEPENDS alphabetically

In reply to Tom Geelen
---
 .../packagegroups/packagegroup-meta-python.bb        | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
meta-python/recipes-core/packagegroups/packagegroup-meta-python.bb +6 -6
index dfc35f946f..bd1e760e0d 100644
@@ -144,8 +144,8 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-flask-versioned \
     python3-flask-wtf \
     python3-flask-xstatic \
-    python3-future \
     python3-frozenlist \
+    python3-future \
     python3-gast \
     python3-gcovr \
     python3-geojson \
@@ -216,9 +216,9 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-kiwisolver \
     python3-langtable \
     python3-lazy-object-proxy \
+    python3-ldap \
     python3-libconf \
     python3-license-expression \
-    python3-ldap \
     python3-lockfile \
     python3-lorem \
     python3-lrparsing \
@@ -356,8 +356,8 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-pytest-tempdir \
     python3-pytest-timeout \
     python3-pytest-xdist \
-    python3-pythonping \
     python3-python-vlc \
+    python3-pythonping \
     python3-pytoml \
     python3-pytun \
     python3-pyudev \
@@ -421,8 +421,8 @@ RDEPENDS:packagegroup-meta-python3 = "\
     python3-texttable \
     python3-thrift \
     python3-tinyrecord \
-    python3-tornado \
     python3-toolz \
+    python3-tornado \
     python3-tqdm \
     python3-trafaret \
     python3-trafaret-config \
@@ -508,6 +508,7 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\
     python3-prettytable-ptest \
     python3-ptyprocess-ptest \
     python3-pyasn1-modules-ptest \
+    python3-pyasn1-ptest \
     python3-pyroute2-ptest \
     python3-pyserial-ptest \
     python3-pytoml-ptest \
@@ -522,8 +523,8 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\
     python3-soupsieve-ptest \
     python3-sqlparse-ptest \
     python3-typeguard-ptest \
-    python3-ujson-ptest \
     python3-u-msgpack-python-ptest \
+    python3-ujson-ptest \
     python3-unidiff-ptest \
     python3-uritemplate-ptest \
     python3-webcolors-ptest \
@@ -533,7 +534,6 @@ RDEPENDS:packagegroup-meta-python3-ptest = "\
     python3-xxhash-ptest \
     python3-yappi-ptest \
     python3-yarl-ptest \
-    python3-pyasn1-ptest \
 "
 
 EXCLUDE_FROM_WORLD = "1"
Signature · 1 line
2.43.0
author
#6 lore raw

PATCH 5/5 ptest-packagelists-meta-python.inc: sort packages alphabetically

In reply to Tom Geelen
---
 .../ptest-packagelists-meta-python.inc        | 22 +++++++++----------
 1 file changed, 11 insertions(+), 11 deletions(-)
meta-python/conf/include/ptest-packagelists-meta-python.inc +11 -11
index d2794d5df1..2a254ec470 100644
@@ -8,8 +8,8 @@
 # ptests which take less than ~30s each
 PTESTS_FAST_META_PYTHON = "\
     python3-a2wsgi \
-    python3-appdirs \
     python3-ansicolors \
+    python3-appdirs \
     python3-asgiref \
     python3-aspectlib \
     python3-betamax \
@@ -18,11 +18,11 @@ PTESTS_FAST_META_PYTHON = "\
     python3-breathe \
     python3-cachetools \
     python3-cbor2 \
-    python3-configobj \
     python3-click \
+    python3-configobj \
     python3-dasbus \
-    python3-dominate \
     python3-dnspython \
+    python3-dominate \
     python3-evdev \
     python3-execnet \
     python3-fastjsonschema \
@@ -62,16 +62,15 @@ PTESTS_FAST_META_PYTHON = "\
     python3-precise-runner \
     python3-prettytable \
     python3-propcache \
-    python3-pyais \
-    python3-pydantic \
-    python3-pydantic-core \
-    python3-pylint \
-    python3-python-dotenv \
-    python3-python-multipart \
     python3-ptyprocess \
     python3-py-cpuinfo \
+    python3-pyais \
     python3-pyasn1-modules \
     python3-pyasyncore \
+    python3-pydantic \
+    python3-pydantic-core \
+    python3-pydbus \
+    python3-pylint \
     python3-pyroute2 \
     python3-pyserial \
     python3-pytest-httpx \
@@ -79,9 +78,10 @@ PTESTS_FAST_META_PYTHON = "\
     python3-pytest-picked \
     python3-pytest-retry \
     python3-pytest-sugar \
+    python3-python-dotenv \
+    python3-python-multipart \
     python3-pytoml \
     python3-pyyaml-include \
-    python3-pydbus \
     python3-pyzmq \
     python3-pyzstd \
     python3-rapidjson \
@@ -104,9 +104,9 @@ PTESTS_FAST_META_PYTHON = "\
     python3-typeguard \
     python3-typing-inspection \
     python3-tzdata \
+    python3-u-msgpack-python \
     python3-uinput \
     python3-ujson \
-    python3-u-msgpack-python \
     python3-unidiff \
     python3-uritemplate \
     python3-validators \
Signature · 1 line
2.43.0