For unknown reason, packages from required_packages were installed in seemingly arbitrary order.
This lead to errors like:
No match for argument: tox
As tox was trying to be installed before epel.
Or:
Problem: conflicting requests
- nothing provides epel-release = 9-10.el9 needed by epel-next-release-9-10.el9.noarch from @commandline
As epel-next-release was trying to be installed before epel.
Let's prefix everything with epel installation. One by one, in the required order.
Related: RHEL-168159, RHEL-167917
69 lines
2.4 KiB
YAML
69 lines
2.4 KiB
YAML
---
|
|
- hosts: localhost
|
|
tags:
|
|
- classic
|
|
tasks:
|
|
- dnf:
|
|
name: "*"
|
|
state: latest
|
|
- dnf:
|
|
name: "https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm"
|
|
state: installed
|
|
- dnf:
|
|
name: "https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm"
|
|
state: installed
|
|
|
|
- hosts: localhost
|
|
roles:
|
|
- role: standard-test-basic
|
|
tags:
|
|
- classic
|
|
repositories:
|
|
- repo: "https://gitlab.com/redhat/centos-stream/tests/python.git"
|
|
dest: "python"
|
|
pybasever: "3.12"
|
|
tests:
|
|
- rpm_qa:
|
|
run: rpm -qa
|
|
- smoke:
|
|
dir: python/smoke
|
|
run: "VERSION={{ pybasever }} ./venv.sh"
|
|
- smoke_virtualenv:
|
|
dir: python/smoke
|
|
run: "VERSION={{ pybasever }} METHOD=virtualenv ./venv.sh"
|
|
- debugsmoke:
|
|
dir: python/smoke
|
|
run: "PYTHON=python{{ pybasever }}d TOX=false VERSION={{ pybasever }} ./venv.sh"
|
|
- selftest:
|
|
dir: python/selftest
|
|
run: "VERSION={{ pybasever }} X='-i test_check_probes' ./parallel.sh"
|
|
- debugtest:
|
|
dir: python/selftest
|
|
run: "VERSION={{ pybasever }} PYTHON=python{{ pybasever }}d X='-i test_check_probes' ./parallel.sh"
|
|
- optimizedflags_self:
|
|
dir: python/flags
|
|
run: "python{{ pybasever }} ./assertflags.py -O3 PY_BUILTIN_MODULE_CFLAGS PY_CFLAGS_NODIST PY_CORE_CFLAGS PY_STDMODULE_CFLAGS"
|
|
- optimizedflags_3rd:
|
|
dir: python/flags
|
|
run: "python{{ pybasever }} ./assertflags.py -O2 CFLAGS PY_CFLAGS"
|
|
- debugflags:
|
|
dir: python/flags
|
|
run: "python{{ pybasever }}d ./assertflags.py -O0"
|
|
- marshalparser:
|
|
dir: python/marshalparser
|
|
run: "VERSION={{ pybasever }} SAMPLE=10 test_marshalparser_compatibility.sh"
|
|
required_packages:
|
|
- gcc # for extension building in venv and selftest
|
|
- gcc-c++ # for test_cppext
|
|
- gdb # for test_gdb
|
|
- "python{{ pybasever }}" # the test subject
|
|
- "python{{ pybasever }}-debug" # for leak testing
|
|
- "python{{ pybasever }}-devel" # for extension building in venv and selftest
|
|
- "python{{ pybasever }}-tkinter" # for selftest
|
|
- "python{{ pybasever }}-test" # for selftest
|
|
- tox # for venv tests
|
|
- virtualenv # for virtualenv tests
|
|
- glibc-all-langpacks # for locale tests
|
|
- marshalparser # for testing compatibility (magic numbers) with marshalparser
|
|
- rpm # for debugging
|