Bug 12086

Summary: Create an autobuilder script to test for long path errors
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Randy MacLeod <randy.macleod>
Component: Scripts and ToolsAssignee: Sermsity Sunil Kumar Dora <SunilKumar.Dora>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: Medium CC: Deepthi.Hemraj, richard.purdie, ross.burton, sundeep.kokkonda
Version: 2.5   
Target Milestone: 6.1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Randy MacLeod 2017-09-14 19:54:16 UTC
We would like to check that oe-core can build with very long project path lengths. This should be automated and run periodically to check for regressions. 

The test would need to be a full source build rather than use sstate to be effective and that might be a problem for the YP build farm usage.

Rather than doing 10s of builds to binary search for the exact maximum path
length, we could manually determine and fix the code to adhere to a 'reasonable' long path length of say 2-400 characters, then just look for regressions from that value. Then we could work on increasing the limit if needed.

I think it makes sense to run a check every day to pick up changed packages using sstate, then run a ~weekly test that does not use sstate. 

related defect: 
https://bugzilla.yoctoproject.org/show_bug.cgi?id=6986
Comment 1 Robert Yang 2017-11-17 05:55:16 UTC
I'm not familiar with autobuilder, can anyone do it, please ?
Comment 2 Anuj Mittal 2020-03-25 02:25:38 UTC
Is this something that can be closed? I have not seen any related issue in the recent past ... I am not sure what to do here.
Comment 3 Richard Purdie 2020-11-30 13:35:00 UTC
Adding a path length test which tested out maximum level supported and maintained that limit would be desirable.

The way forward now would be to add a test to qa-extras or qa-extras2 in autobuilder-helper, or maybe add a test to oe-selftest. 

The open question is how much of the system to test under the max path length and whether its a build from scratch or uses sstate. If its from scratch, it would be quite a long running selftest (although reproducibility does something similar).
Comment 4 Randy MacLeod 2023-10-24 14:24:30 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 5 Sermsity Sunil Kumar Dora 2025-07-29 08:20:47 UTC
I am working on Implementing a test case under oe-selftest. I will update soon.