Changeset 2498 for trunk/scripts
- Timestamp:
- Oct 12, 2009, 2:16:24 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-hooks/notes
r2358 r2498 1 1 2 2 3 on commit to submodule: 4 zephyr 5 nothing else? 6 7 superrepo heads are dev, prod, and dev-incoming, prod-incoming 8 on commit to superrepo: 9 reject commits to dev, prod 10 grab lock or fail 11 spawn build process 3 on push to submodule: 4 error on non-fast-forward 5 error on pushing tag 12 6 zephyr 13 7 14 in build process for foo-incoming: 15 for each changed submodule revision: 16 (as optimization: if same commit already in dev, just reprepro move) 17 try to build submodule 8 superrepo heads are dev and prod 9 on push to superrepo: 10 error - no pushes to superrepo 11 12 on remctl xvm repo (dev|prod) package SHA-1: 13 use remctl ACLs to limit pushes to correct groups 14 verify that new version number is greater than previous 15 echo "(dev|prod) package SHA-1" > $build_queue/TIMESTAMP 16 17 while build queue is not empty: 18 find min(os.listdir($build_queue)) 19 (as optimization: if same commit already in dev, just reprepro move) 20 try to build submodule 18 21 if fail: 19 abort whole build 20 clean up any previous packages' built files, maybe keep this one's around 21 remember package and version 22 for each changed submodule revision: (if we're still going) 23 tag submodule with version 24 upload to dev/prod respectively 25 clean up built files 26 commit to foo 27 zephyr? 28 release lock 29 if fail: 30 reset foo-incoming to old revision 31 send mail with log 22 keep build around 23 send mail with log 24 zephyr 25 upload to apt repo 26 tag submodule with version 27 commit superrepo with updated submodule 28 clean up build files 32 29 zephyr 33 release lock 34 35 Maybe there could be something sane without the lock? It'd require 36 more thought. 30 rm $build_queue file
Note: See TracChangeset
for help on using the changeset viewer.