Merge lp:~deeptik/linaro-fetch-image/release-matrix into lp:linaro-fetch-image
Proposed by
Deepti B. Kalakeri
Status: | Merged |
---|---|
Merged at revision: | 22 |
Proposed branch: | lp:~deeptik/linaro-fetch-image/release-matrix |
Merge into: | lp:linaro-fetch-image |
Diff against target: |
222 lines (+132/-17) 2 files modified
linaro-fetch-image (+45/-15) linaro_fetch_image/fetch_image.py (+87/-2) |
To merge this branch: | bzr merge lp:~deeptik/linaro-fetch-image/release-matrix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
James Tunnicliffe (community) | Needs Fixing | ||
Review via email: mp+129360@code.launchpad.net |
Description of the change
Some useful command to get release list matrix, also modified l-i-f CLI to run l-m-c not just one but all the matching available platforms.
Next step is to be able to specify a list of platforms that we need to be able to build at one go.
To post a comment you must log in.
Hi,
Thanks for the patch. There are a couple of minor problems and I have one larger suggestion, but nothing that will take long to fix. First, this section with dates is unneeded:
+ # We only need to look up a single snapshot date. We just use the next_prev_ day_with_ builds may give up before finding it). return_ list( binaries" )[0][0] "(\d{4} )(\d{2} )(\d{2} )", date)
+ # latest in the database (we could use today and search from it, but
+ # the database is just one that is checked in, so it could be old
+ # and db.get_
+ date = db.execute_
+ "SELECT MAX(date) FROM snapshot_
+ d = re.search(
+ date = (d.group(1) + "-" + d.group(2) + "-" + d.group(3))
The date variable was only used for snapshot lookup, not for release lookup.
+ # - Run the function under test! -
This comment is now wrong
+ image_url, hwpack_url = ( image_and_ hwpack_ urls( append( self.settings[ 'platform' ]) self.settings[ 'image' ]].append( self.settings[ 'platform' ]) list[self. settings[ 'hardware' ]] = img_list
+ db.get_
+ self.settings))
+ temp_list.
+ img_list[
+ release_
Some of these lines are >80 characters wide. Since the function has a lot of indentation I suggest you move this section into its own function to make life easier:
+ # -- Check build which matches these parameters execute_ return_ list( 'platform' ], 'hwpack' ], 'build' ]))) execute_ return_ list( 'platform' ], 'image' ], 'build' ])))): image_and_ hwpack_ urls( append( self.settings[ 'platform' ])...
+ #(builds that don't match are excluded in UI)--
+ if( len(db.
+ 'select * from release_hwpacks '
+ 'where platform == ? '
+ 'and hardware == ? '
+ 'and build == ?',
+ (self.settings[
+ self.settings[
+ self.settings[
+ and len(db.
+ 'select * from release_binaries '
+ 'where platform == ? '
+ 'and image == ? '
+ 'and build == ?',
+ (self.settings[
+ self.settings[
+ self.settings[
+
+ # - Run the function under test! -
+ image_url, hwpack_url = (
+ db.get_
+ self.settings))
+ temp_list.