Bug 14665

Summary: AB-INT: prservice.BitbakePrTests.test_import_export_replace_db failure
Product: [QA/Testing] Functional (self) Testing Reporter: Alexandre Belloni <alexandre.belloni>
Component: oe-selftestAssignee: Unassigned <unassigned>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandre.belloni, luca.ceresoli, naveen.kumar.saini, randy.macleod, richard.purdie, tgamblin
Version: 4.0   
Target Milestone: 4.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT AB-SSD AB-FREQUENT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2021-12-16 00:09:12 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/2930/steps/14/logs/stdio

2021-12-06 00:24:50,233 - oe-selftest - INFO - prservice.BitbakePrTests.test_import_export_replace_db (subunit.RemotedTestCase)
2021-12-06 00:24:50,233 - oe-selftest - INFO -  ... FAIL
2021-12-06 00:24:50,233 - oe-selftest - INFO - 1: 26/34 311/450 (65.68s) (prservice.BitbakePrTests.test_import_export_replace_db)
2021-12-06 00:24:50,233 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/prservice.py", line 95, in test_import_export_replace_db
    self.run_test_pr_export_import('m4')
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/prservice.py", line 87, in run_test_pr_export_import
    self.assertEqual(import_result.status, 0, msg="PR Service database import failed: %s" % import_result.output)
  File "/usr/lib/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/usr/lib/python3.8/unittest/case.py", line 905, in _baseAssertEqual
    raise self.failureException(msg)
AssertionError: 1 != 0 : PR Service database import failed: NOTE: Started PRServer with DBfile: /home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/build-st-4137592/cache/prserv.sqlite3, Address: 127.0.0.1:38209, PID: 2457152
Loading cache...done.
Loaded 0 entries from dependency cache.
Parsing recipes...ERROR: ParseError in None: Not all recipes parsed, parser thread killed/died? Exiting.
Comment 1 Richard Purdie 2022-02-10 13:22:39 UTC
Very rare and hasn't reproduced for me :(
Comment 2 Alexandre Belloni 2022-03-17 16:47:02 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/3296/steps/14/logs/stdio

oe-selftest-ubuntu ubuntu2110-ty-2 SSD

2022-03-15 09:28:10,206 - oe-selftest - INFO - prservice.BitbakePrTests.test_import_export_replace_db (subunit.RemotedTestCase)
2022-03-15 09:28:10,207 - oe-selftest - INFO -  ... FAIL
Stderr:
2022-03-15 08:59:08,697 - oe-selftest - INFO - Adding: "include selftest.inc" in /home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/build-st-60613/conf/local.conf
2022-03-15 08:59:08,698 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2022-03-15 09:28:10,207 - oe-selftest - INFO - 3: 49/60 277/479 (35.46s) (prservice.BitbakePrTests.test_import_export_replace_db)
2022-03-15 09:28:10,207 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/prservice.py", line 95, in test_import_export_replace_db
    self.run_test_pr_export_import('m4')
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/prservice.py", line 78, in run_test_pr_export_import
    self.assertTrue(os.path.exists(exported_db_path))
  File "/usr/lib/python3.9/unittest/case.py", line 680, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true
Comment 3 Naveen Saini 2022-03-28 08:10:01 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/3325/steps/14/logs/stdio

oe-selftest-fedora fedora34-ty-1
Comment 4 Alexandre Belloni 2022-03-31 20:12:15 UTC
The previous occurrence has been separated out to bug 14773
Comment 5 Alexandre Belloni 2022-04-06 09:41:41 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/3339/steps/14/logs/stdio

debian11-ty-3 has an SSD
Comment 6 Luca Ceresoli 2022-04-13 19:03:36 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/3447/steps/14/logs/stdio

oe-selftest-ubuntu ubuntu1804-ty-3
Comment 7 Randy MacLeod 2022-04-14 15:25:32 UTC
Can we add logging or come up with a plan for how to make progress on this bug?
Comment 8 Luca Ceresoli 2022-04-20 07:31:50 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/3419/steps/14/logs/stdio

oe-selftest-debian on debian11-ty-3
Comment 9 Richard Purdie 2022-10-27 14:50:23 UTC
May have been fixed by https://git.yoctoproject.org/poky/commit/?id=122b8e0ceade6876efce7496a0c0873db48eb024
Comment 10 Alexandre Belloni 2023-02-16 16:37:21 UTC
2022-12-21 22:14:42,000 - oe-selftest - INFO - prservice.BitbakePrTests.test_import_export_replace_db (subunit.RemotedTestCase)
2022-12-21 22:14:42,001 - oe-selftest - INFO -  ... FAIL
2022-12-21 22:14:42,001 - oe-selftest - INFO - 8: 9/20 283/507 (41.10s) (prservice.BitbakePrTests.test_import_export_replace_db)
2022-12-21 22:14:42,001 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/prservice.py", line 97, in test_import_export_replace_db
    self.run_test_pr_export_import('m4')
  File "/home/pokybuild/yocto-worker/oe-selftest-ubuntu/build/meta/lib/oeqa/selftest/cases/prservice.py", line 80, in run_test_pr_export_import
    self.assertTrue(os.path.exists(exported_db_path))
  File "/usr/lib/python3.8/unittest/case.py", line 765, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true

https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/4589/steps/14/logs/stdio

oe-selftest-ubuntu ubuntu2004-ty-1
Comment 11 Luca Ceresoli 2023-04-12 07:23:02 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/5005/steps/14/logs/stdio

oe-selftest-debian on debian11-ty-2
Comment 12 Alexandre Belloni 2023-05-17 23:16:05 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/1333/steps/14/logs/stdio

oe-selftest-armhost ubuntu2004-arm-1
Comment 13 Alexandre Belloni 2023-05-17 23:41:48 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/5088/steps/14/logs/stdio

oe-selftest-debian debian11-ty-1
Comment 14 Alexandre Belloni 2023-06-08 20:53:11 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/1450/steps/14/logs/stdio

oe-selftest-armhost ubuntu2004-arm-1
Comment 15 Luca Ceresoli 2023-06-23 10:31:22 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/5336/steps/14/logs/stdio

oe-selftest-debian on debian11-ty-3
Comment 16 Randy MacLeod 2023-07-26 21:21:58 UTC
Bulk move of 64 bugs to 4.3 M3 after a quick review.
If a bug is actually fixed, please add a commit link and resolve it.
-- Randy for YP bug team.
Comment 17 Luca Ceresoli 2023-08-28 20:13:51 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/1975/steps/14/logs/stdio

oe-selftest-armhost on ubuntu2004-arm-1
Comment 18 Trevor Gamblin 2023-09-14 15:31:33 UTC
Moved to M4.
Comment 19 Richard Purdie 2023-09-18 12:53:41 UTC
Looks like the same issue as 15005

*** This bug has been marked as a duplicate of bug 15005 ***