ap-common: Have ap-push for linux trees use refs/heads/
PATCH 1/3 ap-common: Have ap-push for linux trees use refs/heads/
As per the docs in README.dev.
Signed-off-by Ian Jackson <[email protected]>
--- ap-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ap-common +1 -1
@@ -136,7 +136,7 @@ info_linux_tree () { : ${BASE_TREE_LINUX_THIS:=$BASE_TREE_LINUX} : ${PUSH_TREE_LINUX_THIS:=$PUSH_TREE_LINUX} : ${BASE_TAG_LINUX_THIS:=tested/$1} - : ${PUSH_TAG_LINUX_THIS:=$BASE_TAG_LINUX_THIS} + : ${PUSH_TAG_LINUX_THIS:=refs/heads/$BASE_TAG_LINUX_THIS} return 0 }
Signature · 1 line
1.7.10.4
PATCH 2/3 mg-branch-setup: New script
Also, update the README.dev accordingly
Signed-off-by Ian Jackson <[email protected]>
--- README.dev | 77 +++++++++++++++------------------------- mg-branch-setup | 106 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 134 insertions(+), 49 deletions(-) create mode 100755 mg-branch-setup
README.dev +28 -49
@@ -69,60 +69,39 @@ former case, disables everything; in the latter, just that "branch") Creating a new branch ===================== -As osstest@osstest: - -$ cd branches - -($branch sort of matching ap-fetch-version modulo wildcards and must -match cron invocation) - -$ cd ~osstest/branches -$ umask 002 -$ git clone ../testing.git for-$branch.git - -If you want to bisect then: -$ cd ../bisects -$ git clone ../testing.git for-$branch.git - -$ cd ../branches -$ ln -s /export/home/osstest/bisects/for-$branch.git for-$branch.git/tree-bisect - -$ mkdir for-$branch.git/tmp -# For manual playing only. - -Now can play in here. Can push random stuff and run -"cr-daily-branch --real $branch" as osstest@osstest. e.g. +* Add appropriate code to ap-* + (For linux-* this is not needed if the tag is in the standard namespace) + (ap-push should use refs/heads/foo, not just `foo', for the remote + ref name - so that the initial push works) + +* Create any necessary output tree on xenbits: + As xen@xenbits do mkdir and git init --bare + If this tree is going to contain push gate input, push something to + the push gate input ref. + +* Create the actual trees and push an initial version + As osstest@osstest: + $ cd $HOME/testing.git + $ OSSTEST_CONFIG=production-config \ + ./mg-branch-setup BRANCH bisect INITIAL-TESTED-VERSION + +* Optional testing: + You can now play in here if you like. Can push random stuff and run + "cr-daily-branch --real $branch" as osstest@osstest. e.g. $ OSSTEST_EMAIL_HEADER=/home/ianc/osstest-email-ijc \ OSSTEST_CONFIG=production-config ./cr-daily-branch --real $branch -Note: Push to incoming and git reset --hard incoming -Note2: -$ cat ~/osstest-email-ijc -To: [email protected] - -Do not run cr-for-branches -- it will try to update all sorts trees -etc. - -Need to create any xenbits trees which are referenced: - -As xen@xenbits do mkdir and git init --bare, but this might confuse -cr-daily-branches so you would want to push something there -(e.g. current master, easiest to do as osstest@osstest). Or "git clone ---bare" but might create all sorts of unwanted refs. - -Use ap-push to populate tree, in order to test ap-push, after using -ap-fetch-version to populate the local repo. e.g. -OSSTEST_CONFIG=production-config ./ap-fetch-version $branch -OSSTEST_CONFIG=production-config ./ap-push $branch $revision + If you do this, do not run cr-for-branches -- it will try to update + all sorts trees etc. -NOTE: $revision must be a revision *not* a tag. If you want to start -with a known baseline then git rev-parse FOO~0 it first. -NOTE2: ap-push should use refs/heads/foo explicitly so that this -initial push works + Before enabling this in cron (eg by pushing the change to BRANCHES + to production pretest branch), rewind so that osstest can fast + forward it to the actual production version. Ie in bisects and + branches for-$branch.git, + git fetch origin incoming + git reset --hard FETCH_HEAD -When pushing the patches, be sure to make sure that the -for-$branch.git repo can fast forward to the pushed version (perhaps -by resetting it). +$ Add to BRANCHES setting in cr-for-branches Force pushing a branch ======================
mg-branch-setup new file +106 -0
106 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH 3/3 linux-3.16: New branch
In reply to Ian JacksonTest this too. We fetch this from the Canonical Kernel Team (ckt) repo, but do not encode `ckt' in the branch name, in case this becomes a proper stable tree.
(I have set up this branch on the osstest with the mg-branch-setup script in this version of this tree.)
Signed-off-by Ian Jackson <[email protected]>
--- ap-common | 5 +++++ cr-for-branches | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-)
ap-common +5 -0
@@ -109,6 +109,11 @@ info_linux_tree () { : ${TAG_LINUX_THIS:=linux-arm-xen} : ${TAG_LINUX_ARM_THIS:=linux-arm-xen} ;; + linux-3.16) + # unofficial Ubuntu (Canonical) kernel team (ckt) for now + : ${TREE_LINUX_THIS:=git://kernel.ubuntu.com/ubuntu/linux.git} + : ${TAG_LINUX_THIS:=$1.y} + ;; linux-3.*) : ${TREE_LINUX_THIS:=${KERNEL_SCM}/stable/linux-stable.git} : ${TAG_LINUX_THIS:=$1.y}
cr-for-branches +1 -1
@@ -31,7 +31,7 @@ scriptoptions="$1"; shift LOGFILE=tmp/cr-for-branches.log export LOGFILE -: ${BRANCHES:=osstest xen-4.0-testing xen-4.1-testing xen-4.2-testing xen-4.3-testing xen-4.4-testing xen-4.5-testing xen-unstable qemu-mainline qemu-upstream-unstable qemu-upstream-4.2-testing qemu-upstream-4.3-testing qemu-upstream-4.4-testing qemu-upstream-4.5-testing linux-3.14 linux-3.10 linux-3.4 linux-arm-xen seabios ovmf ${EXTRA_BRANCHES}} +: ${BRANCHES:=osstest xen-4.0-testing xen-4.1-testing xen-4.2-testing xen-4.3-testing xen-4.4-testing xen-4.5-testing xen-unstable qemu-mainline qemu-upstream-unstable qemu-upstream-4.2-testing qemu-upstream-4.3-testing qemu-upstream-4.4-testing qemu-upstream-4.5-testing linux-3.16 linux-3.14 linux-3.10 linux-3.4 linux-arm-xen seabios ovmf ${EXTRA_BRANCHES}} export BRANCHES fetchwlem=$wlem
Signature · 1 line
1.7.10.4
On Mon, 2015-01-26 at 18:05 +0000, Ian Jackson wrote:
For all three patches in the series:
Acked-by Ian Campbell <[email protected]>
Quoted 20 lines
As per the docs in README.dev.
Signed-off-by Ian Jackson <[email protected]>--- ap-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)ap-common +1
-1@@ -136,7 +136,7 @@ info_linux_tree () { : ${BASE_TREE_LINUX_THIS:=$BASE_TREE_LINUX} : ${PUSH_TREE_LINUX_THIS:=$PUSH_TREE_LINUX} : ${BASE_TAG_LINUX_THIS:=tested/$1} - : ${PUSH_TAG_LINUX_THIS:=$BASE_TAG_LINUX_THIS} + : ${PUSH_TAG_LINUX_THIS:=refs/heads/$BASE_TAG_LINUX_THIS} return 0 }