| Summary: | oe-selftest on Ubuntu1704 hangs due to a resource warning of unclosed file. | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [QA/Testing] Build Testing | Reporter: | oscar lopez arandas <oscarx.lopez.arandas> | ||||||||
| Component: | general | Assignee: | Sonia Leon <sonia.leon.bautista> | ||||||||
| Status: | VERIFIED FIXED | QA Contact: | |||||||||
| Severity: | normal | ||||||||||
| Priority: | Medium+ | CC: | joshuagloe, leonardo.sandoval.gonzalez, libertad.gonzalez.de.la.cruz, richard.purdie, sonia.leon.bautista | ||||||||
| Version: | 2.3.2 | ||||||||||
| Target Milestone: | 2.5 M1 | ||||||||||
| Hardware: | Other | ||||||||||
| OS: | x86_64 | ||||||||||
| Whiteboard: | Backport 2.3.3? | ||||||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||||||
| Attachments: |
|
||||||||||
Created attachment 4020 [details]
fulllog
Assigning to Sonia who is GDC AB maintainer for further investigation (In reply to comment #0) > Ubuntu 17.04 seems to hang when running the oe-selftest for release 2.3.2 > rc1. With the following WARNING: > /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1704/build/ > bitbake/lib/bb/server/__init__.py:39: ResourceWarning: unclosed file > <_io.FileIO name=32 mode='wb' closefd=True> > self._idlefuns = {} > > Initial research points this to be a resource issue in the GDC AB worker > . This bug is filed in so that this could be investigated further more. > > STATUS: FAILED > BUILD: 2.3.2.rc1:ce26a57e04ad65c02087629701d96448a44e73d5 > ENVIRONMENT: Ubuntu 17.04 x86-64 > > STEPS TO REPRODUCE: > > 1 Clone poky > 2 source environment > 3 git checkout > 4 oe-selftest --run-all > > EXPECTED OUTCOME: > All tests cases should be executed correctly > > ACTUAL OUTCOME: > was reproduced 3 times and resulted the same fault > ============================================================================= > = > WARNING: > /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1704/build/ > bitbake/lib/bb/server/__init__.py:39: ResourceWarning: unclosed file > <_io.FileIO name=32 mode='wb' closefd=True> > self._idlefuns = {} > > > ============================================================================= > === > Full log attached I have seen this log which indeed requires further investigation. Is the latter causing test failure? python has GC (garbage collector) and I believe this is coming from the latter, so not really sure how to tackle this. Checking more in depth the logs of the release 2.3.2, there in common three warnings that were not appearing before, are present in fedora24, fedora 25, ubuntu1604 an centos7a, the tests of oe-selftest happen.
=================================================================================
WARNING: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-centos7a/build/bitbake/lib/bb/server/__init__.py:39: ResourceWarning: unclosed file <_io.FileIO name=33 mode='wb'>
self._idlefuns = {}
=================================================================================
WARNING: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-centos7a/build/bitbake/lib/bb/cache.py:449: ResourceWarning: unclosed file <_io.TextIOWrapper name=20 mode='w' encoding='UTF-8'>
value = pickled.load()
=================================================================================
WARNING: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-centos7a/build/bitbake/lib/bb/data_smart.py:1036: ResourceWarning: unclosed file <_io.TextIOWrapper name=20 mode='w' encoding='UTF-8'>
data_str = str([(k, data[k]) for k in sorted(data.keys())])
=================================================================================
WARNING: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-fedora24/build/bitbake/lib/bb/event.py:129: ResourceWarning: unclosed file <_io.TextIOWrapper name=23 mode='w' encoding='UTF-8'>
for name, handler in list(_handlers.items()):
==================================================================================
After an update and refresh problem is not present anymore. i cant put in verify why ubuntu1604 and fedora25 the warnings is present only ubuntu17.04 is not present the warnings. BUILD: 2.4 rc3 :65d23bd7986615fdfb0f1717b615534a2a14ab80 ENVIRONMENT: Ubuntu 16.04 x86-64 and fedora25 ============================================================================ WARNING: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1604/build/bitbake/lib/bb/codeparser.py:88: ResourceWarning: unclosed file <_io.TextIOWrapper name=47 mode='w' encoding='UTF-8'> WARNING: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1604/build/bitbake/lib/bb/codeparser.py:88: ResourceWarning: unclosed file <_io.TextIOWrapper name=47 mode='w' encoding='UTF-8'> for i in items: =============================================================================== full log's in attachment Created attachment 4110 [details]
full_log
Is this bug about the warning or the hang? We see the warnings in builds which don't hang so I believe these are two separate issues. We do see the warnings on the mail AB too. (In reply to comment #8) > Is this bug about the warning or the hang? > > We see the warnings in builds which don't hang so I believe these are two > separate issues. We do see the warnings on the mail AB too. the main error was that he hang up and sent warnings that never came out and failed. now no workers are hanging but the warnings are still present ... Last comment is that oe-selftest isn't hanging, therefore resolving the bug. the problem is solved or-self test isn't hanging, therefore resolving the bug. Build Configuration: BB_VERSION = "1.35.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "ubuntu-17.04" TARGET_SYS = "x86_64-poky-linux" MACHINE = "qemux86-64" DISTRO = "poky" DISTRO_VERSION = "2.4" TUNE_FEATURES = "m64 core2" meta-yocto-bsp = "heads/master:65d23bd7986615fdfb0f1717b615534a2a14ab80" ================================================================================ 2017-10-17 21:41:35,544 - oe-selftest - INFO - RESULTS - systemd_boot.Systemdboot.test_image_efi_file - Testcase 1528: PASSED 2017-10-17 21:41:35,544 - oe-selftest - INFO - SUMMARY: 2017-10-17 21:41:35,544 - oe-selftest - INFO - oe-selftest () - Ran 316 tests in 19684.423s 2017-10-17 21:41:35,544 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (skipped=1) program finished with exit code 0 elapsedTime=19700.524417 ================================================================================ full-log in attachment Created attachment 4152 [details]
all_tescases_pass
|
Ubuntu 17.04 seems to hang when running the oe-selftest for release 2.3.2 rc1. With the following WARNING: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1704/build/bitbake/lib/bb/server/__init__.py:39: ResourceWarning: unclosed file <_io.FileIO name=32 mode='wb' closefd=True> self._idlefuns = {} Initial research points this to be a resource issue in the GDC AB worker . This bug is filed in so that this could be investigated further more. STATUS: FAILED BUILD: 2.3.2.rc1:ce26a57e04ad65c02087629701d96448a44e73d5 ENVIRONMENT: Ubuntu 17.04 x86-64 STEPS TO REPRODUCE: 1 Clone poky 2 source environment 3 git checkout 4 oe-selftest --run-all EXPECTED OUTCOME: All tests cases should be executed correctly ACTUAL OUTCOME: was reproduced 3 times and resulted the same fault ============================================================================== WARNING: /home/ab/autobuilder/yocto-worker/nightly-oe-selftest-ubuntu1704/build/bitbake/lib/bb/server/__init__.py:39: ResourceWarning: unclosed file <_io.FileIO name=32 mode='wb' closefd=True> self._idlefuns = {} ================================================================================ Full log attached