mbox series

[0/7] python 3.12 related fixes 2

Message ID 20240210131727.342583-1-adrian.freihofer@siemens.com
Headers show
Series python 3.12 related fixes 2 | expand

Message

Adrian Freihofer Feb. 10, 2024, 1:15 p.m. UTC
Bug fixes for host distros with Python 3.12.

Tested by running the oe-selftest suite like this:
  oe-selftest -a --skip-tests distrodata.Distrodata.test_checkpkg \
  reproducible -T yocto-mirrors -T machine -T toolchain-user \
  -T toolchain-system -j4

using the default local.conf file with 3 extra lines:
  SANITY_TESTED_DISTROS = ""
  IMAGE_INSTALL:append = ' ssh-pregen-hostkeys'
  QEMU_USE_KVM = 'True'

Host distro: Fedora 39
Based on master-next including latest related fixes from Richard and
Ross.

With this patchset almost all oe-selftests pass on my machine.
Failing tests are:
- runtime_test.TestImage.test_testimage_virgl_gtk_sdl
- spdx.SPDXCheck.test_spdx_base_files
- sstatetests.SStateHashSameSigs3.test_sstate_sametune_samesigs
- sysroot.SysrootTests.test_sysroot_cleanup
- Some wic tests fail when executed as part of oe-selftest -a but pass
  when executed with oe-selftest -r wic
Lets see what the official Fedora-39 runner will report later on.

The regex related patches fixes many warnings which will be errors with
the next Python 3.13 version. How regexes should be defined chagned with
Python 3.0: https://docs.python.org/3/library/re.html basically states
that regular expressions using the backslash character like "foo\s*"
should be written as raw strings like r"foo\s*".
These patches do that for many but not for all regexes. Some are not
easy to convert and/or test.

Adrian Freihofer (7):
  oeqa/selftest/oelib/buildhistory: git default branch
  scripts: python 3.12 regex
  bitbake/lib/bs4/tests/test_tree.py: python 3.12 regex
  feature-microblaze-versions.inc: python 3.12 regex
  meta/lib/oeqa: python 3.12 regex
  meta/lib/patchtest: python 3.12 regex
  meta/recipes: python 3.12 regex

 bitbake/lib/bs4/tests/test_tree.py            |  2 +-
 .../feature-microblaze-versions.inc           |  2 +-
 meta/lib/oeqa/oetest.py                       |  2 +-
 meta/lib/oeqa/selftest/cases/bblayers.py      |  2 +-
 meta/lib/oeqa/selftest/cases/fitimage.py      |  6 +--
 .../oeqa/selftest/cases/oelib/buildhistory.py | 18 +++++++--
 meta/lib/patchtest/tests/base.py              |  4 +-
 meta/lib/patchtest/utils.py                   |  6 +--
 .../perf/perf/sort-pmuevents.py               |  8 ++--
 meta/recipes-rt/rt-tests/files/rt_bmark.py    |  2 +-
 scripts/combo-layer                           |  2 +-
 scripts/contrib/bbvars.py                     |  6 +--
 scripts/contrib/convert-overrides.py          |  8 ++--
 scripts/lib/checklayer/__init__.py            |  4 +-
 scripts/lib/recipetool/create.py              | 12 +++---
 scripts/lib/recipetool/create_buildsys.py     | 38 +++++++++----------
 scripts/oe-check-sstate                       |  2 +-
 scripts/oe-pkgdata-util                       |  2 +-
 scripts/opkg-query-helper.py                  |  2 +-
 scripts/patchtest-get-branch                  |  2 +-
 20 files changed, 70 insertions(+), 60 deletions(-)