Bug 1850621

Summary: Building the python3-3.8.3 src rpm with flatpackage error sqlite test
Product: [Fedora] Fedora Reporter: dani
Component: python3Assignee: Charalampos Stratakis <cstratak>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 32CC: cstratak, dmalcolm, m.cyprian, mhroncok, mplch, pviktori, python-sig, rkuska, shcherbina.iryna, slavek.kabrda, tomspur, torsava, vstinner
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: python3-3.8.3-2.fc32 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-25 01:50:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Full output of rpmbuild --with flatpackage --with bootstrap --without rpmwheels none

Description dani 2020-06-24 15:05:36 UTC
Created attachment 1698619 [details]
Full output of rpmbuild --with flatpackage --with bootstrap --without rpmwheels

Description of problem:
Trying to build a flatpackage python38 from unmodified src rpm python3-3.8.3-1.fc32.src.rpm using the command line:
rpmbuild -ba SPECS/python3.spec --with flatpackage --with bootstrap --without rpmwheels
results in error:
3 tests failed:
    test_cmd_line_script test_code_module test_sqlite

Version-Release number of selected component (if applicable):
python3-3.8.3-1

How reproducible:
Always

Steps to Reproduce:
1. rpm -i python3-3.8.3-1.fc32.src.rpm
2. rpmbuild -ba ~/rpmbuild/SPECS/python3.spec --with flatpackage --with bootstrap --without rpmwheels
3.

Actual results:
Bad exit status from /var/tmp/rpm-tmp.x2PZME (%check)

Expected results:
RPMs built according to command line flags

Additional info:
gcc version 10.1.1

Comment 1 Fedora Update System 2020-06-24 15:13:11 UTC
FEDORA-2020-6b6cb65e9e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-6b6cb65e9e

Comment 2 Fedora Update System 2020-06-25 01:50:55 UTC
FEDORA-2020-6b6cb65e9e has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 3 dani 2020-06-25 05:18:53 UTC
Problem still persists, now on 2 different tests:

FAILED (failures=1)
test test_cmd_line_script failed
2 tests failed again:
    test_cmd_line_script test_code_module

== Tests result: FAILURE then FAILURE ==

======================================================================
FAIL: test_pep_409_verbiage (test.test_cmd_line_script.CmdLineTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dani/rpmbuild/BUILD/Python-3.8.3/Lib/test/test_cmd_line_script.py", line 526, in test_pep_409_verbiage
    self.assertEqual(len(text), 4)
AssertionError: 5 != 4

----------------------------------------------------------------------


test_cause_tb (test.test_code_module.TestInteractiveConsole) ... Binary field with zero length
FAIL

======================================================================
FAIL: test_cause_tb (test.test_code_module.TestInteractiveConsole)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/dani/rpmbuild/BUILD/Python-3.8.3/Lib/test/test_code_module.py", line 132, in test_cause_tb
    self.assertIn(expected, output)
AssertionError: '\nAttributeError\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File "<console>", line 1, in <module>\nValueError\n' not found in 'Python <MagicMock name=\'sys.version\' id=\'140286517534336\'> on <MagicMock name=\'sys.platform\' id=\'140286517051296\'>\nType "help", "copyright", "credits" or "license" for more information.\n(InteractiveConsole)\nAttributeError\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n  File "/home/dani/rpmbuild/BUILD/Python-3.8.3/Lib/code.py", line 90, in runcode\n    exec(code, self.locals)\n  File "<console>", line 1, in <module>\nValueError\n\nnow exiting InteractiveConsole...\n'

----------------------------------------------------------------------

Comment 4 Miro Hrončok 2020-06-25 07:56:37 UTC
That is a different problem. Would you mind opening a different bugzilla?

Comment 5 dani 2020-06-25 08:30:36 UTC
I'm not sure that is a different issue - the 3 failed tests are clearly stated in the description when the bug was opened :
3 tests failed:
    test_cmd_line_script test_code_module test_sqlite

Anyway opened a new bug 1850933 - https://bugzilla.redhat.com/show_bug.cgi?id=1850933

Comment 6 Miro Hrončok 2020-06-25 09:04:48 UTC
You are right and I have missed that because of the bug description. Sorry about that. Let's continue in bz1850933.