Bug 15318

Summary: AB-INT: devtool.DevtoolModifyTests.test_devtool_modify_virtual failure initial_rev not found
Product: [QA/Testing] Functional (self) Testing Reporter: Alexandre Belloni <alexandre.belloni>
Component: oe-selftestAssignee: Unassigned <unassigned>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: Medium+ CC: alexandre.belloni, randy.macleod, richard.purdie, steve
Version: unspecified   
Target Milestone: 5.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard: AB-INT
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Alexandre Belloni 2023-12-11 18:02:57 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/80/builds/6050/steps/14/logs/stdio

oe-selftest-debian debian11-ty-3

2023-11-25 18:19:40,171 - oe-selftest - INFO - devtool.DevtoolModifyTests.test_devtool_modify_virtual (subunit.RemotedTestCase)
2023-11-25 18:19:40,171 - oe-selftest - INFO -  ... FAIL
Stderr:
2023-11-25 17:14:30,334 - oe-selftest - INFO - Adding: "include selftest.inc" in /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-4052005/conf/local.conf
2023-11-25 17:14:30,334 - oe-selftest - INFO - Adding: "include bblayers.inc" in bblayers.conf
2023-11-25 18:19:40,171 - oe-selftest - INFO - 3: 15/75 485/553 (8.06s) (0 failed) (devtool.DevtoolModifyTests.test_devtool_modify_virtual)
2023-11-25 18:19:40,172 - oe-selftest - INFO - testtools.testresult.real._StringException: Traceback (most recent call last):
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/selftest/cases/devtool.py", line 1050, in test_devtool_modify_virtual
    result = runCmd('devtool modify %s -x %s' % (virtrecipe, tempdir))
  File "/home/pokybuild/yocto-worker/oe-selftest-debian/build/meta/lib/oeqa/utils/commands.py", line 212, in runCmd
    raise AssertionError("Command '%s' returned non-zero exit status %d:\n%s" % (command, result.status, exc_output))
AssertionError: Command 'devtool modify virtual/make -x /tmp/devtoolqa72b902ie' returned non-zero exit status 1:
NOTE: Reconnecting to bitbake server...
INFO: Creating workspace layer in /home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-4052005/workspace
NOTE: Reconnecting to bitbake server...
Loading cache...done.
Loaded 1918 entries from dependency cache.
INFO: Mapping virtual/make to make
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = "2.6.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "4.3+snapshot-2696bf8cf35ca51b5147f6d462a1a9acea63097a"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta                 
meta-poky            
meta-yocto-bsp       = "master:2696bf8cf35ca51b5147f6d462a1a9acea63097a"
meta-selftest        = "master:25feb870e3b7cdb7a5878575196b5223de321efc"
Initialising tasks...done.
Sstate summary: Wanted 11 Local 0 Mirrors 11 Missed 0 Current 20 (100% match, 100% complete)
NOTE: Executing Tasks
NOTE: Tasks Summary: Attempted 104 tasks of which 101 didn't need to be rerun and all succeeded.
ERROR: Something went wrong with source extraction - the devtool-source class was not active or did not function correctly:
[Errno 2] No such file or directory: '/home/pokybuild/yocto-worker/oe-selftest-debian/build/build-st-4052005/tmp/work/core2-64-poky-linux/make/4.4.1/devtooltmp-5iz5wnmx/initial_rev'
Comment 1 Alexandre Belloni 2023-12-11 18:26:12 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6082/steps/14/logs/stdio

oe-selftest-fedora fedora38-ty-4
Comment 2 Alexandre Belloni 2023-12-11 23:17:05 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/5922/steps/14/logs/stdio

oe-selftest-ubuntu ubuntu2204-ty-3
Comment 3 Alexandre Belloni 2023-12-11 23:24:54 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/127/builds/2253/steps/14/logs/stdio

oe-selftest-armhost ubuntu2204-arm-1

devtool.DevtoolExtractTests.test_devtool_reset_all
Comment 4 Alexandre Belloni 2023-12-15 23:40:56 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6049/steps/14/logs/stdio

oe-selftest-fedora fedora38-ty-4
Comment 5 Randy MacLeod 2024-01-25 14:28:52 UTC
Bulk move of bugs owned by "unassigned" from 5.0-M2 to 5.0-M3.
Comment 8 Alexandre Belloni 2024-02-01 18:21:05 UTC
(In reply to Alexandre Belloni from comment #7)
> https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7225/steps/
> 15/logs/stdio
> qemuarm64-armhost ubuntu2204-arm-1
> 
> https://autobuilder.yoctoproject.org/typhoon/#/builders/97/builds/7206/steps/
> 15/logs/stdio
> qemuarm64-armhost ubuntu2204-arm-1

Mistake, those were 15185
Comment 9 Steve Sakoman 2024-03-20 21:29:30 UTC
kirkstone:

https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/6557/steps/14/logs/stdio

oe-selftest-fedora fedora38-ty-2
Comment 10 Steve Sakoman 2024-03-20 21:31:51 UTC
Sigh, the above was nanbield not kirkstone
Comment 11 Alexandre Belloni 2024-03-27 22:26:19 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/86/builds/5868/steps/14/logs/stdio

oe-selftest-fedora fedora38-ty-5
Comment 12 Alexandre Belloni 2024-04-05 21:58:29 UTC
https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/5968/steps/14/logs/stdio

oe-selftest-ubuntu ubuntu2204-ty-3
Comment 13 Richard Purdie 2024-05-16 11:36:22 UTC
I compared two logs, one of the cooker from a failed build and another with a local successful test run. At one point, one invalidates the base cache whilst the other only invalidates the parse cache. I suspect an issue with changes being made to config files but mtime hasn't quite changed yet as the changes haven't made it through to the disk. I'm experimenting with a patch with os.sync() in the cache check path in cooker.
Comment 14 Randy MacLeod 2024-06-06 14:59:59 UTC
We believe the mtime caching issues in bitbake have resolved this problem.
Re-open if seen again.