Resolved pTest failure by upgrading python-twisted to version 23.10.0#17675
Open
v-aaditya wants to merge 4 commits into
Open
Resolved pTest failure by upgrading python-twisted to version 23.10.0#17675v-aaditya wants to merge 4 commits into
python-twisted to version 23.10.0#17675v-aaditya wants to merge 4 commits into
Conversation
Author
|
Triggered Buddy Build and it has passed ! |
Author
|
After reviewing
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Merge Checklist
All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)
*-staticsubpackages, etc.) have had theirReleasetag incremented../cgmanifest.json,./toolkit/scripts/toolchain/cgmanifest.json,.github/workflows/cgmanifest.json)./LICENSES-AND-NOTICES/SPECS/data/licenses.json,./LICENSES-AND-NOTICES/SPECS/LICENSES-MAP.md,./LICENSES-AND-NOTICES/SPECS/LICENSE-EXCEPTIONS.PHOTON)*.signatures.jsonfilessudo make go-tidy-allandsudo make go-test-coveragepassSummary
Issue
python-twistedversion22.10.0is not compatible withpython 3.12which is a known issue and can be fixed by upgradingpython-twistedto version23.8.0which was the first which has officialpython 3.12support or above. Reference Link - Python 3.12 test failures twisted/twisted#11888Logging / warning system changes in 3.12Stricter AF_UNIX path-length enforcementtwisted.internet.test,twisted.names.test,twisted.conch.test, andtwisted.web.testopen real sockets, depend on multicast, DNS resolution,/etc/services, realgetaddrinfoand child processes via os.fork. In a restricted chroot environment, many of these could be blocked.22.10.0only for EPEL9, where they are either patching the test cases or skipping them. When I used the same patches on AZL, I was able to build the package but the pTest were still getting stuck. Other fedora versions are using package version24.11.0or25.5.0.Fix
python-twistedto version 23.10.0 which is compatible with python version 3.12 and above.Disable-multicast-ssl-test.patch.python3-twistedfrom BuildRequires in packagepytestas it was giving circular dependency issue.Reasoning - On Azure Linux 3.0 we don't run pytest's own twisted-based test suite for which it was needed in the BR. Fedora also handles
python3-twistedforpytestonly as an optional test dependency, gated with%if %{with optional_tests}(refer Fedora pytest 8.3.5 spec file).AI Analysis relevance (In %) / Reasoning
AI Analysis relevance (In %): 0 (No AI analysis was available)
Change Log
Does this affect the toolchain?
NO
Associated Issues
Test Methodology
Local build was successful.
pytest-7.4.0-3.azl3.src.rpm.log
pytest-7.4.0-3.azl3.src.rpm.test.log
python-twisted-23.10.0-1.azl3.src.rpm.log
python-twisted-23.10.0-1.azl3.src.rpm.test.log
Patch applies cleanly

License check script shows no warning.
Installation and uninstallation on docker image was successful.