Bug 14759

Summary: toaster: automation to generate fixture files
Product: [Build System, Metadata & Runtime] Toaster Reporter: David Reyna <david.reyna>
Component: toasterAssignee: David Reyna <david.reyna>
Status: RESOLVED FIXED QA Contact: Toaster default assignee <toaster>
Severity: major    
Priority: Undecided    
Version: 4.0   
Target Milestone: 4.0 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description David Reyna 2022-03-12 06:16:47 UTC
For each release the Toaster fixture files must be updated to remove older releases and add the new ones. Hand editing these XML files is very error prone, especially given the tight dependencies between the entries and shared indexes. 

A new python script has been created the generate these fixture files from a table. 

Usage:
  $ cd bitbake/lib/orm/fixtures
  $ vi gen_fixtures.py
  <update the 'current_releases' table>
  $ ./gen_fixtures.py --all

The 'poky.xml' and 'oe-core.xml' files are now updated.
Comment 1 David Reyna 2022-03-21 20:58:43 UTC
Pushed.

Commit: b6a535068dadbc6540c6f5cf49cb9fba777fe727