Project

General

Profile

action #159642

Updated by okurz 23 days ago

## Motivation 
 If there are multiple assets with the same name in multiple folders the precedence is undefined and backend specific. This caused confusion multiple times e.g. 2024-04-26 in https://suse.slack.com/archives/C02CANHLANP/p1714119371977259 by Pablo Herranz 
 > Hello! I've got an issue that's driving me mad, and I'm not sure what can be happening. 
 I've created an 12-SP5 s390x qcow2 image in this job, where I'm getting sure of activating SUSE Package Hub and install jq packsge. Then, the same image is supposed to be used in some other jobs like this one but the jq command is not found. I've already re-created the image, and checked that there's no duplication in the fixed/ folder. I'm running out of ideas, so any help will be appreciated :) 

 Turned out there was a hdd/fixed/fixed_containers_to_delete/ folder containing copies of the images, so the job was taking those. The least we can do is to make such situation more explicit, e.g. fail explicitly if there are assets with the same name in multiple folders. 


 ## Acceptance criteria 
 * **AC1:** Test reviewers can know explicitly which asset folder is preferred, at least by clear error if there are multiple filenames with the same name 


 ## Suggestions 
 * Just fail if multiple files with the same name are found in lookup paths 
 * Consider making it clear on the test details somewhere which asset lookup path was used

Back