Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This file has been truncated, but you can view the full file.
[24 Sep 18 07:07 UTC]: Successfully ensured /go-workspace/src/k8s.io/code-generator exists
[24 Sep 18 07:07 UTC]: /bin/bash -c "git tag | xargs git tag -d >/dev/null"
[24 Sep 18 07:07 UTC]: /publish_scripts/construct.sh code-generator master master /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/code-generator kubernetes kubernetes k8s.io false "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 400981797e38bee5c1b84f7a1f3914db7b74f196
+ '[' '!' 14 -eq 14 ']'
+ REPO=code-generator
+ SRC_BRANCH=master
+ DST_BRANCH=master
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/code-generator
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=false
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=400981797e38bee5c1b84f7a1f3914db7b74f196
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
Cleaning up checkout.
+ echo 'Cleaning up checkout.'
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q 3dcf91f64f638563e5106f21f50c31fa361c918d
+ git branch -D master
+ git remote set-head origin -d
+ git rev-parse origin/master
Switching to origin/master.
+ echo 'Switching to origin/master.'
+ git branch -f master origin/master
+ git checkout -q master
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/master
+ UPSTREAM_HASH=7ffaa2f7131238db4cfdb034e260f6ad576cd70d
+ '[' 7ffaa2f7131238db4cfdb034e260f6ad576cd70d '!=' 400981797e38bee5c1b84f7a1f3914db7b74f196 ']'
Upstream branch upstream/master moved from '400981797e38bee5c1b84f7a1f3914db7b74f196' to '7ffaa2f7131238db4cfdb034e260f6ad576cd70d'. We have to sync.
+ echo 'Upstream branch upstream/master moved from '\''400981797e38bee5c1b84f7a1f3914db7b74f196'\'' to '\''7ffaa2f7131238db4cfdb034e260f6ad576cd70d'\''. We have to sync.'
+ sync_repo kubernetes kubernetes staging/src/k8s.io/code-generator master master '' '' k8s.io false 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/code-generator
+ local src_branch=master
+ local dst_branch=master
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
aae79feb89bdded3679da91fd8c19b6dfcbdb79a
++ ls -1
++ wc -l
+ '[' 15 = 0 ']'
++ git rev-parse HEAD
Starting at existing master commit aae79feb89bdded3679da91fd8c19b6dfcbdb79a.
+ echo 'Starting at existing master commit aae79feb89bdded3679da91fd8c19b6dfcbdb79a.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/master
Branch upstream-branch set up to track remote branch master from upstream.
++ git rev-parse upstream-branch
Checked out source commit 7ffaa2f7131238db4cfdb034e260f6ad576cd70d.
+ echo 'Checked out source commit 7ffaa2f7131238db4cfdb034e260f6ad576cd70d.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit master
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B master
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
++ true
+ local k_base_commit=b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb
+ '[' -z b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb ']'
++ git-find-merge b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb upstream/master
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 'b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb^1..upstream/master' --first-parent
+++ git rev-list b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb..upstream/master --ancestry-path
+++ git rev-parse b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb
+ local k_base_merge=b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb
+ '[' -z b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb ']'
+ git branch -f filtered-branch-base b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb
Rewriting upstream branch master to only include commits for staging/src/k8s.io/code-generator.
+ echo 'Rewriting upstream branch master to only include commits for staging/src/k8s.io/code-generator.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/code-generator 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/code-generator
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
Running git filter-branch ...
+ IFS=' '
+ read -ra patterns
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/code-generator -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=0aecd14c539d69150c5c4b198ea78c7993e17a37
++ git log --first-parent --format=%H --reverse 0aecd14c539d69150c5c4b198ea78c7993e17a37..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch master.'
+ git checkout -q master
Checking out branch master.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=aae79feb89bdded3679da91fd8c19b6dfcbdb79a
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=aae79feb89bdded3679da91fd8c19b6dfcbdb79a
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' aae79feb89bdded3679da91fd8c19b6dfcbdb79a '!=' aae79feb89bdded3679da91fd8c19b6dfcbdb79a ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io false true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=aae79feb89bdded3679da91fd8c19b6dfcbdb79a
+ '[' true = true ']'
+ update_full_godeps '' k8s.io false Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=false
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
+ local depbranch=
Removing k8s.io/* dependencies from Godeps.json
++ basename /go-workspace/src/k8s.io/code-generator
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/code-generator/") or . == "k8s.io/code-generator") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb
+ '[' -z b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb ']'
++ git-find-merge b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb upstream-branch
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 'b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb^1..upstream-branch' --first-parent
+++ git rev-list b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb..upstream-branch --ancestry-path
+++ git rev-parse b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb
+ local k_last_kube_merge=b5ae4498bc7df2d9a9f8a17e8803b3524ea09ffb
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ indent-godeps
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' false = true ']'
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ git-index-clean
+ git diff --cached --exit-code
Godeps.json hasn't changed!
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ git rev-parse --abbrev-ref HEAD
+ '[' master '!=' master ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code aae79feb89bdded3679da91fd8c19b6dfcbdb79a
+ echo 'Remove redundant godep commits on-top of aae79feb89bdded3679da91fd8c19b6dfcbdb79a.'
+ git reset --soft -q aae79feb89bdded3679da91fd8c19b6dfcbdb79a
Remove redundant godep commits on-top of aae79feb89bdded3679da91fd8c19b6dfcbdb79a.
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/code-generator
+ local repo=code-generator
++ git log --oneline --first-parent --merges
++ head -n 1
+ '[' -n 'aae79fe Merge pull request #67655 from sttts/sttts-apiextensions-apiserver-codegen-script' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-master'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-master
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=master
++ git rev-parse HEAD
+ LAST_HEAD=aae79feb89bdded3679da91fd8c19b6dfcbdb79a
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-code-generator-master.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-code-generator-master.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch master --push-script ../push-tags-code-generator-master.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse master
+ '[' aae79feb89bdded3679da91fd8c19b6dfcbdb79a '!=' aae79feb89bdded3679da91fd8c19b6dfcbdb79a ']'
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[24 Sep 18 07:09 UTC]: Successfully constructed master
[24 Sep 18 07:09 UTC]: /publish_scripts/construct.sh code-generator release-1.9 release-1.9 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/code-generator kubernetes kubernetes k8s.io false "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 0da6e045912173bef7e8bba350c3ddc95a1c90e2
+ '[' '!' 14 -eq 14 ']'
+ REPO=code-generator
+ SRC_BRANCH=release-1.9
+ DST_BRANCH=release-1.9
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/code-generator
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=false
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=0da6e045912173bef7e8bba350c3ddc95a1c90e2
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
+ echo 'Running garbage collection.'
+ git gc --auto
Running garbage collection.
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
+ echo 'Cleaning up checkout.'
+ git rebase --abort
Cleaning up checkout.
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q aae79feb89bdded3679da91fd8c19b6dfcbdb79a
+ git branch -D release-1.9
+ git remote set-head origin -d
+ git rev-parse origin/release-1.9
Switching to origin/release-1.9.
+ echo 'Switching to origin/release-1.9.'
+ git branch -f release-1.9 origin/release-1.9
+ git checkout -q release-1.9
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/release-1.9
+ UPSTREAM_HASH=824ebd5e02df8d855aeb60619d0bf8e88b8c85f0
+ '[' 824ebd5e02df8d855aeb60619d0bf8e88b8c85f0 '!=' 0da6e045912173bef7e8bba350c3ddc95a1c90e2 ']'
+ echo 'Upstream branch upstream/release-1.9 moved from '\''0da6e045912173bef7e8bba350c3ddc95a1c90e2'\'' to '\''824ebd5e02df8d855aeb60619d0bf8e88b8c85f0'\''. We have to sync.'
Upstream branch upstream/release-1.9 moved from '0da6e045912173bef7e8bba350c3ddc95a1c90e2' to '824ebd5e02df8d855aeb60619d0bf8e88b8c85f0'. We have to sync.
+ sync_repo kubernetes kubernetes staging/src/k8s.io/code-generator release-1.9 release-1.9 '' '' k8s.io false 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/code-generator
+ local src_branch=release-1.9
+ local dst_branch=release-1.9
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
0ab89e584187c20cc7c1a3f30db69f3b4ab64196
++ ls -1
++ wc -l
+ '[' 11 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.9 commit 0ab89e584187c20cc7c1a3f30db69f3b4ab64196.
+ echo 'Starting at existing release-1.9 commit 0ab89e584187c20cc7c1a3f30db69f3b4ab64196.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/release-1.9
Branch upstream-branch set up to track remote branch release-1.9 from upstream.
++ git rev-parse upstream-branch
Checked out source commit 824ebd5e02df8d855aeb60619d0bf8e88b8c85f0.
+ echo 'Checked out source commit 824ebd5e02df8d855aeb60619d0bf8e88b8c85f0.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit release-1.9
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B release-1.9
++ head -n 1
++ grep '^Kubernetes-commit: '
++ sed 's/^Kubernetes-commit: //g'
++ true
+ local k_base_commit=8d48604c2eca912159636be258a5e68bfc4c6643
+ '[' -z 8d48604c2eca912159636be258a5e68bfc4c6643 ']'
++ git-find-merge 8d48604c2eca912159636be258a5e68bfc4c6643 upstream/release-1.9
++ tail -1
+++ git rev-list '8d48604c2eca912159636be258a5e68bfc4c6643^1..upstream/release-1.9' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 8d48604c2eca912159636be258a5e68bfc4c6643..upstream/release-1.9 --ancestry-path
+++ git rev-parse 8d48604c2eca912159636be258a5e68bfc4c6643
+ local k_base_merge=8d48604c2eca912159636be258a5e68bfc4c6643
+ '[' -z 8d48604c2eca912159636be258a5e68bfc4c6643 ']'
+ git branch -f filtered-branch-base 8d48604c2eca912159636be258a5e68bfc4c6643
Rewriting upstream branch release-1.9 to only include commits for staging/src/k8s.io/code-generator.
+ echo 'Rewriting upstream branch release-1.9 to only include commits for staging/src/k8s.io/code-generator.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/code-generator 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/code-generator
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
Running git filter-branch ...
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/code-generator -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=a964b60f06fcd4028c89f0921c34127ea4441ec7
++ git log --first-parent --format=%H --reverse a964b60f06fcd4028c89f0921c34127ea4441ec7..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch release-1.9.'
+ git checkout -q release-1.9
Checking out branch release-1.9.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=0ab89e584187c20cc7c1a3f30db69f3b4ab64196
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=0ab89e584187c20cc7c1a3f30db69f3b4ab64196
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' 0ab89e584187c20cc7c1a3f30db69f3b4ab64196 '!=' 0ab89e584187c20cc7c1a3f30db69f3b4ab64196 ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io false true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=0ab89e584187c20cc7c1a3f30db69f3b4ab64196
+ '[' true = true ']'
+ update_full_godeps '' k8s.io false Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=false
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
Removing k8s.io/* dependencies from Godeps.json
+ local dep=
+ local branch=
+ local depbranch=
++ basename /go-workspace/src/k8s.io/code-generator
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/code-generator/") or . == "k8s.io/code-generator") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=8d48604c2eca912159636be258a5e68bfc4c6643
+ '[' -z 8d48604c2eca912159636be258a5e68bfc4c6643 ']'
++ git-find-merge 8d48604c2eca912159636be258a5e68bfc4c6643 upstream-branch
++ tail -1
+++ git rev-list '8d48604c2eca912159636be258a5e68bfc4c6643^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 8d48604c2eca912159636be258a5e68bfc4c6643..upstream-branch --ancestry-path
+++ git rev-parse 8d48604c2eca912159636be258a5e68bfc4c6643
+ local k_last_kube_merge=8d48604c2eca912159636be258a5e68bfc4c6643
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' false = true ']'
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ git-index-clean
+ git diff --cached --exit-code
Godeps.json hasn't changed!
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.9 '!=' master ']'
+ '[' -d vendor/ ']'
+ '[' false = true ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code 0ab89e584187c20cc7c1a3f30db69f3b4ab64196
+ echo 'Remove redundant godep commits on-top of 0ab89e584187c20cc7c1a3f30db69f3b4ab64196.'
+ git reset --soft -q 0ab89e584187c20cc7c1a3f30db69f3b4ab64196
Remove redundant godep commits on-top of 0ab89e584187c20cc7c1a3f30db69f3b4ab64196.
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/code-generator
+ local repo=code-generator
++ head -n 1
++ git log --oneline --first-parent --merges
+ '[' -n '0ab89e5 Merge pull request #63626 from roycaihw/release-1.9' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-release-1.9'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-release-1.9
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.9
++ git rev-parse HEAD
+ LAST_HEAD=0ab89e584187c20cc7c1a3f30db69f3b4ab64196
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-code-generator-release-1.9.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-code-generator-release-1.9.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch release-1.9 --push-script ../push-tags-code-generator-release-1.9.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse release-1.9
+ '[' 0ab89e584187c20cc7c1a3f30db69f3b4ab64196 '!=' 0ab89e584187c20cc7c1a3f30db69f3b4ab64196 ']'
+ git checkout release-1.9
Already on 'release-1.9'
Your branch is up-to-date with 'origin/release-1.9'.
[24 Sep 18 07:10 UTC]: Successfully constructed release-1.9
[24 Sep 18 07:10 UTC]: /publish_scripts/construct.sh code-generator release-1.10 release-1.10 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/code-generator kubernetes kubernetes k8s.io false "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 557579c4c9d396c9e4aa1e46b64b9ad74a99a896
+ '[' '!' 14 -eq 14 ']'
+ REPO=code-generator
+ SRC_BRANCH=release-1.10
+ DST_BRANCH=release-1.10
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/code-generator
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=false
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=557579c4c9d396c9e4aa1e46b64b9ad74a99a896
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
Cleaning up checkout.
+ echo 'Cleaning up checkout.'
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q 0ab89e584187c20cc7c1a3f30db69f3b4ab64196
+ git branch -D release-1.10
+ git remote set-head origin -d
+ git rev-parse origin/release-1.10
Switching to origin/release-1.10.
+ echo 'Switching to origin/release-1.10.'
+ git branch -f release-1.10 origin/release-1.10
+ git checkout -q release-1.10
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/release-1.10
+ UPSTREAM_HASH=6b64246e2588d1594664e1e83c72735acd279d26
+ '[' 6b64246e2588d1594664e1e83c72735acd279d26 '!=' 557579c4c9d396c9e4aa1e46b64b9ad74a99a896 ']'
Upstream branch upstream/release-1.10 moved from '557579c4c9d396c9e4aa1e46b64b9ad74a99a896' to '6b64246e2588d1594664e1e83c72735acd279d26'. We have to sync.
+ echo 'Upstream branch upstream/release-1.10 moved from '\''557579c4c9d396c9e4aa1e46b64b9ad74a99a896'\'' to '\''6b64246e2588d1594664e1e83c72735acd279d26'\''. We have to sync.'
+ sync_repo kubernetes kubernetes staging/src/k8s.io/code-generator release-1.10 release-1.10 '' '' k8s.io false 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/code-generator
+ local src_branch=release-1.10
+ local dst_branch=release-1.10
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
9de8e796a74d16d2a285165727d04c185ebca6dc
++ ls -1
++ wc -l
+ '[' 14 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.10 commit 9de8e796a74d16d2a285165727d04c185ebca6dc.
+ echo 'Starting at existing release-1.10 commit 9de8e796a74d16d2a285165727d04c185ebca6dc.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/release-1.10
Branch upstream-branch set up to track remote branch release-1.10 from upstream.
++ git rev-parse upstream-branch
Checked out source commit 6b64246e2588d1594664e1e83c72735acd279d26.
+ echo 'Checked out source commit 6b64246e2588d1594664e1e83c72735acd279d26.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit release-1.10
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B release-1.10
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
++ true
+ local k_base_commit=8959a0aa87adf07c4ff821bf6d79714b3d615e8a
+ '[' -z 8959a0aa87adf07c4ff821bf6d79714b3d615e8a ']'
++ git-find-merge 8959a0aa87adf07c4ff821bf6d79714b3d615e8a upstream/release-1.10
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list '8959a0aa87adf07c4ff821bf6d79714b3d615e8a^1..upstream/release-1.10' --first-parent
+++ git rev-list 8959a0aa87adf07c4ff821bf6d79714b3d615e8a..upstream/release-1.10 --ancestry-path
+++ git rev-parse 8959a0aa87adf07c4ff821bf6d79714b3d615e8a
+ local k_base_merge=8959a0aa87adf07c4ff821bf6d79714b3d615e8a
+ '[' -z 8959a0aa87adf07c4ff821bf6d79714b3d615e8a ']'
+ git branch -f filtered-branch-base 8959a0aa87adf07c4ff821bf6d79714b3d615e8a
Rewriting upstream branch release-1.10 to only include commits for staging/src/k8s.io/code-generator.
+ echo 'Rewriting upstream branch release-1.10 to only include commits for staging/src/k8s.io/code-generator.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/code-generator 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/code-generator
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
Running git filter-branch ...
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/code-generator -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=fe40e032bcfe504e871c80cf0ca8de994ab45668
++ git log --first-parent --format=%H --reverse fe40e032bcfe504e871c80cf0ca8de994ab45668..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch release-1.10.'
+ git checkout -q release-1.10
Checking out branch release-1.10.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=9de8e796a74d16d2a285165727d04c185ebca6dc
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=9de8e796a74d16d2a285165727d04c185ebca6dc
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' 9de8e796a74d16d2a285165727d04c185ebca6dc '!=' 9de8e796a74d16d2a285165727d04c185ebca6dc ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io false true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=9de8e796a74d16d2a285165727d04c185ebca6dc
+ '[' true = true ']'
+ update_full_godeps '' k8s.io false Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=false
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
+ local depbranch=
Removing k8s.io/* dependencies from Godeps.json
++ basename /go-workspace/src/k8s.io/code-generator
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/code-generator/") or . == "k8s.io/code-generator") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=8959a0aa87adf07c4ff821bf6d79714b3d615e8a
+ '[' -z 8959a0aa87adf07c4ff821bf6d79714b3d615e8a ']'
++ git-find-merge 8959a0aa87adf07c4ff821bf6d79714b3d615e8a upstream-branch
++ tail -1
+++ git rev-list '8959a0aa87adf07c4ff821bf6d79714b3d615e8a^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 8959a0aa87adf07c4ff821bf6d79714b3d615e8a..upstream-branch --ancestry-path
+++ git rev-parse 8959a0aa87adf07c4ff821bf6d79714b3d615e8a
+ local k_last_kube_merge=8959a0aa87adf07c4ff821bf6d79714b3d615e8a
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' false = true ']'
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
Godeps.json hasn't changed!
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.10 '!=' master ']'
+ '[' -d vendor/ ']'
+ '[' false = true ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code 9de8e796a74d16d2a285165727d04c185ebca6dc
Remove redundant godep commits on-top of 9de8e796a74d16d2a285165727d04c185ebca6dc.
+ echo 'Remove redundant godep commits on-top of 9de8e796a74d16d2a285165727d04c185ebca6dc.'
+ git reset --soft -q 9de8e796a74d16d2a285165727d04c185ebca6dc
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/code-generator
+ local repo=code-generator
++ git log --oneline --first-parent --merges
++ head -n 1
+ '[' -n '9de8e79 Merge pull request #63448 from dims/automated-cherry-pick-of-#62505-upstream-release-1.10' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-release-1.10'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-release-1.10
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.10
++ git rev-parse HEAD
+ LAST_HEAD=9de8e796a74d16d2a285165727d04c185ebca6dc
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-code-generator-release-1.10.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-code-generator-release-1.10.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch release-1.10 --push-script ../push-tags-code-generator-release-1.10.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse release-1.10
+ '[' 9de8e796a74d16d2a285165727d04c185ebca6dc '!=' 9de8e796a74d16d2a285165727d04c185ebca6dc ']'
+ git checkout release-1.10
Already on 'release-1.10'
Your branch is up-to-date with 'origin/release-1.10'.
[24 Sep 18 07:11 UTC]: Successfully constructed release-1.10
[24 Sep 18 07:11 UTC]: /publish_scripts/construct.sh code-generator release-1.11 release-1.11 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/code-generator kubernetes kubernetes k8s.io false "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" f818aa3443bc9820a54afb479a553e5cc3c4dc3a
+ '[' '!' 14 -eq 14 ']'
+ REPO=code-generator
+ SRC_BRANCH=release-1.11
+ DST_BRANCH=release-1.11
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/code-generator
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=false
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=f818aa3443bc9820a54afb479a553e5cc3c4dc3a
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
Cleaning up checkout.
+ echo 'Cleaning up checkout.'
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q 9de8e796a74d16d2a285165727d04c185ebca6dc
+ git branch -D release-1.11
+ git remote set-head origin -d
+ git rev-parse origin/release-1.11
Switching to origin/release-1.11.
+ echo 'Switching to origin/release-1.11.'
+ git branch -f release-1.11 origin/release-1.11
+ git checkout -q release-1.11
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/release-1.11
+ UPSTREAM_HASH=bdfaef1882ff1e7693367b41eb43f92fb150cd66
+ '[' bdfaef1882ff1e7693367b41eb43f92fb150cd66 '!=' f818aa3443bc9820a54afb479a553e5cc3c4dc3a ']'
+ echo 'Upstream branch upstream/release-1.11 moved from '\''f818aa3443bc9820a54afb479a553e5cc3c4dc3a'\'' to '\''bdfaef1882ff1e7693367b41eb43f92fb150cd66'\''. We have to sync.'
Upstream branch upstream/release-1.11 moved from 'f818aa3443bc9820a54afb479a553e5cc3c4dc3a' to 'bdfaef1882ff1e7693367b41eb43f92fb150cd66'. We have to sync.
+ sync_repo kubernetes kubernetes staging/src/k8s.io/code-generator release-1.11 release-1.11 '' '' k8s.io false 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/code-generator
+ local src_branch=release-1.11
+ local dst_branch=release-1.11
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
8c97d6ab64da020f8b151e9d3ed8af3172f5c390
++ ls -1
++ wc -l
+ '[' 15 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.11 commit 8c97d6ab64da020f8b151e9d3ed8af3172f5c390.
+ echo 'Starting at existing release-1.11 commit 8c97d6ab64da020f8b151e9d3ed8af3172f5c390.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/release-1.11
Branch upstream-branch set up to track remote branch release-1.11 from upstream.
++ git rev-parse upstream-branch
+ echo 'Checked out source commit bdfaef1882ff1e7693367b41eb43f92fb150cd66.'
+ git checkout -q upstream-branch -b filtered-branch
Checked out source commit bdfaef1882ff1e7693367b41eb43f92fb150cd66.
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit release-1.11
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B release-1.11
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
++ true
+ local k_base_commit=f58f1bd657b67f725ced7c7520d531a421860e5a
+ '[' -z f58f1bd657b67f725ced7c7520d531a421860e5a ']'
++ git-find-merge f58f1bd657b67f725ced7c7520d531a421860e5a upstream/release-1.11
++ tail -1
+++ git rev-list 'f58f1bd657b67f725ced7c7520d531a421860e5a^1..upstream/release-1.11' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list f58f1bd657b67f725ced7c7520d531a421860e5a..upstream/release-1.11 --ancestry-path
+++ git rev-parse f58f1bd657b67f725ced7c7520d531a421860e5a
+ local k_base_merge=f58f1bd657b67f725ced7c7520d531a421860e5a
+ '[' -z f58f1bd657b67f725ced7c7520d531a421860e5a ']'
+ git branch -f filtered-branch-base f58f1bd657b67f725ced7c7520d531a421860e5a
Rewriting upstream branch release-1.11 to only include commits for staging/src/k8s.io/code-generator.
Running git filter-branch ...
+ echo 'Rewriting upstream branch release-1.11 to only include commits for staging/src/k8s.io/code-generator.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/code-generator 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/code-generator
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/code-generator -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=f90d6bb553c4b2e7b5d3d7f13aa132e5e49249d0
++ git log --first-parent --format=%H --reverse f90d6bb553c4b2e7b5d3d7f13aa132e5e49249d0..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch release-1.11.'
+ git checkout -q release-1.11
Checking out branch release-1.11.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=8c97d6ab64da020f8b151e9d3ed8af3172f5c390
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=8c97d6ab64da020f8b151e9d3ed8af3172f5c390
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' 8c97d6ab64da020f8b151e9d3ed8af3172f5c390 '!=' 8c97d6ab64da020f8b151e9d3ed8af3172f5c390 ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io false true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=8c97d6ab64da020f8b151e9d3ed8af3172f5c390
+ '[' true = true ']'
+ update_full_godeps '' k8s.io false Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=false
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
Removing k8s.io/* dependencies from Godeps.json
+ local depbranch=
++ basename /go-workspace/src/k8s.io/code-generator
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/code-generator/") or . == "k8s.io/code-generator") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=f58f1bd657b67f725ced7c7520d531a421860e5a
+ '[' -z f58f1bd657b67f725ced7c7520d531a421860e5a ']'
++ git-find-merge f58f1bd657b67f725ced7c7520d531a421860e5a upstream-branch
++ tail -1
+++ git rev-list 'f58f1bd657b67f725ced7c7520d531a421860e5a^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list f58f1bd657b67f725ced7c7520d531a421860e5a..upstream-branch --ancestry-path
+++ git rev-parse f58f1bd657b67f725ced7c7520d531a421860e5a
+ local k_last_kube_merge=f58f1bd657b67f725ced7c7520d531a421860e5a
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' false = true ']'
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
Godeps.json hasn't changed!
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.11 '!=' master ']'
+ '[' -d vendor/ ']'
+ '[' false = true ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code 8c97d6ab64da020f8b151e9d3ed8af3172f5c390
Remove redundant godep commits on-top of 8c97d6ab64da020f8b151e9d3ed8af3172f5c390.
+ echo 'Remove redundant godep commits on-top of 8c97d6ab64da020f8b151e9d3ed8af3172f5c390.'
+ git reset --soft -q 8c97d6ab64da020f8b151e9d3ed8af3172f5c390
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/code-generator
+ local repo=code-generator
++ git log --oneline --first-parent --merges
++ head -n 1
+ '[' -n '8c97d6a Merge pull request #67754 from sttts/automated-cherry-pick-of-#67169-upstream-release-1.11' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-release-1.11'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-release-1.11
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.11
++ git rev-parse HEAD
+ LAST_HEAD=8c97d6ab64da020f8b151e9d3ed8af3172f5c390
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-code-generator-release-1.11.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-code-generator-release-1.11.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch release-1.11 --push-script ../push-tags-code-generator-release-1.11.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse release-1.11
+ '[' 8c97d6ab64da020f8b151e9d3ed8af3172f5c390 '!=' 8c97d6ab64da020f8b151e9d3ed8af3172f5c390 ']'
+ git checkout release-1.11
Already on 'release-1.11'
Your branch is up-to-date with 'origin/release-1.11'.
[24 Sep 18 07:12 UTC]: Successfully constructed release-1.11
[24 Sep 18 07:12 UTC]: /publish_scripts/construct.sh code-generator release-1.12 release-1.12 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/code-generator kubernetes kubernetes k8s.io false "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" b6f238a90600ebdba1804b7830c9322926b11ed5
+ '[' '!' 14 -eq 14 ']'
+ REPO=code-generator
+ SRC_BRANCH=release-1.12
+ DST_BRANCH=release-1.12
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/code-generator
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=false
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=b6f238a90600ebdba1804b7830c9322926b11ed5
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
Cleaning up checkout.
+ echo 'Cleaning up checkout.'
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q 8c97d6ab64da020f8b151e9d3ed8af3172f5c390
+ git branch -D release-1.12
+ git remote set-head origin -d
+ git rev-parse origin/release-1.12
Switching to origin/release-1.12.
+ echo 'Switching to origin/release-1.12.'
+ git branch -f release-1.12 origin/release-1.12
+ git checkout -q release-1.12
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/release-1.12
+ UPSTREAM_HASH=aa8089fd81e2b5ee46ec02d486f8fe855e38320b
+ '[' aa8089fd81e2b5ee46ec02d486f8fe855e38320b '!=' b6f238a90600ebdba1804b7830c9322926b11ed5 ']'
Upstream branch upstream/release-1.12 moved from 'b6f238a90600ebdba1804b7830c9322926b11ed5' to 'aa8089fd81e2b5ee46ec02d486f8fe855e38320b'. We have to sync.
+ echo 'Upstream branch upstream/release-1.12 moved from '\''b6f238a90600ebdba1804b7830c9322926b11ed5'\'' to '\''aa8089fd81e2b5ee46ec02d486f8fe855e38320b'\''. We have to sync.'
+ sync_repo kubernetes kubernetes staging/src/k8s.io/code-generator release-1.12 release-1.12 '' '' k8s.io false 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/code-generator
+ local src_branch=release-1.12
+ local dst_branch=release-1.12
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
3dcf91f64f638563e5106f21f50c31fa361c918d
++ ls -1
++ wc -l
+ '[' 15 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.12 commit 3dcf91f64f638563e5106f21f50c31fa361c918d.
+ echo 'Starting at existing release-1.12 commit 3dcf91f64f638563e5106f21f50c31fa361c918d.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/release-1.12
Branch upstream-branch set up to track remote branch release-1.12 from upstream.
++ git rev-parse upstream-branch
Checked out source commit aa8089fd81e2b5ee46ec02d486f8fe855e38320b.
+ echo 'Checked out source commit aa8089fd81e2b5ee46ec02d486f8fe855e38320b.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit release-1.12
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B release-1.12
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
++ true
+ local k_base_commit=5f6008cadc6e03bf1c84cae2ef4c239d2a111006
+ '[' -z 5f6008cadc6e03bf1c84cae2ef4c239d2a111006 ']'
++ git-find-merge 5f6008cadc6e03bf1c84cae2ef4c239d2a111006 upstream/release-1.12
++ tail -1
+++ git rev-list '5f6008cadc6e03bf1c84cae2ef4c239d2a111006^1..upstream/release-1.12' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 5f6008cadc6e03bf1c84cae2ef4c239d2a111006..upstream/release-1.12 --ancestry-path
+++ git rev-parse 5f6008cadc6e03bf1c84cae2ef4c239d2a111006
+ local k_base_merge=5f6008cadc6e03bf1c84cae2ef4c239d2a111006
+ '[' -z 5f6008cadc6e03bf1c84cae2ef4c239d2a111006 ']'
+ git branch -f filtered-branch-base 5f6008cadc6e03bf1c84cae2ef4c239d2a111006
+ echo 'Rewriting upstream branch release-1.12 to only include commits for staging/src/k8s.io/code-generator.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/code-generator 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/code-generator
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
Rewriting upstream branch release-1.12 to only include commits for staging/src/k8s.io/code-generator.
Running git filter-branch ...
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/code-generator -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=0aecd14c539d69150c5c4b198ea78c7993e17a37
++ git log --first-parent --format=%H --reverse 0aecd14c539d69150c5c4b198ea78c7993e17a37..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch release-1.12.'
+ git checkout -q release-1.12
Checking out branch release-1.12.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=3dcf91f64f638563e5106f21f50c31fa361c918d
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=3dcf91f64f638563e5106f21f50c31fa361c918d
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' 3dcf91f64f638563e5106f21f50c31fa361c918d '!=' 3dcf91f64f638563e5106f21f50c31fa361c918d ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io false true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=false
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=3dcf91f64f638563e5106f21f50c31fa361c918d
+ '[' true = true ']'
+ update_full_godeps '' k8s.io false Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=false
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
Removing k8s.io/* dependencies from Godeps.json
+ local depbranch=
++ basename /go-workspace/src/k8s.io/code-generator
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/code-generator/") or . == "k8s.io/code-generator") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=5f6008cadc6e03bf1c84cae2ef4c239d2a111006
+ '[' -z 5f6008cadc6e03bf1c84cae2ef4c239d2a111006 ']'
++ git-find-merge 5f6008cadc6e03bf1c84cae2ef4c239d2a111006 upstream-branch
++ tail -1
+++ git rev-list '5f6008cadc6e03bf1c84cae2ef4c239d2a111006^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 5f6008cadc6e03bf1c84cae2ef4c239d2a111006..upstream-branch --ancestry-path
+++ git rev-parse 5f6008cadc6e03bf1c84cae2ef4c239d2a111006
+ local k_last_kube_merge=5f6008cadc6e03bf1c84cae2ef4c239d2a111006
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' false = true ']'
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
Godeps.json hasn't changed!
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.12 '!=' master ']'
+ '[' -d vendor/ ']'
+ '[' false = true ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code 3dcf91f64f638563e5106f21f50c31fa361c918d
Remove redundant godep commits on-top of 3dcf91f64f638563e5106f21f50c31fa361c918d.
+ echo 'Remove redundant godep commits on-top of 3dcf91f64f638563e5106f21f50c31fa361c918d.'
+ git reset --soft -q 3dcf91f64f638563e5106f21f50c31fa361c918d
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/code-generator
+ local repo=code-generator
++ git log --oneline --first-parent --merges
++ head -n 1
+ '[' -n 'bfb675c Merge pull request #67655 from sttts/sttts-apiextensions-apiserver-codegen-script' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-release-1.12'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-release-1.12
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.12
++ git rev-parse HEAD
+ LAST_HEAD=3dcf91f64f638563e5106f21f50c31fa361c918d
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-code-generator-release-1.12.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-code-generator-release-1.12.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch release-1.12 --push-script ../push-tags-code-generator-release-1.12.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
Computing mapping from kube commits to the local branch because "kubernetes-1.12.0-rc.2" seems to be relevant.
Tagging bfb675c80be2ffc2672b7aee5e8cee835cacc34f as "kubernetes-1.12.0-rc.2".
++ git rev-parse release-1.12
+ '[' 3dcf91f64f638563e5106f21f50c31fa361c918d '!=' 3dcf91f64f638563e5106f21f50c31fa361c918d ']'
+ git checkout release-1.12
Already on 'release-1.12'
Your branch is up-to-date with 'origin/release-1.12'.
[24 Sep 18 07:13 UTC]: Successfully constructed release-1.12
[24 Sep 18 07:13 UTC]: Successfully ensured /go-workspace/src/k8s.io/apimachinery exists
[24 Sep 18 07:13 UTC]: /bin/bash -c "git tag | xargs git tag -d >/dev/null"
[24 Sep 18 07:13 UTC]: /publish_scripts/construct.sh apimachinery master master /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/apimachinery kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 400981797e38bee5c1b84f7a1f3914db7b74f196
+ '[' '!' 14 -eq 14 ']'
+ REPO=apimachinery
+ SRC_BRANCH=master
+ DST_BRANCH=master
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/apimachinery
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=true
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=400981797e38bee5c1b84f7a1f3914db7b74f196
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
Cleaning up checkout.
+ echo 'Cleaning up checkout.'
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q 6dd46049f39503a1fc8d65de4bd566829e95faff
+ git branch -D master
+ git remote set-head origin -d
+ git rev-parse origin/master
Switching to origin/master.
+ echo 'Switching to origin/master.'
+ git branch -f master origin/master
+ git checkout -q master
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/master
+ UPSTREAM_HASH=7ffaa2f7131238db4cfdb034e260f6ad576cd70d
Upstream branch upstream/master moved from '400981797e38bee5c1b84f7a1f3914db7b74f196' to '7ffaa2f7131238db4cfdb034e260f6ad576cd70d'. We have to sync.
+ '[' 7ffaa2f7131238db4cfdb034e260f6ad576cd70d '!=' 400981797e38bee5c1b84f7a1f3914db7b74f196 ']'
+ echo 'Upstream branch upstream/master moved from '\''400981797e38bee5c1b84f7a1f3914db7b74f196'\'' to '\''7ffaa2f7131238db4cfdb034e260f6ad576cd70d'\''. We have to sync.'
+ sync_repo kubernetes kubernetes staging/src/k8s.io/apimachinery master master '' '' k8s.io true 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local src_branch=master
+ local dst_branch=master
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
99c5fa21f87204c2875a7f7ba977895d79b35c44
++ ls -1
++ wc -l
+ '[' 10 = 0 ']'
++ git rev-parse HEAD
Starting at existing master commit 99c5fa21f87204c2875a7f7ba977895d79b35c44.
+ echo 'Starting at existing master commit 99c5fa21f87204c2875a7f7ba977895d79b35c44.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/master
Branch upstream-branch set up to track remote branch master from upstream.
++ git rev-parse upstream-branch
Checked out source commit 7ffaa2f7131238db4cfdb034e260f6ad576cd70d.
+ echo 'Checked out source commit 7ffaa2f7131238db4cfdb034e260f6ad576cd70d.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit master
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B master
++ grep '^Kubernetes-commit: '
++ sed 's/^Kubernetes-commit: //g'
++ head -n 1
++ true
+ local k_base_commit=9cf822183f9522028fbb23561b8d51496b8a98fe
+ '[' -z 9cf822183f9522028fbb23561b8d51496b8a98fe ']'
++ git-find-merge 9cf822183f9522028fbb23561b8d51496b8a98fe upstream/master
++ tail -1
+++ git rev-list '9cf822183f9522028fbb23561b8d51496b8a98fe^1..upstream/master' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 9cf822183f9522028fbb23561b8d51496b8a98fe..upstream/master --ancestry-path
+++ git rev-parse 9cf822183f9522028fbb23561b8d51496b8a98fe
+ local k_base_merge=9cf822183f9522028fbb23561b8d51496b8a98fe
+ '[' -z 9cf822183f9522028fbb23561b8d51496b8a98fe ']'
+ git branch -f filtered-branch-base 9cf822183f9522028fbb23561b8d51496b8a98fe
Rewriting upstream branch master to only include commits for staging/src/k8s.io/apimachinery.
+ echo 'Rewriting upstream branch master to only include commits for staging/src/k8s.io/apimachinery.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/apimachinery 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
Running git filter-branch ...
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/apimachinery -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=08284ccdae107c19c0d2cf2d4fa80c6c21b1d137
++ git log --first-parent --format=%H --reverse 08284ccdae107c19c0d2cf2d4fa80c6c21b1d137..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch master.'
+ git checkout -q master
Checking out branch master.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=99c5fa21f87204c2875a7f7ba977895d79b35c44
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=99c5fa21f87204c2875a7f7ba977895d79b35c44
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' 99c5fa21f87204c2875a7f7ba977895d79b35c44 '!=' 99c5fa21f87204c2875a7f7ba977895d79b35c44 ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io true true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=99c5fa21f87204c2875a7f7ba977895d79b35c44
+ '[' true = true ']'
+ update_full_godeps '' k8s.io true Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=true
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
Removing k8s.io/* dependencies from Godeps.json
+ local depbranch=
++ basename /go-workspace/src/k8s.io/apimachinery
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/apimachinery/") or . == "k8s.io/apimachinery") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=9cf822183f9522028fbb23561b8d51496b8a98fe
+ '[' -z 9cf822183f9522028fbb23561b8d51496b8a98fe ']'
++ git-find-merge 9cf822183f9522028fbb23561b8d51496b8a98fe upstream-branch
++ tail -1
+++ git rev-list '9cf822183f9522028fbb23561b8d51496b8a98fe^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 9cf822183f9522028fbb23561b8d51496b8a98fe..upstream-branch --ancestry-path
+++ git rev-parse 9cf822183f9522028fbb23561b8d51496b8a98fe
+ local k_last_kube_merge=9cf822183f9522028fbb23561b8d51496b8a98fe
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' true = true ']'
++ git rev-parse --abbrev-ref HEAD
+ '[' master '!=' master ']'
+ echo 'Removing k8s.io/*, gofuzz, go-openapi and glog from vendor/ because this is a library.'
+ rm -rf ./vendor/github.com/golang/glog
Removing k8s.io/*, gofuzz, go-openapi and glog from vendor/ because this is a library.
+ rm -rf ./vendor/k8s.io
+ rm -rf ./vendor/github.com/google/gofuzz
+ rm -rf ./vendor/github.com/go-openapi
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
Godeps.json hasn't changed!
+ git diff HEAD --exit-code
++ git rev-parse --abbrev-ref HEAD
+ '[' master '!=' master ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code 99c5fa21f87204c2875a7f7ba977895d79b35c44
Remove redundant godep commits on-top of 99c5fa21f87204c2875a7f7ba977895d79b35c44.
+ echo 'Remove redundant godep commits on-top of 99c5fa21f87204c2875a7f7ba977895d79b35c44.'
+ git reset --soft -q 99c5fa21f87204c2875a7f7ba977895d79b35c44
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/apimachinery
+ local repo=apimachinery
++ git log --oneline --first-parent --merges
++ head -n 1
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-master
+ '[' -n '99c5fa2 Merge pull request #68442 from CaoShuFeng/json-patch' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-master'
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=master
++ git rev-parse HEAD
+ LAST_HEAD=99c5fa21f87204c2875a7f7ba977895d79b35c44
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-apimachinery-master.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-apimachinery-master.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch master --push-script ../push-tags-apimachinery-master.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse master
+ '[' 99c5fa21f87204c2875a7f7ba977895d79b35c44 '!=' 99c5fa21f87204c2875a7f7ba977895d79b35c44 ']'
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[24 Sep 18 07:15 UTC]: Successfully constructed master
[24 Sep 18 07:15 UTC]: /publish_scripts/construct.sh apimachinery release-1.9 release-1.9 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/apimachinery kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 0da6e045912173bef7e8bba350c3ddc95a1c90e2
+ '[' '!' 14 -eq 14 ']'
+ REPO=apimachinery
+ SRC_BRANCH=release-1.9
+ DST_BRANCH=release-1.9
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/apimachinery
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=true
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=0da6e045912173bef7e8bba350c3ddc95a1c90e2
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
Cleaning up checkout.
+ echo 'Cleaning up checkout.'
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q 99c5fa21f87204c2875a7f7ba977895d79b35c44
+ git branch -D release-1.9
+ git remote set-head origin -d
+ git rev-parse origin/release-1.9
Switching to origin/release-1.9.
+ echo 'Switching to origin/release-1.9.'
+ git branch -f release-1.9 origin/release-1.9
+ git checkout -q release-1.9
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/release-1.9
+ UPSTREAM_HASH=824ebd5e02df8d855aeb60619d0bf8e88b8c85f0
+ '[' 824ebd5e02df8d855aeb60619d0bf8e88b8c85f0 '!=' 0da6e045912173bef7e8bba350c3ddc95a1c90e2 ']'
+ echo 'Upstream branch upstream/release-1.9 moved from '\''0da6e045912173bef7e8bba350c3ddc95a1c90e2'\'' to '\''824ebd5e02df8d855aeb60619d0bf8e88b8c85f0'\''. We have to sync.'
Upstream branch upstream/release-1.9 moved from '0da6e045912173bef7e8bba350c3ddc95a1c90e2' to '824ebd5e02df8d855aeb60619d0bf8e88b8c85f0'. We have to sync.
+ sync_repo kubernetes kubernetes staging/src/k8s.io/apimachinery release-1.9 release-1.9 '' '' k8s.io true 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local src_branch=release-1.9
+ local dst_branch=release-1.9
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
fb40df2b502912cbe3a93aa61c2b2487f39cb42f
++ ls -1
++ wc -l
+ '[' 7 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.9 commit fb40df2b502912cbe3a93aa61c2b2487f39cb42f.
+ echo 'Starting at existing release-1.9 commit fb40df2b502912cbe3a93aa61c2b2487f39cb42f.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/release-1.9
Branch upstream-branch set up to track remote branch release-1.9 from upstream.
++ git rev-parse upstream-branch
Checked out source commit 824ebd5e02df8d855aeb60619d0bf8e88b8c85f0.
+ echo 'Checked out source commit 824ebd5e02df8d855aeb60619d0bf8e88b8c85f0.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit release-1.9
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B release-1.9
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
++ true
+ local k_base_commit=f4cf484c2cb6056e28fb9759a3c913be3eed990a
+ '[' -z f4cf484c2cb6056e28fb9759a3c913be3eed990a ']'
++ git-find-merge f4cf484c2cb6056e28fb9759a3c913be3eed990a upstream/release-1.9
++ tail -1
+++ git rev-list 'f4cf484c2cb6056e28fb9759a3c913be3eed990a^1..upstream/release-1.9' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list f4cf484c2cb6056e28fb9759a3c913be3eed990a..upstream/release-1.9 --ancestry-path
+++ git rev-parse f4cf484c2cb6056e28fb9759a3c913be3eed990a
+ local k_base_merge=f4cf484c2cb6056e28fb9759a3c913be3eed990a
+ '[' -z f4cf484c2cb6056e28fb9759a3c913be3eed990a ']'
+ git branch -f filtered-branch-base f4cf484c2cb6056e28fb9759a3c913be3eed990a
Rewriting upstream branch release-1.9 to only include commits for staging/src/k8s.io/apimachinery.
+ echo 'Rewriting upstream branch release-1.9 to only include commits for staging/src/k8s.io/apimachinery.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/apimachinery 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
Running git filter-branch ...
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/apimachinery -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=52db9fd292435c7e717dda8014164a0730819225
++ git log --first-parent --format=%H --reverse 52db9fd292435c7e717dda8014164a0730819225..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch release-1.9.'
+ git checkout -q release-1.9
Checking out branch release-1.9.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=fb40df2b502912cbe3a93aa61c2b2487f39cb42f
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=fb40df2b502912cbe3a93aa61c2b2487f39cb42f
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' fb40df2b502912cbe3a93aa61c2b2487f39cb42f '!=' fb40df2b502912cbe3a93aa61c2b2487f39cb42f ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io true true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=fb40df2b502912cbe3a93aa61c2b2487f39cb42f
+ '[' true = true ']'
+ update_full_godeps '' k8s.io true Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=true
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
+ local depbranch=
Removing k8s.io/* dependencies from Godeps.json
++ basename /go-workspace/src/k8s.io/apimachinery
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/apimachinery/") or . == "k8s.io/apimachinery") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=f4cf484c2cb6056e28fb9759a3c913be3eed990a
+ '[' -z f4cf484c2cb6056e28fb9759a3c913be3eed990a ']'
++ git-find-merge f4cf484c2cb6056e28fb9759a3c913be3eed990a upstream-branch
++ tail -1
+++ git rev-list 'f4cf484c2cb6056e28fb9759a3c913be3eed990a^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list f4cf484c2cb6056e28fb9759a3c913be3eed990a..upstream-branch --ancestry-path
+++ git rev-parse f4cf484c2cb6056e28fb9759a3c913be3eed990a
+ local k_last_kube_merge=f4cf484c2cb6056e28fb9759a3c913be3eed990a
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' true = true ']'
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.9 '!=' master ']'
+ echo 'Removing complete vendor/ on non-master branch because this is a library.'
+ rm -rf vendor/
Removing complete vendor/ on non-master branch because this is a library.
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ true
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
Godeps.json hasn't changed!
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.9 '!=' master ']'
+ '[' -d vendor/ ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code fb40df2b502912cbe3a93aa61c2b2487f39cb42f
Remove redundant godep commits on-top of fb40df2b502912cbe3a93aa61c2b2487f39cb42f.
+ echo 'Remove redundant godep commits on-top of fb40df2b502912cbe3a93aa61c2b2487f39cb42f.'
+ git reset --soft -q fb40df2b502912cbe3a93aa61c2b2487f39cb42f
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/apimachinery
+ local repo=apimachinery
++ git log --oneline --first-parent --merges
++ head -n 1
+ '[' -n 'fb40df2 Merge pull request #65298 from nikhita/cherrypick-jsoniter-bump-1.9' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-release-1.9'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-release-1.9
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.9
++ git rev-parse HEAD
+ LAST_HEAD=fb40df2b502912cbe3a93aa61c2b2487f39cb42f
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-apimachinery-release-1.9.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-apimachinery-release-1.9.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch release-1.9 --push-script ../push-tags-apimachinery-release-1.9.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse release-1.9
+ '[' fb40df2b502912cbe3a93aa61c2b2487f39cb42f '!=' fb40df2b502912cbe3a93aa61c2b2487f39cb42f ']'
+ git checkout release-1.9
Already on 'release-1.9'
Your branch is up-to-date with 'origin/release-1.9'.
[24 Sep 18 07:17 UTC]: Successfully constructed release-1.9
[24 Sep 18 07:17 UTC]: /publish_scripts/construct.sh apimachinery release-1.10 release-1.10 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/apimachinery kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 557579c4c9d396c9e4aa1e46b64b9ad74a99a896
+ '[' '!' 14 -eq 14 ']'
+ REPO=apimachinery
+ SRC_BRANCH=release-1.10
+ DST_BRANCH=release-1.10
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/apimachinery
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=true
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=557579c4c9d396c9e4aa1e46b64b9ad74a99a896
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
Cleaning up checkout.
+ echo 'Cleaning up checkout.'
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q fb40df2b502912cbe3a93aa61c2b2487f39cb42f
+ git branch -D release-1.10
+ git remote set-head origin -d
+ git rev-parse origin/release-1.10
+ echo 'Switching to origin/release-1.10.'
+ git branch -f release-1.10 origin/release-1.10
Switching to origin/release-1.10.
+ git checkout -q release-1.10
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/release-1.10
+ UPSTREAM_HASH=6b64246e2588d1594664e1e83c72735acd279d26
Upstream branch upstream/release-1.10 moved from '557579c4c9d396c9e4aa1e46b64b9ad74a99a896' to '6b64246e2588d1594664e1e83c72735acd279d26'. We have to sync.
+ '[' 6b64246e2588d1594664e1e83c72735acd279d26 '!=' 557579c4c9d396c9e4aa1e46b64b9ad74a99a896 ']'
+ echo 'Upstream branch upstream/release-1.10 moved from '\''557579c4c9d396c9e4aa1e46b64b9ad74a99a896'\'' to '\''6b64246e2588d1594664e1e83c72735acd279d26'\''. We have to sync.'
+ sync_repo kubernetes kubernetes staging/src/k8s.io/apimachinery release-1.10 release-1.10 '' '' k8s.io true 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local src_branch=release-1.10
+ local dst_branch=release-1.10
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
e386b2658ed20923da8cc9250e552f082899a1ee
++ ls -1
++ wc -l
+ '[' 8 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.10 commit e386b2658ed20923da8cc9250e552f082899a1ee.
+ echo 'Starting at existing release-1.10 commit e386b2658ed20923da8cc9250e552f082899a1ee.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/release-1.10
Branch upstream-branch set up to track remote branch release-1.10 from upstream.
++ git rev-parse upstream-branch
Checked out source commit 6b64246e2588d1594664e1e83c72735acd279d26.
+ echo 'Checked out source commit 6b64246e2588d1594664e1e83c72735acd279d26.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit release-1.10
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B release-1.10
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
++ true
+ local k_base_commit=32ac1c9073b132b8ba18aa830f46b77dcceb0723
+ '[' -z 32ac1c9073b132b8ba18aa830f46b77dcceb0723 ']'
++ git-find-merge 32ac1c9073b132b8ba18aa830f46b77dcceb0723 upstream/release-1.10
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list '32ac1c9073b132b8ba18aa830f46b77dcceb0723^1..upstream/release-1.10' --first-parent
+++ git rev-list 32ac1c9073b132b8ba18aa830f46b77dcceb0723..upstream/release-1.10 --ancestry-path
+++ git rev-parse 32ac1c9073b132b8ba18aa830f46b77dcceb0723
+ local k_base_merge=32ac1c9073b132b8ba18aa830f46b77dcceb0723
+ '[' -z 32ac1c9073b132b8ba18aa830f46b77dcceb0723 ']'
+ git branch -f filtered-branch-base 32ac1c9073b132b8ba18aa830f46b77dcceb0723
Rewriting upstream branch release-1.10 to only include commits for staging/src/k8s.io/apimachinery.
+ echo 'Rewriting upstream branch release-1.10 to only include commits for staging/src/k8s.io/apimachinery.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/apimachinery 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/apimachinery
Running git filter-branch ...
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/apimachinery -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=cc2c98bc68826b762c838cfedf3c48e72c24da8d
++ git log --first-parent --format=%H --reverse cc2c98bc68826b762c838cfedf3c48e72c24da8d..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch release-1.10.'
+ git checkout -q release-1.10
Checking out branch release-1.10.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=e386b2658ed20923da8cc9250e552f082899a1ee
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=e386b2658ed20923da8cc9250e552f082899a1ee
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' e386b2658ed20923da8cc9250e552f082899a1ee '!=' e386b2658ed20923da8cc9250e552f082899a1ee ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io true true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=e386b2658ed20923da8cc9250e552f082899a1ee
+ '[' true = true ']'
+ update_full_godeps '' k8s.io true Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=true
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
Removing k8s.io/* dependencies from Godeps.json
+ local dep=
+ local branch=
+ local depbranch=
++ basename /go-workspace/src/k8s.io/apimachinery
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/apimachinery/") or . == "k8s.io/apimachinery") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=32ac1c9073b132b8ba18aa830f46b77dcceb0723
+ '[' -z 32ac1c9073b132b8ba18aa830f46b77dcceb0723 ']'
++ git-find-merge 32ac1c9073b132b8ba18aa830f46b77dcceb0723 upstream-branch
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list '32ac1c9073b132b8ba18aa830f46b77dcceb0723^1..upstream-branch' --first-parent
+++ git rev-list 32ac1c9073b132b8ba18aa830f46b77dcceb0723..upstream-branch --ancestry-path
+++ git rev-parse 32ac1c9073b132b8ba18aa830f46b77dcceb0723
+ local k_last_kube_merge=32ac1c9073b132b8ba18aa830f46b77dcceb0723
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' true = true ']'
++ git rev-parse --abbrev-ref HEAD
Removing complete vendor/ on non-master branch because this is a library.
+ '[' release-1.10 '!=' master ']'
+ echo 'Removing complete vendor/ on non-master branch because this is a library.'
+ rm -rf vendor/
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ true
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
Godeps.json hasn't changed!
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.10 '!=' master ']'
+ '[' -d vendor/ ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code e386b2658ed20923da8cc9250e552f082899a1ee
Remove redundant godep commits on-top of e386b2658ed20923da8cc9250e552f082899a1ee.
+ echo 'Remove redundant godep commits on-top of e386b2658ed20923da8cc9250e552f082899a1ee.'
+ git reset --soft -q e386b2658ed20923da8cc9250e552f082899a1ee
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/apimachinery
+ local repo=apimachinery
++ git log --oneline --first-parent --merges
++ head -n 1
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-release-1.10
+ '[' -n 'e386b26 Merge pull request #65157 from caesarxuchao/cherrypick-65034-1.10' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-release-1.10'
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.10
++ git rev-parse HEAD
+ LAST_HEAD=e386b2658ed20923da8cc9250e552f082899a1ee
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-apimachinery-release-1.10.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-apimachinery-release-1.10.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch release-1.10 --push-script ../push-tags-apimachinery-release-1.10.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse release-1.10
+ '[' e386b2658ed20923da8cc9250e552f082899a1ee '!=' e386b2658ed20923da8cc9250e552f082899a1ee ']'
+ git checkout release-1.10
Already on 'release-1.10'
Your branch is up-to-date with 'origin/release-1.10'.
[24 Sep 18 07:18 UTC]: Successfully constructed release-1.10
[24 Sep 18 07:18 UTC]: /publish_scripts/construct.sh apimachinery release-1.11 release-1.11 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/apimachinery kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" f818aa3443bc9820a54afb479a553e5cc3c4dc3a
+ '[' '!' 14 -eq 14 ']'
+ REPO=apimachinery
+ SRC_BRANCH=release-1.11
+ DST_BRANCH=release-1.11
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/apimachinery
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=true
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=f818aa3443bc9820a54afb479a553e5cc3c4dc3a
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
+ echo 'Cleaning up checkout.'
Cleaning up checkout.
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q e386b2658ed20923da8cc9250e552f082899a1ee
+ git branch -D release-1.11
+ git remote set-head origin -d
+ git rev-parse origin/release-1.11
Switching to origin/release-1.11.
+ echo 'Switching to origin/release-1.11.'
+ git branch -f release-1.11 origin/release-1.11
+ git checkout -q release-1.11
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/release-1.11
+ UPSTREAM_HASH=bdfaef1882ff1e7693367b41eb43f92fb150cd66
+ '[' bdfaef1882ff1e7693367b41eb43f92fb150cd66 '!=' f818aa3443bc9820a54afb479a553e5cc3c4dc3a ']'
+ echo 'Upstream branch upstream/release-1.11 moved from '\''f818aa3443bc9820a54afb479a553e5cc3c4dc3a'\'' to '\''bdfaef1882ff1e7693367b41eb43f92fb150cd66'\''. We have to sync.'
Upstream branch upstream/release-1.11 moved from 'f818aa3443bc9820a54afb479a553e5cc3c4dc3a' to 'bdfaef1882ff1e7693367b41eb43f92fb150cd66'. We have to sync.
+ sync_repo kubernetes kubernetes staging/src/k8s.io/apimachinery release-1.11 release-1.11 '' '' k8s.io true 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local src_branch=release-1.11
+ local dst_branch=release-1.11
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
def12e63c512da17043b4f0293f52d1006603d9f
++ ls -1
++ wc -l
+ '[' 9 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.11 commit def12e63c512da17043b4f0293f52d1006603d9f.
+ echo 'Starting at existing release-1.11 commit def12e63c512da17043b4f0293f52d1006603d9f.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/release-1.11
Branch upstream-branch set up to track remote branch release-1.11 from upstream.
++ git rev-parse upstream-branch
Checked out source commit bdfaef1882ff1e7693367b41eb43f92fb150cd66.
+ echo 'Checked out source commit bdfaef1882ff1e7693367b41eb43f92fb150cd66.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit release-1.11
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B release-1.11
++ grep '^Kubernetes-commit: '
++ sed 's/^Kubernetes-commit: //g'
++ head -n 1
++ true
+ local k_base_commit=f58f1bd657b67f725ced7c7520d531a421860e5a
+ '[' -z f58f1bd657b67f725ced7c7520d531a421860e5a ']'
++ git-find-merge f58f1bd657b67f725ced7c7520d531a421860e5a upstream/release-1.11
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 'f58f1bd657b67f725ced7c7520d531a421860e5a^1..upstream/release-1.11' --first-parent
+++ git rev-list f58f1bd657b67f725ced7c7520d531a421860e5a..upstream/release-1.11 --ancestry-path
+++ git rev-parse f58f1bd657b67f725ced7c7520d531a421860e5a
+ local k_base_merge=f58f1bd657b67f725ced7c7520d531a421860e5a
+ '[' -z f58f1bd657b67f725ced7c7520d531a421860e5a ']'
+ git branch -f filtered-branch-base f58f1bd657b67f725ced7c7520d531a421860e5a
Rewriting upstream branch release-1.11 to only include commits for staging/src/k8s.io/apimachinery.
+ echo 'Rewriting upstream branch release-1.11 to only include commits for staging/src/k8s.io/apimachinery.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/apimachinery 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
Running git filter-branch ...
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/apimachinery -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=790146089d8a012ca7f30942ba1a41e39d35d31c
++ git log --first-parent --format=%H --reverse 790146089d8a012ca7f30942ba1a41e39d35d31c..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch release-1.11.'
+ git checkout -q release-1.11
Checking out branch release-1.11.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=def12e63c512da17043b4f0293f52d1006603d9f
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=def12e63c512da17043b4f0293f52d1006603d9f
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
Fixing up godeps after a complete sync
+ echo 'Fixing up godeps after a complete sync'
++ git rev-parse HEAD
+ '[' def12e63c512da17043b4f0293f52d1006603d9f '!=' def12e63c512da17043b4f0293f52d1006603d9f ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io true true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=def12e63c512da17043b4f0293f52d1006603d9f
+ '[' true = true ']'
+ update_full_godeps '' k8s.io true Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=true
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
+ local depbranch=
Removing k8s.io/* dependencies from Godeps.json
++ basename /go-workspace/src/k8s.io/apimachinery
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/apimachinery/") or . == "k8s.io/apimachinery") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=f58f1bd657b67f725ced7c7520d531a421860e5a
+ '[' -z f58f1bd657b67f725ced7c7520d531a421860e5a ']'
++ git-find-merge f58f1bd657b67f725ced7c7520d531a421860e5a upstream-branch
++ tail -1
+++ git rev-list 'f58f1bd657b67f725ced7c7520d531a421860e5a^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list f58f1bd657b67f725ced7c7520d531a421860e5a..upstream-branch --ancestry-path
+++ git rev-parse f58f1bd657b67f725ced7c7520d531a421860e5a
+ local k_last_kube_merge=f58f1bd657b67f725ced7c7520d531a421860e5a
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' true = true ']'
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.11 '!=' master ']'
+ echo 'Removing complete vendor/ on non-master branch because this is a library.'
+ rm -rf vendor/
Removing complete vendor/ on non-master branch because this is a library.
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ true
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
Godeps.json hasn't changed!
+ git diff HEAD --exit-code
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.11 '!=' master ']'
+ '[' -d vendor/ ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ git diff --exit-code def12e63c512da17043b4f0293f52d1006603d9f
Remove redundant godep commits on-top of def12e63c512da17043b4f0293f52d1006603d9f.
+ echo 'Remove redundant godep commits on-top of def12e63c512da17043b4f0293f52d1006603d9f.'
+ git reset --soft -q def12e63c512da17043b4f0293f52d1006603d9f
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/apimachinery
+ local repo=apimachinery
++ head -n 1
++ git log --oneline --first-parent --merges
+ '[' -n 'def12e6 Merge pull request #67754 from sttts/automated-cherry-pick-of-#67169-upstream-release-1.11' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-release-1.11'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-release-1.11
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /collapsed-kube-commit-mapper --commit-message-tag Kubernetes-commit --source-branch refs/heads/upstream-branch
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.11
++ git rev-parse HEAD
+ LAST_HEAD=def12e63c512da17043b4f0293f52d1006603d9f
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-apimachinery-release-1.11.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-apimachinery-release-1.11.sh
+ '[' -z '' ']'
++ echo kubernetes
++ echo kubernetes
++ sed 's/^./\L\u&/'
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch release-1.11 --push-script ../push-tags-apimachinery-release-1.11.sh --dependencies '' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse release-1.11
+ '[' def12e63c512da17043b4f0293f52d1006603d9f '!=' def12e63c512da17043b4f0293f52d1006603d9f ']'
+ git checkout release-1.11
Already on 'release-1.11'
Your branch is up-to-date with 'origin/release-1.11'.
[24 Sep 18 07:20 UTC]: Successfully constructed release-1.11
[24 Sep 18 07:20 UTC]: /publish_scripts/construct.sh apimachinery release-1.12 release-1.12 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/apimachinery kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" b6f238a90600ebdba1804b7830c9322926b11ed5
+ '[' '!' 14 -eq 14 ']'
+ REPO=apimachinery
+ SRC_BRANCH=release-1.12
+ DST_BRANCH=release-1.12
+ DEPS=
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/apimachinery
+ SOURCE_REPO_ORG=kubernetes
+ SOURCE_REPO_NAME=kubernetes
+ shift 9
+ BASE_PACKAGE=k8s.io
+ IS_LIBRARY=true
+ RECURSIVE_DELETE_PATTERN='BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ SKIP_TAGS=
+ LAST_PUBLISHED_UPSTREAM_HASH=b6f238a90600ebdba1804b7830c9322926b11ed5
+ readonly REPO SRC_BRANCH DST_BRANCH DEPS REQUIRED SOURCE_REMOTE SOURCE_REPO_ORG SUBDIR SOURCE_REPO_NAME BASE_PACKAGE IS_LIBRARY RECURSIVE_DELETE_PATTERN SKIP_TAGS LAST_PUBLISHED_UPSTREAM_HASH
++ dirname /publish_scripts/construct.sh
+ SCRIPT_DIR=/publish_scripts
+ source /publish_scripts/util.sh
++ set -o errexit
++ set -o nounset
++ set -o pipefail
++ set -o xtrace
Running garbage collection.
+ echo 'Running garbage collection.'
+ git gc --auto
Fetching from origin.
+ echo 'Fetching from origin.'
+ git fetch origin --no-tags --prune
Cleaning up checkout.
+ echo 'Cleaning up checkout.'
+ git rebase --abort
No rebase in progress?
+ true
+ git reset -q --hard
+ git clean -q -f -f -d
++ git rev-parse HEAD
+ git checkout -q def12e63c512da17043b4f0293f52d1006603d9f
+ git branch -D release-1.12
+ git remote set-head origin -d
+ git rev-parse origin/release-1.12
Switching to origin/release-1.12.
+ echo 'Switching to origin/release-1.12.'
+ git branch -f release-1.12 origin/release-1.12
+ git checkout -q release-1.12
Fetching upstream changes.
+ echo 'Fetching upstream changes.'
+ git remote
+ grep -w -q upstream
+ git remote set-url upstream /go-workspace/src/k8s.io/kubernetes/.git
+ git fetch -q upstream --no-tags --prune
++ git rev-parse upstream/release-1.12
+ UPSTREAM_HASH=aa8089fd81e2b5ee46ec02d486f8fe855e38320b
+ '[' aa8089fd81e2b5ee46ec02d486f8fe855e38320b '!=' b6f238a90600ebdba1804b7830c9322926b11ed5 ']'
+ echo 'Upstream branch upstream/release-1.12 moved from '\''b6f238a90600ebdba1804b7830c9322926b11ed5'\'' to '\''aa8089fd81e2b5ee46ec02d486f8fe855e38320b'\''. We have to sync.'
Upstream branch upstream/release-1.12 moved from 'b6f238a90600ebdba1804b7830c9322926b11ed5' to 'aa8089fd81e2b5ee46ec02d486f8fe855e38320b'. We have to sync.
+ sync_repo kubernetes kubernetes staging/src/k8s.io/apimachinery release-1.12 release-1.12 '' '' k8s.io true 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local source_repo_org=kubernetes
+ local source_repo_name=kubernetes
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local src_branch=release-1.12
+ local dst_branch=release-1.12
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ shift 9
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local commit_msg_tag=Kubernetes-commit
+ readonly subdirectory src_branch dst_branch deps is_library
+ local new_branch=false
+ local orphan=false
+ git rev-parse -q --verify HEAD
6dd46049f39503a1fc8d65de4bd566829e95faff
++ ls -1
++ wc -l
+ '[' 9 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.12 commit 6dd46049f39503a1fc8d65de4bd566829e95faff.
+ echo 'Starting at existing release-1.12 commit 6dd46049f39503a1fc8d65de4bd566829e95faff.'
+ git branch -D filtered-branch
+ git branch -f upstream-branch upstream/release-1.12
Branch upstream-branch set up to track remote branch release-1.12 from upstream.
++ git rev-parse upstream-branch
Checked out source commit aa8089fd81e2b5ee46ec02d486f8fe855e38320b.
+ echo 'Checked out source commit aa8089fd81e2b5ee46ec02d486f8fe855e38320b.'
+ git checkout -q upstream-branch -b filtered-branch
+ git reset -q --hard upstream-branch
+ local f_mainline_commits=
+ '[' false = true ']'
+ '[' false = true ']'
++ last-kube-commit Kubernetes-commit release-1.12
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B release-1.12
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
++ true
+ local k_base_commit=a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33
+ '[' -z a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33 ']'
++ git-find-merge a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33 upstream/release-1.12
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 'a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33^1..upstream/release-1.12' --first-parent
+++ git rev-list a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33..upstream/release-1.12 --ancestry-path
+++ git rev-parse a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33
+ local k_base_merge=a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33
+ '[' -z a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33 ']'
+ git branch -f filtered-branch-base a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33
Rewriting upstream branch release-1.12 to only include commits for staging/src/k8s.io/apimachinery.
Running git filter-branch ...
+ echo 'Rewriting upstream branch release-1.12 to only include commits for staging/src/k8s.io/apimachinery.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/apimachinery 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' filtered-branch filtered-branch-base
+ local commit_msg_tag=Kubernetes-commit
+ local subdirectory=staging/src/k8s.io/apimachinery
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
+ '[' -n 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ patterns=()
+ local patterns
+ local p=
+ index_filter='git rm -q --cached --ignore-unmatch -r'
+ IFS=' '
+ read -ra patterns
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''*/BUILD.bazel'\'''
+ for p in '"${patterns[@]}"'
+ index_filter+=' '\''Gopkg.toml'\'''
+ git filter-branch -f --index-filter 'git rm -q --cached --ignore-unmatch -r '\''BUILD'\'' '\''*/BUILD'\'' '\''BUILD.bazel'\'' '\''*/BUILD.bazel'\'' '\''Gopkg.toml'\''' --msg-filter 'awk 1 && echo && echo "Kubernetes-commit: ${GIT_COMMIT}"' --subdirectory-filter staging/src/k8s.io/apimachinery -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=08284ccdae107c19c0d2cf2d4fa80c6c21b1d137
++ git log --first-parent --format=%H --reverse 08284ccdae107c19c0d2cf2d4fa80c6c21b1d137..HEAD
+ f_mainline_commits=
+ echo 'Checking out branch release-1.12.'
+ git checkout -q release-1.12
Checking out branch release-1.12.
+ '[' -f kubernetes-sha ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
++ git rev-parse HEAD
+ local dst_old_head=6dd46049f39503a1fc8d65de4bd566829e95faff
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=6dd46049f39503a1fc8d65de4bd566829e95faff
+ for f_mainline_commit in '${f_mainline_commits}' FLUSH_PENDING_MERGE_COMMIT
+ local k_mainline_commit=
+ local k_new_pending_merge_commit=
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ k_new_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' -n '' ']'
+ k_pending_merge_commit=FLUSH_PENDING_MERGE_COMMIT
+ '[' FLUSH_PENDING_MERGE_COMMIT = FLUSH_PENDING_MERGE_COMMIT ']'
+ break
+ echo 'Fixing up godeps after a complete sync'
Fixing up godeps after a complete sync
++ git rev-parse HEAD
+ '[' 6dd46049f39503a1fc8d65de4bd566829e95faff '!=' 6dd46049f39503a1fc8d65de4bd566829e95faff ']'
+ '[' false = true ']'
+ fix-godeps '' '' k8s.io true true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=
+ local required_packages=
+ local base_package=k8s.io
+ local is_library=true
+ local needs_godeps_update=true
+ local squash=false
+ local commit_msg_tag=Kubernetes-commit
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
++ git rev-parse HEAD
+ local dst_old_commit=6dd46049f39503a1fc8d65de4bd566829e95faff
+ '[' true = true ']'
+ update_full_godeps '' k8s.io true Kubernetes-commit
+ local deps=
+ local base_package=k8s.io
+ local is_library=true
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
+ local depbranch=
Removing k8s.io/* dependencies from Godeps.json
++ basename /go-workspace/src/k8s.io/apimachinery
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/apimachinery/") or . == "k8s.io/apimachinery") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
Running godep restore.
+ echo 'Running godep restore.'
+ godep restore
+ checkout-deps-to-kube-commit Kubernetes-commit ''
+ local commit_msg_tag=Kubernetes-commit
+ deps=()
+ local deps
+ IFS=,
+ read -a deps
++ last-kube-commit Kubernetes-commit HEAD
++ local commit_msg_tag=Kubernetes-commit
++ git log --format=%B HEAD
++ grep '^Kubernetes-commit: '
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33
+ '[' -z a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33 ']'
++ git-find-merge a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33 upstream-branch
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 'a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33^1..upstream-branch' --first-parent
+++ git rev-list a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33..upstream-branch --ancestry-path
+++ git rev-parse a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33
+ local k_last_kube_merge=a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33
+ local dep_count=0
+ (( i=0 ))
+ (( i<0 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
Running godep save.
+ echo 'Running godep save.'
+ godep save ./...
+ cp Godeps/Godeps.json Godeps/Godeps.json.preserve
+ git checkout HEAD Godeps/
+ mv Godeps/Godeps.json.preserve Godeps/Godeps.json
+ indent-godeps
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' true = true ']'
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.12 '!=' master ']'
+ echo 'Removing complete vendor/ on non-master branch because this is a library.'
+ rm -rf vendor/
Removing complete vendor/ on non-master branch because this is a library.
+ git add Godeps/Godeps.json
+ git clean -f Godeps
+ git add vendor/ --ignore-errors
+ true
+ git-index-clean
+ git diff --cached --exit-code
+ return 0
+ echo 'Godeps.json hasn'\''t changed!'
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
Godeps.json hasn't changed!
++ git rev-parse --abbrev-ref HEAD
+ '[' release-1.12 '!=' master ']'
+ '[' -d vendor/ ']'
+ '[' -n '' ']'
+ apply-recursive-delete-pattern 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' -z 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml' ']'
+ local split_recursive_delete_pattern
+ read -r -a split_recursive_delete_pattern
+ git rm -q --ignore-unmatch -r BUILD '*/BUILD' BUILD.bazel '*/BUILD.bazel' Gopkg.toml
+ git add -u
+ git-index-clean
+ git diff --cached --exit-code