Include BUILD-INFO.txt in the Android builds

Registered by Zygmunt Krynicki

The infrastructure team has modified the build click-through to read a BUILD-INFO.txt file in the out directory of an Android build and to use its contents to drive the information in the click-through instead of hardcoding this text based on the build links.

Zygmunt Krynicki (the git repository and the licenses)
Gesha (test builds and hooking that up to jenkinks)

1) New overlay for open and open-restricted builds and updated overlays for origen and snowball
2) Jenkins configuration (TBD)
3) Additional scripts and source to all of my work is: downloads for all the overlays:

No card, general platform work.

Blueprint information

Zach Pfeffer
Zygmunt Krynicki
Series goal:
Proposed for 2012q2
Milestone target:
milestone icon backlog
Started by
Zygmunt Krynicki

Related branches



[zkrynicki, 2012-07-02]: Drafting based on
[zkrynicki, 2012-07-09]: Priority redefined in context to my other blueprints for 12.07, starting work in exclusive mode
[zkrynicki, 2012-07-09]: Discussed design with bhoj, won't need another git repo, reflected this in blueprint summary
[zkrynicki, 2012-07-10]: Woot, I got it working, I'll patch other vendor taballs and ask maintainers to sync them. that works:
 (you'll need to have in the same directory or have a valid /vendor/ I'll put this in a git repository after I discuss with the team tomorrow. UPDATE: zach insisted on using overlays for everything so no there will be no git tree, just a tarball, that I'll publish, that defines /vendor/open/build-info/ I'll ask snowball and origen maintainers to patch their tarballs with identical and apprpriate license for their binary bits. Once that happens I'll edit build descriptions to see if we have everything done. I'll need to sync with pfalcon to know if jenkins won't choke on those new files though
[zkrynicki, 2012-07-11] Synced with Asac. Described current situation. Will add validation scripts on asac's request. Synced with Danilos, currently the backend that consumes BUILD-INFO.txt is being rewritten from PHP to Python+Django. There is some concern over snowball vendor tarball as it needs to have some files open and some files restricted and the backend may have incorrect checking order (indeterministic)
[zkrynicki, 2012-07-12] Some updates: the git repo with the open version is on github ( I'll create branches for each vendor and export a tarball out of that.
[zkrynicki, 2012-07-12] I wrote 'verify-vendor-tarball' to check if the makefile is correct. You can get the script here:
[zkrynicki, 2012-07-13] Filed an RT ticket to create an open overlay: [ #536] AutoReply: Please install new open overlay for
[zkrynicki, 2012-07-13] While waiting for the ticket to settle I've started local test builds for all boards (no variations, just the main types we advertise) with my build-info additions. Results after weekend.
[zkrynicki, 2012-07-16] After some RT/IS woes we finally have the open tarball in the right spot
[zkrynicki, 2012-07-16] There are some build issues that I'm trying to understand that prevent the build from starting (Infrastructure, unrelated to my changes). Debugging now:
[zkrynicki, 2012-07-16] Blocked by
[zkrynicki, 2012-07-17] Unblocked by that and another bug (only snowball and origen overlays were copied to the build machines, now danilos added 'open' as well).
[zkrynicki, 2012-07-18] Panda builds with the open overlay are working now. It's still unsure if the BUILD-INFO file is actually copied to the apache download site:
[zkrynicki, 2012-07-18] Gesha is back from leave, we'll try to sort out the remainder of the problems and update all vendor overlays this week.
[zkrynicki, 2012-07-18] Reported a bug on igloocommunity to include build-info in the vendor tarball. Unable to assign that to Mathieu Poirier (lauchpad said 'constraint bla bla bla').
[zkrynicki, 2012-07-18] It seems that deployment may be blocked by staging servers for snapshots. The RT tickets for that are 517 and 504. The latter ticket is 'delayed' till 23rf of July. This puts this blueprint at risk
[zkrynicki, 2012-07-18] Samsung vendor tarball is maintained by Annamalai
[zkrynicki, 2012-07-18] Got two new tarballs from mpoirier (mali and mm), testing on hackbox now. If successful I'll file an RT ticket to update our current snowball blobs and do a test build.
[dzin July 18, 2012] Please add a Headline and Acceptance fields.
[zkrynicki, 2012-07-19] Both (mm, mali) builds for snowball work OK. Requesting RT ticket
[zkrynicki, 2012-07-19] Filed RT ticket [ #538] AutoReply: Please add two new overlays for snowball (20120718)
[zkrynicki, 2012-07-19] Ticket 538 done but reopened again (the files have incorrect permissions and cannot be downloaded, there is no EULA)
[zkrynicki, 2012-07-19] Requested ticket [ #540] AutoReply: Add test overlays to This ticket will allow us to test builds with fake overlays (correct license but no binary blobs) before going live with real builds.
[zkrynicki, 2012-07-20] Snowball and Panda builds confirmed working (build finished properly, BUILD-INFO.txt copied properly, device boots and works). No origen tests so far.
[zkrynicki, 2012-07-23] Blocked by RT ticket 540
[pfefferz, 2012-07-23] Moving to 12.08 because its blocked on RT ticket 540
[zkrynicki, 2012-07-23] Registered followup blueprint as:
[asac, 2012-07-26]: this blueprint is not implemented. it doesn't deliver the aimed for headline/acceptance. we don't have build info everywhere and the new click through approach is not used for everything binary.
[asac, 2012-07-26]: has to go through post-mortem. proposed split up: make this blueprint solely about rolling test builds and bringing up first iteration of overlay examples; make roll out to all tip builds and rolling out the final infrastructure tweaks separeate blueprints for 11.08.
[pfefferz, 2012-07-26] That's already been done. The split was complete on Monday at your request. Take a look at 12.08 specifically,
[zkrynicki, 2012-07-27] Moving to backlog, acked by pfefferz

Headline: Binary Blobs use new Data Driven Click-through
Acceptance: All builds use BUILD-INFO.txt

Download links for the security overlays (without the binary parts obviously)


Work Items

Work items:
Get the BUILD-INFO.txt’s from Georgy for each baseline: DONE
Talk to Gesha about his test build that should get the BUILD-INFO.txt in the right location in the build: DONE
Create a generic for the license stuff: DONE
Create an overlay for open: DONE
Create a script that checks the license of a vendor tarball: DONE
Create a script that validates embeded in a vendor tarball : DONE
Work around the django/PHP rewrite and indeterministic matching problem: DONE
Create an overlay for open restricted: DONE
Create an updated overlay for snowball: DONE
Create an updated overlay for origen: DONE
Install open overlay on DONE
Debug failure of build 125 (panda ics open): DONE
Patch build system to allow one to fetch overlays from the web: POSTPONED

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.