Bug 195515 - lang/python: Unstable and fails its own test suite
Summary: lang/python: Unstable and fails its own test suite
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: --- Affects Some People
Assignee: Sean Bruno
URL:
Keywords: needs-qa
Depends on:
Blocks:
 
Reported: 2014-11-30 00:52 UTC by Sean Bruno
Modified: 2017-04-01 07:10 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback+


Attachments
make test output from python27 (8.16 KB, text/plain)
2014-11-30 00:52 UTC, Sean Bruno
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sean Bruno freebsd_committer freebsd_triage 2014-11-30 00:52:31 UTC
Created attachment 150014 [details]
make test output from python27

The "make test" target in python27 fails for arm on emulated and real hardware.

test scenario:

Install emulators/qemu-user-static and ports-mgmt/poudriere-devel

Use the binmisc activator to setup redirection to qemu-bsd-user:
/usr/sbin/binmiscctl add armv6 --interpreter "/usr/local/bin/qemu-arm-static" \
--magic "\x7f\x45\x4c\x46\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00" \
--mask  "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \
--size 20 --set-enabled

use poudriere devel 3.1 to create a test jail and ports tree:
  poudriere jail -c -j 11-armv6 -m svn -v head -a arm.armv6 -x
  poudriere ports -c -p 11-armv6-test

Mount devfs and the ports tree into the jail:
  mkdir -p /usr/local/poudriere/jails/11-armv6/usr/ports
  mount -t nullfs /usr/local/poudriere/ports/11-armv6-test /usr/local/poudriere/jails/11-armv6/usr/ports
  mount -t devfs devfs usr/local/poudriere/jails/11-armv6/dev


Chroot into jail and start build of python27:
 chroot /usr/local/poudriere/jail/11-armv6/
 cd /usr/ports/lang/python27
 make -DBATCH

This should take about 20 minutes with emulation.  If the build fails or hangs, it can be cancelled.

Run regression tests:
cd work/Python-2.7.8
make test

This should yield the same results as one would find on real hardware.  I have attached the output of my test run for your examination.
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-11-30 00:52:31 UTC
Auto-assigned to maintainer python@FreeBSD.org
Comment 2 Kubilay Kocak freebsd_committer freebsd_triage 2014-12-12 02:13:17 UTC
Might be first worth ping'ing upstream Python developers at #python-dev on freenode for initial clues and direction.
Comment 3 Marcus von Appen freebsd_committer freebsd_triage 2014-12-16 07:40:40 UTC
Except from other errors, I'm seeing things like

"Qemu unsupported ioctl: cmd=0xffffffffc0046364 dir=INOUT 'c' 100 4 ..."

Is it guaranteed that the qemu environment represents a full armv6 emulation? If not, what are its limitations and difference?
Comment 4 Sean Bruno freebsd_committer freebsd_triage 2017-01-03 17:38:58 UTC
I don't know what we want to do with this issue any longer, and I'm not going to use bugzilla to track these types of emulation bugs in the future.
Comment 5 Kubilay Kocak freebsd_committer freebsd_triage 2017-04-01 07:10:35 UTC
Assign to person that resolved