Bug 14759 - toaster: automation to generate fixture files
Summary: toaster: automation to generate fixture files
Status: RESOLVED FIXED
Alias: None
Product: Toaster
Classification: Build System, Metadata & Runtime
Component: toaster (show other bugs)
Version: 4.0
Hardware: x86 Multiple
: Undecided major
Target Milestone: 4.0 M4
Assignee: David Reyna
QA Contact: Toaster default assignee
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2022-03-12 06:16 UTC by David Reyna
Modified: 2022-03-21 20:58 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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