Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[27 Sep 18 23:10 UTC]: Successfully ensured /go-workspace/src/k8s.io/code-generator exists
[27 Sep 18 23:10 UTC]: /bin/bash -c "git tag | xargs git tag -d >/dev/null"
[27 Sep 18 23:10 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" 34860dafe2d86a98efe9065754b722095f24c813
+ '[' '!' 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=34860dafe2d86a98efe9065754b722095f24c813
+ 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 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
+ echo 'Fetching upstream changes.'
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=1636fed8c55701a8c736c3ea3442b673c93f84c9
+ '[' 1636fed8c55701a8c736c3ea3442b673c93f84c9 '!=' 34860dafe2d86a98efe9065754b722095f24c813 ']'
+ echo 'Upstream branch upstream/master moved from '\''34860dafe2d86a98efe9065754b722095f24c813'\'' to '\''1636fed8c55701a8c736c3ea3442b673c93f84c9'\''. We have to sync.'
Upstream branch upstream/master moved from '34860dafe2d86a98efe9065754b722095f24c813' to '1636fed8c55701a8c736c3ea3442b673c93f84c9'. 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
731fd61190482fe9e4b67e30ccb8596966f394dd
++ ls -1
++ wc -l
+ '[' 15 = 0 ']'
++ git rev-parse HEAD
Starting at existing master commit 731fd61190482fe9e4b67e30ccb8596966f394dd.
+ echo 'Starting at existing master commit 731fd61190482fe9e4b67e30ccb8596966f394dd.'
+ 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 1636fed8c55701a8c736c3ea3442b673c93f84c9.
+ echo 'Checked out source commit 1636fed8c55701a8c736c3ea3442b673c93f84c9.'
+ 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
+ local k_base_commit=a67689dfcab0ed547e1d060c414eae7c81629cc9
+ '[' -z a67689dfcab0ed547e1d060c414eae7c81629cc9 ']'
++ git-find-merge a67689dfcab0ed547e1d060c414eae7c81629cc9 upstream/master
++ tail -1
+++ git rev-list 'a67689dfcab0ed547e1d060c414eae7c81629cc9^1..upstream/master' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list a67689dfcab0ed547e1d060c414eae7c81629cc9..upstream/master --ancestry-path
+++ git rev-parse a67689dfcab0ed547e1d060c414eae7c81629cc9
+ local k_base_merge=a67689dfcab0ed547e1d060c414eae7c81629cc9
+ '[' -z a67689dfcab0ed547e1d060c414eae7c81629cc9 ']'
+ git branch -f filtered-branch-base a67689dfcab0ed547e1d060c414eae7c81629cc9
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=()
Running git filter-branch ...
+ 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=4756583f613a01fd2dea608e18d4a6ab79ef8e51
++ git log --first-parent --format=%H --reverse 4756583f613a01fd2dea608e18d4a6ab79ef8e51..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=731fd61190482fe9e4b67e30ccb8596966f394dd
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
Fixing up godeps after a complete sync
+ local dst_merge_point_commit=731fd61190482fe9e4b67e30ccb8596966f394dd
+ 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'
++ git rev-parse HEAD
+ '[' 731fd61190482fe9e4b67e30ccb8596966f394dd '!=' 731fd61190482fe9e4b67e30ccb8596966f394dd ']'
+ '[' 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=731fd61190482fe9e4b67e30ccb8596966f394dd
+ '[' 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=a67689dfcab0ed547e1d060c414eae7c81629cc9
+ '[' -z a67689dfcab0ed547e1d060c414eae7c81629cc9 ']'
++ git-find-merge a67689dfcab0ed547e1d060c414eae7c81629cc9 upstream-branch
++ tail -1
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 'a67689dfcab0ed547e1d060c414eae7c81629cc9^1..upstream-branch' --first-parent
+++ git rev-list a67689dfcab0ed547e1d060c414eae7c81629cc9..upstream-branch --ancestry-path
+++ git rev-parse a67689dfcab0ed547e1d060c414eae7c81629cc9
+ local k_last_kube_merge=a67689dfcab0ed547e1d060c414eae7c81629cc9
+ 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
+ '[' 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 731fd61190482fe9e4b67e30ccb8596966f394dd
Remove redundant godep commits on-top of 731fd61190482fe9e4b67e30ccb8596966f394dd.
+ echo 'Remove redundant godep commits on-top of 731fd61190482fe9e4b67e30ccb8596966f394dd.'
+ git reset --soft -q 731fd61190482fe9e4b67e30ccb8596966f394dd
+ 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
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-code-generator-master
+ '[' -n '731fd61 Merge pull request #68245 from jingyih/remove_tagName_in_goDoc' ']'
+ echo '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=731fd61190482fe9e4b67e30ccb8596966f394dd
+ 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 '' --mapping-output-file '../tag-code-generator-{{.Tag}}-mapping' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse master
+ '[' 731fd61190482fe9e4b67e30ccb8596966f394dd '!=' 731fd61190482fe9e4b67e30ccb8596966f394dd ']'
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[27 Sep 18 23:12 UTC]: Successfully constructed master
[27 Sep 18 23:12 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" 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ '[' '!' 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=19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ 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 731fd61190482fe9e4b67e30ccb8596966f394dd
+ 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=19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ '[' 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 '!=' 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 ']'
+ echo 'Skipping sync because upstream/release-1.9 at 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 did not change since last sync.'
Skipping sync because upstream/release-1.9 at 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 did not change since last sync.
++ 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 '' --mapping-output-file '../tag-code-generator-{{.Tag}}-mapping' -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'.
[27 Sep 18 23:12 UTC]: Successfully constructed release-1.9
[27 Sep 18 23:12 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" 6b64246e2588d1594664e1e83c72735acd279d26
+ '[' '!' 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=6b64246e2588d1594664e1e83c72735acd279d26
+ 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.'
+ 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 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 '!=' 6b64246e2588d1594664e1e83c72735acd279d26 ']'
+ echo 'Skipping sync because upstream/release-1.10 at 6b64246e2588d1594664e1e83c72735acd279d26 did not change since last sync.'
Skipping sync because upstream/release-1.10 at 6b64246e2588d1594664e1e83c72735acd279d26 did not change since last sync.
++ 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 '' --mapping-output-file '../tag-code-generator-{{.Tag}}-mapping' -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'.
[27 Sep 18 23:12 UTC]: Successfully constructed release-1.10
[27 Sep 18 23:12 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" 50ea2c8ec8368591869faf635cec41244d475cd0
+ '[' '!' 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=50ea2c8ec8368591869faf635cec41244d475cd0
+ 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=50ea2c8ec8368591869faf635cec41244d475cd0
+ '[' 50ea2c8ec8368591869faf635cec41244d475cd0 '!=' 50ea2c8ec8368591869faf635cec41244d475cd0 ']'
+ echo 'Skipping sync because upstream/release-1.11 at 50ea2c8ec8368591869faf635cec41244d475cd0 did not change since last sync.'
Skipping sync because upstream/release-1.11 at 50ea2c8ec8368591869faf635cec41244d475cd0 did not change since last sync.
++ 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 '' --mapping-output-file '../tag-code-generator-{{.Tag}}-mapping' -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'.
[27 Sep 18 23:12 UTC]: Successfully constructed release-1.11
[27 Sep 18 23: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" 0ed33881dc4355495f623c6f22e7dd0b7632b7c0
+ '[' '!' 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=0ed33881dc4355495f623c6f22e7dd0b7632b7c0
+ 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=30fae457d593d04783223d60c7d6c804e60cab7e
+ '[' 30fae457d593d04783223d60c7d6c804e60cab7e '!=' 0ed33881dc4355495f623c6f22e7dd0b7632b7c0 ']'
+ echo 'Upstream branch upstream/release-1.12 moved from '\''0ed33881dc4355495f623c6f22e7dd0b7632b7c0'\'' to '\''30fae457d593d04783223d60c7d6c804e60cab7e'\''. 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'
Upstream branch upstream/release-1.12 moved from '0ed33881dc4355495f623c6f22e7dd0b7632b7c0' to '30fae457d593d04783223d60c7d6c804e60cab7e'. We have to sync.
+ 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 30fae457d593d04783223d60c7d6c804e60cab7e.
+ echo 'Checked out source commit 30fae457d593d04783223d60c7d6c804e60cab7e.'
+ 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
Rewriting upstream branch release-1.12 to only include commits for staging/src/k8s.io/code-generator.
+ 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=
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=
+ 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
++ grep '^Kubernetes-commit: '
++ git log --format=%B HEAD
++ 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 '' --mapping-output-file '../tag-code-generator-{{.Tag}}-mapping' -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 "release-1.12" at 3dcf91f64f638563e5106f21f50c31fa361c918d because "kubernetes-1.12.1-beta.0" seems to be relevant.
Writing source->dest hash mapping to "../tag-code-generator-kubernetes-1.12.1-beta.0-mapping"
Tagging bfb675c80be2ffc2672b7aee5e8cee835cacc34f as "kubernetes-1.12.1-beta.0".
Writing source->dest hash mapping to "../tag-code-generator-kubernetes-1.12.0-mapping"
Tagging bfb675c80be2ffc2672b7aee5e8cee835cacc34f as "kubernetes-1.12.0".
++ 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'.
[27 Sep 18 23:13 UTC]: Successfully constructed release-1.12
[27 Sep 18 23:13 UTC]: Successfully ensured /go-workspace/src/k8s.io/apimachinery exists
[27 Sep 18 23:13 UTC]: /bin/bash -c "git tag | xargs git tag -d >/dev/null"
[27 Sep 18 23: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" 34860dafe2d86a98efe9065754b722095f24c813
+ '[' '!' 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=34860dafe2d86a98efe9065754b722095f24c813
+ 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 cdac837abb323d610ee074068a16915651f888dd
+ 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=1636fed8c55701a8c736c3ea3442b673c93f84c9
+ '[' 1636fed8c55701a8c736c3ea3442b673c93f84c9 '!=' 34860dafe2d86a98efe9065754b722095f24c813 ']'
+ echo 'Upstream branch upstream/master moved from '\''34860dafe2d86a98efe9065754b722095f24c813'\'' to '\''1636fed8c55701a8c736c3ea3442b673c93f84c9'\''. We have to sync.'
Upstream branch upstream/master moved from '34860dafe2d86a98efe9065754b722095f24c813' to '1636fed8c55701a8c736c3ea3442b673c93f84c9'. 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
c6dd271be00615c6fa8c91fdf63381265a5f0e4e
++ ls -1
++ wc -l
+ '[' 10 = 0 ']'
++ git rev-parse HEAD
Starting at existing master commit c6dd271be00615c6fa8c91fdf63381265a5f0e4e.
+ echo 'Starting at existing master commit c6dd271be00615c6fa8c91fdf63381265a5f0e4e.'
+ 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 1636fed8c55701a8c736c3ea3442b673c93f84c9.
+ echo 'Checked out source commit 1636fed8c55701a8c736c3ea3442b673c93f84c9.'
+ 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=b25bf8157360b31166c7a32d6a6ae1f58c33a5c2
+ '[' -z b25bf8157360b31166c7a32d6a6ae1f58c33a5c2 ']'
++ git-find-merge b25bf8157360b31166c7a32d6a6ae1f58c33a5c2 upstream/master
++ tail -1
+++ git rev-list 'b25bf8157360b31166c7a32d6a6ae1f58c33a5c2^1..upstream/master' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list b25bf8157360b31166c7a32d6a6ae1f58c33a5c2..upstream/master --ancestry-path
+++ git rev-parse b25bf8157360b31166c7a32d6a6ae1f58c33a5c2
+ local k_base_merge=b25bf8157360b31166c7a32d6a6ae1f58c33a5c2
+ '[' -z b25bf8157360b31166c7a32d6a6ae1f58c33a5c2 ']'
+ git branch -f filtered-branch-base b25bf8157360b31166c7a32d6a6ae1f58c33a5c2
+ 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
Rewriting upstream branch master to only include commits for staging/src/k8s.io/apimachinery.
+ 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 ...'
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=6646d51503741f608879e5b6cb29a390d1e8d75c
++ git log --first-parent --format=%H --reverse 6646d51503741f608879e5b6cb29a390d1e8d75c..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=c6dd271be00615c6fa8c91fdf63381265a5f0e4e
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=c6dd271be00615c6fa8c91fdf63381265a5f0e4e
+ 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
+ '[' c6dd271be00615c6fa8c91fdf63381265a5f0e4e '!=' c6dd271be00615c6fa8c91fdf63381265a5f0e4e ']'
+ '[' 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=c6dd271be00615c6fa8c91fdf63381265a5f0e4e
+ '[' 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=
Removing k8s.io/* dependencies from Godeps.json
+ 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=b25bf8157360b31166c7a32d6a6ae1f58c33a5c2
+ '[' -z b25bf8157360b31166c7a32d6a6ae1f58c33a5c2 ']'
++ git-find-merge b25bf8157360b31166c7a32d6a6ae1f58c33a5c2 upstream-branch
++ tail -1
+++ git rev-list 'b25bf8157360b31166c7a32d6a6ae1f58c33a5c2^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list b25bf8157360b31166c7a32d6a6ae1f58c33a5c2..upstream-branch --ancestry-path
+++ git rev-parse b25bf8157360b31166c7a32d6a6ae1f58c33a5c2
+ local k_last_kube_merge=b25bf8157360b31166c7a32d6a6ae1f58c33a5c2
+ 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
+ git diff HEAD --exit-code
Godeps.json hasn't changed!
++ 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 c6dd271be00615c6fa8c91fdf63381265a5f0e4e
Remove redundant godep commits on-top of c6dd271be00615c6fa8c91fdf63381265a5f0e4e.
+ echo 'Remove redundant godep commits on-top of c6dd271be00615c6fa8c91fdf63381265a5f0e4e.'
+ git reset --soft -q c6dd271be00615c6fa8c91fdf63381265a5f0e4e
+ 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 'c6dd271 Merge pull request #69044 from enj/enj/i/gv_remove_pointers' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-master'
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=c6dd271be00615c6fa8c91fdf63381265a5f0e4e
+ 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 '' --mapping-output-file '../tag-apimachinery-{{.Tag}}-mapping' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse master
+ '[' c6dd271be00615c6fa8c91fdf63381265a5f0e4e '!=' c6dd271be00615c6fa8c91fdf63381265a5f0e4e ']'
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[27 Sep 18 23:15 UTC]: Successfully constructed master
[27 Sep 18 23: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" 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ '[' '!' 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=19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ 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 c6dd271be00615c6fa8c91fdf63381265a5f0e4e
+ 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
Skipping sync because upstream/release-1.9 at 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 did not change since last sync.
+ UPSTREAM_HASH=19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ '[' 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 '!=' 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 ']'
+ echo 'Skipping sync because upstream/release-1.9 at 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 did not change since last sync.'
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.9
++ git rev-parse HEAD
+ LAST_HEAD=1926e7bb5c13e9c651830fe950cb623071bb03d2
+ 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 '' --mapping-output-file '../tag-apimachinery-{{.Tag}}-mapping' -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
+ '[' 1926e7bb5c13e9c651830fe950cb623071bb03d2 '!=' 1926e7bb5c13e9c651830fe950cb623071bb03d2 ']'
+ git checkout release-1.9
Already on 'release-1.9'
Your branch is up-to-date with 'origin/release-1.9'.
[27 Sep 18 23:15 UTC]: Successfully constructed release-1.9
[27 Sep 18 23:15 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" 6b64246e2588d1594664e1e83c72735acd279d26
+ '[' '!' 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=6b64246e2588d1594664e1e83c72735acd279d26
+ 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 1926e7bb5c13e9c651830fe950cb623071bb03d2
+ 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 '!=' 6b64246e2588d1594664e1e83c72735acd279d26 ']'
+ echo 'Skipping sync because upstream/release-1.10 at 6b64246e2588d1594664e1e83c72735acd279d26 did not change since last sync.'
Skipping sync because upstream/release-1.10 at 6b64246e2588d1594664e1e83c72735acd279d26 did not change since last sync.
++ 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 '' --mapping-output-file '../tag-apimachinery-{{.Tag}}-mapping' -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'.
[27 Sep 18 23:15 UTC]: Successfully constructed release-1.10
[27 Sep 18 23:15 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" 50ea2c8ec8368591869faf635cec41244d475cd0
+ '[' '!' 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=50ea2c8ec8368591869faf635cec41244d475cd0
+ 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
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 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=50ea2c8ec8368591869faf635cec41244d475cd0
Skipping sync because upstream/release-1.11 at 50ea2c8ec8368591869faf635cec41244d475cd0 did not change since last sync.
+ '[' 50ea2c8ec8368591869faf635cec41244d475cd0 '!=' 50ea2c8ec8368591869faf635cec41244d475cd0 ']'
+ echo 'Skipping sync because upstream/release-1.11 at 50ea2c8ec8368591869faf635cec41244d475cd0 did not change since last sync.'
++ 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 '' --mapping-output-file '../tag-apimachinery-{{.Tag}}-mapping' -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'.
[27 Sep 18 23:16 UTC]: Successfully constructed release-1.11
[27 Sep 18 23:16 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" 0ed33881dc4355495f623c6f22e7dd0b7632b7c0
+ '[' '!' 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=0ed33881dc4355495f623c6f22e7dd0b7632b7c0
+ 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=30fae457d593d04783223d60c7d6c804e60cab7e
+ '[' 30fae457d593d04783223d60c7d6c804e60cab7e '!=' 0ed33881dc4355495f623c6f22e7dd0b7632b7c0 ']'
+ echo 'Upstream branch upstream/release-1.12 moved from '\''0ed33881dc4355495f623c6f22e7dd0b7632b7c0'\'' to '\''30fae457d593d04783223d60c7d6c804e60cab7e'\''. We have to sync.'
Upstream branch upstream/release-1.12 moved from '0ed33881dc4355495f623c6f22e7dd0b7632b7c0' to '30fae457d593d04783223d60c7d6c804e60cab7e'. 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 30fae457d593d04783223d60c7d6c804e60cab7e.
+ echo 'Checked out source commit 30fae457d593d04783223d60c7d6c804e60cab7e.'
+ 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
+++ git rev-list 'a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33^1..upstream/release-1.12' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ 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.
+ 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=
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/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
Checking out branch release-1.12.
+ f_mainline_commits=
+ echo 'Checking out branch release-1.12.'
+ git checkout -q 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
+++ git rev-list 'a5d1aa6c70cff3eaa8feaaee6f0fa4935cbefa33^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ 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
+ echo 'Running godep save.'
+ godep save ./...
Running 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.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
+ return 0
+ git diff --exit-code 6dd46049f39503a1fc8d65de4bd566829e95faff
Remove redundant godep commits on-top of 6dd46049f39503a1fc8d65de4bd566829e95faff.
+ echo 'Remove redundant godep commits on-top of 6dd46049f39503a1fc8d65de4bd566829e95faff.'
+ git reset --soft -q 6dd46049f39503a1fc8d65de4bd566829e95faff
+ 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 '6dd4604 Merge remote-tracking branch '\''origin/master'\'' into release-1.12' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-release-1.12'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-apimachinery-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=6dd46049f39503a1fc8d65de4bd566829e95faff
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-apimachinery-release-1.12.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-apimachinery-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-apimachinery-release-1.12.sh --dependencies '' --mapping-output-file '../tag-apimachinery-{{.Tag}}-mapping' -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 "release-1.12" at 6dd46049f39503a1fc8d65de4bd566829e95faff because "kubernetes-1.12.1-beta.0" seems to be relevant.
Writing source->dest hash mapping to "../tag-apimachinery-kubernetes-1.12.1-beta.0-mapping"
Tagging 705814234c8085247e99946887b0fbbd801efa08 as "kubernetes-1.12.1-beta.0".
Writing source->dest hash mapping to "../tag-apimachinery-kubernetes-1.12.0-mapping"
Tagging 705814234c8085247e99946887b0fbbd801efa08 as "kubernetes-1.12.0".
++ git rev-parse release-1.12
+ '[' 6dd46049f39503a1fc8d65de4bd566829e95faff '!=' 6dd46049f39503a1fc8d65de4bd566829e95faff ']'
+ git checkout release-1.12
Already on 'release-1.12'
Your branch is up-to-date with 'origin/release-1.12'.
[27 Sep 18 23:17 UTC]: Successfully constructed release-1.12
[27 Sep 18 23:17 UTC]: Successfully ensured /go-workspace/src/k8s.io/api exists
[27 Sep 18 23:17 UTC]: /bin/bash -c "git tag | xargs git tag -d >/dev/null"
[27 Sep 18 23:17 UTC]: /publish_scripts/construct.sh api master master apimachinery:master /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/api kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 34860dafe2d86a98efe9065754b722095f24c813
+ '[' '!' 14 -eq 14 ']'
+ REPO=api
+ SRC_BRANCH=master
+ DST_BRANCH=master
+ DEPS=apimachinery:master
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/api
+ 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=34860dafe2d86a98efe9065754b722095f24c813
+ 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 012f271b5d41baad56190c5f1ae19bff16df0fd8
+ 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=1636fed8c55701a8c736c3ea3442b673c93f84c9
+ '[' 1636fed8c55701a8c736c3ea3442b673c93f84c9 '!=' 34860dafe2d86a98efe9065754b722095f24c813 ']'
+ echo 'Upstream branch upstream/master moved from '\''34860dafe2d86a98efe9065754b722095f24c813'\'' to '\''1636fed8c55701a8c736c3ea3442b673c93f84c9'\''. We have to sync.'
Upstream branch upstream/master moved from '34860dafe2d86a98efe9065754b722095f24c813' to '1636fed8c55701a8c736c3ea3442b673c93f84c9'. We have to sync.
+ sync_repo kubernetes kubernetes staging/src/k8s.io/api master master apimachinery: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/api
+ local src_branch=master
+ local dst_branch=master
+ local deps=apimachinery:master
+ 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
a191abe0b71e00ce4cde58af8002aa4c1a8bb068
++ ls -1
++ wc -l
+ '[' 28 = 0 ']'
++ git rev-parse HEAD
Starting at existing master commit a191abe0b71e00ce4cde58af8002aa4c1a8bb068.
+ echo 'Starting at existing master commit a191abe0b71e00ce4cde58af8002aa4c1a8bb068.'
+ 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 1636fed8c55701a8c736c3ea3442b673c93f84c9.
+ echo 'Checked out source commit 1636fed8c55701a8c736c3ea3442b673c93f84c9.'
+ 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=a67689dfcab0ed547e1d060c414eae7c81629cc9
+ '[' -z a67689dfcab0ed547e1d060c414eae7c81629cc9 ']'
++ git-find-merge a67689dfcab0ed547e1d060c414eae7c81629cc9 upstream/master
++ tail -1
+++ git rev-list 'a67689dfcab0ed547e1d060c414eae7c81629cc9^1..upstream/master' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list a67689dfcab0ed547e1d060c414eae7c81629cc9..upstream/master --ancestry-path
+++ git rev-parse a67689dfcab0ed547e1d060c414eae7c81629cc9
+ local k_base_merge=a67689dfcab0ed547e1d060c414eae7c81629cc9
+ '[' -z a67689dfcab0ed547e1d060c414eae7c81629cc9 ']'
+ git branch -f filtered-branch-base a67689dfcab0ed547e1d060c414eae7c81629cc9
Rewriting upstream branch master to only include commits for staging/src/k8s.io/api.
+ echo 'Rewriting upstream branch master to only include commits for staging/src/k8s.io/api.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/api '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/api
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
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/api -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=a878526d87a9fe270b31c9bdf5fa41ddec28b4ff
++ git log --first-parent --format=%H --reverse a878526d87a9fe270b31c9bdf5fa41ddec28b4ff..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=a191abe0b71e00ce4cde58af8002aa4c1a8bb068
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=a191abe0b71e00ce4cde58af8002aa4c1a8bb068
+ 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
+ '[' a191abe0b71e00ce4cde58af8002aa4c1a8bb068 '!=' a191abe0b71e00ce4cde58af8002aa4c1a8bb068 ']'
+ '[' false = true ']'
+ fix-godeps apimachinery:master '' k8s.io true true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=apimachinery:master
+ 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=a191abe0b71e00ce4cde58af8002aa4c1a8bb068
+ '[' true = true ']'
+ update_full_godeps apimachinery:master k8s.io true Kubernetes-commit
+ local deps=apimachinery:master
+ 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/api
+ 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
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/api/") or . == "k8s.io/api") | not))' Godeps/Godeps.json
+ indent-godeps
+ unexpand --first-only --tabs=2
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ echo 'Running godep restore.'
+ godep restore
Running godep restore.
+ checkout-deps-to-kube-commit Kubernetes-commit apimachinery:master
+ 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=a67689dfcab0ed547e1d060c414eae7c81629cc9
+ '[' -z a67689dfcab0ed547e1d060c414eae7c81629cc9 ']'
++ git-find-merge a67689dfcab0ed547e1d060c414eae7c81629cc9 upstream-branch
++ tail -1
+++ git rev-list 'a67689dfcab0ed547e1d060c414eae7c81629cc9^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list a67689dfcab0ed547e1d060c414eae7c81629cc9..upstream-branch --ancestry-path
+++ git rev-parse a67689dfcab0ed547e1d060c414eae7c81629cc9
+ local k_last_kube_merge=a67689dfcab0ed547e1d060c414eae7c81629cc9
+ local dep_count=1
+ (( i=0 ))
+ (( i<1 ))
+ local dep=apimachinery
+ local branch=master
Looking up which commit in the master branch of k8s.io/apimachinery corresponds to k8s.io/kubernetes commit a67689dfcab0ed547e1d060c414eae7c81629cc9.
+ echo 'Looking up which commit in the master branch of k8s.io/apimachinery corresponds to k8s.io/kubernetes commit a67689dfcab0ed547e1d060c414eae7c81629cc9.'
+ local k_commit=
+ local dep_commit=
+ read k_commit dep_commit
++ look -b a67689dfcab0ed547e1d060c414eae7c81629cc9 ../kube-commits-apimachinery-master
+ '[' -z 5ae511e0ed34ac0fbf6e17340df5605372591d00 ']'
+ pushd ../apimachinery
Checking out k8s.io/apimachinery to 5ae511e0ed34ac0fbf6e17340df5605372591d00
+ echo 'Checking out k8s.io/apimachinery to 5ae511e0ed34ac0fbf6e17340df5605372591d00'
+ git checkout -q 5ae511e0ed34ac0fbf6e17340df5605372591d00
+ popd
+ (( i++ ))
+ (( i<1 ))
+ rm -rf ./Godeps
+ rm -rf ./vendor
+ echo 'Running godep save.'
+ godep save ./...
Running 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 a191abe0b71e00ce4cde58af8002aa4c1a8bb068
Remove redundant godep commits on-top of a191abe0b71e00ce4cde58af8002aa4c1a8bb068.
+ echo 'Remove redundant godep commits on-top of a191abe0b71e00ce4cde58af8002aa4c1a8bb068.'
+ git reset --soft -q a191abe0b71e00ce4cde58af8002aa4c1a8bb068
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/api
+ local repo=api
++ git log --oneline --first-parent --merges
++ head -n 1
+ '[' -n 'a191abe Merge pull request #68245 from jingyih/remove_tagName_in_goDoc' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-api-master'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-api-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=a191abe0b71e00ce4cde58af8002aa4c1a8bb068
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-api-master.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-api-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-api-master.sh --dependencies apimachinery:master --mapping-output-file '../tag-api-{{.Tag}}-mapping' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse master
+ '[' a191abe0b71e00ce4cde58af8002aa4c1a8bb068 '!=' a191abe0b71e00ce4cde58af8002aa4c1a8bb068 ']'
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[27 Sep 18 23:19 UTC]: Successfully constructed master
[27 Sep 18 23:19 UTC]: /publish_scripts/construct.sh api release-1.9 release-1.9 apimachinery:release-1.9 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/api kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ '[' '!' 14 -eq 14 ']'
+ REPO=api
+ SRC_BRANCH=release-1.9
+ DST_BRANCH=release-1.9
+ DEPS=apimachinery:release-1.9
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/api
+ 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=19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ 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 a191abe0b71e00ce4cde58af8002aa4c1a8bb068
+ 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=19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ '[' 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 '!=' 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 ']'
+ echo 'Skipping sync because upstream/release-1.9 at 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 did not change since last sync.'
Skipping sync because upstream/release-1.9 at 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 did not change since last sync.
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.9
++ git rev-parse HEAD
+ LAST_HEAD=9273ee02527c608cecc74969b3e489f5dba686da
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-api-release-1.9.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-api-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-api-release-1.9.sh --dependencies apimachinery:release-1.9 --mapping-output-file '../tag-api-{{.Tag}}-mapping' -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
+ '[' 9273ee02527c608cecc74969b3e489f5dba686da '!=' 9273ee02527c608cecc74969b3e489f5dba686da ']'
+ git checkout release-1.9
Already on 'release-1.9'
Your branch is up-to-date with 'origin/release-1.9'.
[27 Sep 18 23:19 UTC]: Successfully constructed release-1.9
[27 Sep 18 23:19 UTC]: /publish_scripts/construct.sh api release-1.10 release-1.10 apimachinery:release-1.10 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/api kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 6b64246e2588d1594664e1e83c72735acd279d26
+ '[' '!' 14 -eq 14 ']'
+ REPO=api
+ SRC_BRANCH=release-1.10
+ DST_BRANCH=release-1.10
+ DEPS=apimachinery:release-1.10
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/api
+ 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=6b64246e2588d1594664e1e83c72735acd279d26
+ 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 9273ee02527c608cecc74969b3e489f5dba686da
+ 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 '!=' 6b64246e2588d1594664e1e83c72735acd279d26 ']'
+ echo 'Skipping sync because upstream/release-1.10 at 6b64246e2588d1594664e1e83c72735acd279d26 did not change since last sync.'
Skipping sync because upstream/release-1.10 at 6b64246e2588d1594664e1e83c72735acd279d26 did not change since last sync.
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.10
++ git rev-parse HEAD
+ LAST_HEAD=12444147eb1150aa5c80d2aae532cbc5b7be73d0
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-api-release-1.10.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-api-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-api-release-1.10.sh --dependencies apimachinery:release-1.10 --mapping-output-file '../tag-api-{{.Tag}}-mapping' -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
+ '[' 12444147eb1150aa5c80d2aae532cbc5b7be73d0 '!=' 12444147eb1150aa5c80d2aae532cbc5b7be73d0 ']'
+ git checkout release-1.10
Already on 'release-1.10'
Your branch is up-to-date with 'origin/release-1.10'.
[27 Sep 18 23:19 UTC]: Successfully constructed release-1.10
[27 Sep 18 23:19 UTC]: /publish_scripts/construct.sh api release-1.11 release-1.11 apimachinery:release-1.11 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/api kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 50ea2c8ec8368591869faf635cec41244d475cd0
+ '[' '!' 14 -eq 14 ']'
+ REPO=api
+ SRC_BRANCH=release-1.11
+ DST_BRANCH=release-1.11
+ DEPS=apimachinery:release-1.11
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/api
+ 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=50ea2c8ec8368591869faf635cec41244d475cd0
+ 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 12444147eb1150aa5c80d2aae532cbc5b7be73d0
+ 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
+ echo 'Fetching upstream changes.'
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=50ea2c8ec8368591869faf635cec41244d475cd0
Skipping sync because upstream/release-1.11 at 50ea2c8ec8368591869faf635cec41244d475cd0 did not change since last sync.
+ '[' 50ea2c8ec8368591869faf635cec41244d475cd0 '!=' 50ea2c8ec8368591869faf635cec41244d475cd0 ']'
+ echo 'Skipping sync because upstream/release-1.11 at 50ea2c8ec8368591869faf635cec41244d475cd0 did not change since last sync.'
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-1.11
++ git rev-parse HEAD
+ LAST_HEAD=4e7be11eab3ffcfc1876898b8272df53785a9504
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-api-release-1.11.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-api-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-api-release-1.11.sh --dependencies apimachinery:release-1.11 --mapping-output-file '../tag-api-{{.Tag}}-mapping' -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
+ '[' 4e7be11eab3ffcfc1876898b8272df53785a9504 '!=' 4e7be11eab3ffcfc1876898b8272df53785a9504 ']'
+ git checkout release-1.11
Already on 'release-1.11'
Your branch is up-to-date with 'origin/release-1.11'.
[27 Sep 18 23:19 UTC]: Successfully constructed release-1.11
[27 Sep 18 23:19 UTC]: /publish_scripts/construct.sh api release-1.12 release-1.12 apimachinery:release-1.12 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/api kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 0ed33881dc4355495f623c6f22e7dd0b7632b7c0
+ '[' '!' 14 -eq 14 ']'
+ REPO=api
+ SRC_BRANCH=release-1.12
+ DST_BRANCH=release-1.12
+ DEPS=apimachinery:release-1.12
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/api
+ 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=0ed33881dc4355495f623c6f22e7dd0b7632b7c0
+ 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.'
+ 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 4e7be11eab3ffcfc1876898b8272df53785a9504
+ 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=30fae457d593d04783223d60c7d6c804e60cab7e
+ '[' 30fae457d593d04783223d60c7d6c804e60cab7e '!=' 0ed33881dc4355495f623c6f22e7dd0b7632b7c0 ']'
+ echo 'Upstream branch upstream/release-1.12 moved from '\''0ed33881dc4355495f623c6f22e7dd0b7632b7c0'\'' to '\''30fae457d593d04783223d60c7d6c804e60cab7e'\''. We have to sync.'
Upstream branch upstream/release-1.12 moved from '0ed33881dc4355495f623c6f22e7dd0b7632b7c0' to '30fae457d593d04783223d60c7d6c804e60cab7e'. We have to sync.
+ sync_repo kubernetes kubernetes staging/src/k8s.io/api release-1.12 release-1.12 apimachinery: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/api
+ local src_branch=release-1.12
+ local dst_branch=release-1.12
+ local deps=apimachinery:release-1.12
+ 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
507f29373a170184d325ea007e032b686bb189ac
++ ls -1
++ wc -l
+ '[' 27 = 0 ']'
++ git rev-parse HEAD
Starting at existing release-1.12 commit 507f29373a170184d325ea007e032b686bb189ac.
+ echo 'Starting at existing release-1.12 commit 507f29373a170184d325ea007e032b686bb189ac.'
+ 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 30fae457d593d04783223d60c7d6c804e60cab7e.
+ echo 'Checked out source commit 30fae457d593d04783223d60c7d6c804e60cab7e.'
+ 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=a17f7acd6902f306308684489c05e9cc0c187863
+ '[' -z a17f7acd6902f306308684489c05e9cc0c187863 ']'
++ git-find-merge a17f7acd6902f306308684489c05e9cc0c187863 upstream/release-1.12
++ tail -1
+++ git rev-list 'a17f7acd6902f306308684489c05e9cc0c187863^1..upstream/release-1.12' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list a17f7acd6902f306308684489c05e9cc0c187863..upstream/release-1.12 --ancestry-path
+++ git rev-parse a17f7acd6902f306308684489c05e9cc0c187863
+ local k_base_merge=a17f7acd6902f306308684489c05e9cc0c187863
+ '[' -z a17f7acd6902f306308684489c05e9cc0c187863 ']'
+ git branch -f filtered-branch-base a17f7acd6902f306308684489c05e9cc0c187863
Rewriting upstream branch release-1.12 to only include commits for staging/src/k8s.io/api.
+ echo 'Rewriting upstream branch release-1.12 to only include commits for staging/src/k8s.io/api.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/api '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/api
+ 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/api -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=7914848d832b209a5f9124adb49438d9797a7a47
++ git log --first-parent --format=%H --reverse 7914848d832b209a5f9124adb49438d9797a7a47..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=507f29373a170184d325ea007e032b686bb189ac
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
+ local dst_merge_point_commit=507f29373a170184d325ea007e032b686bb189ac
+ 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
+ '[' 507f29373a170184d325ea007e032b686bb189ac '!=' 507f29373a170184d325ea007e032b686bb189ac ']'
+ '[' false = true ']'
+ fix-godeps apimachinery:release-1.12 '' k8s.io true true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=apimachinery:release-1.12
+ 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=507f29373a170184d325ea007e032b686bb189ac
+ '[' true = true ']'
+ update_full_godeps apimachinery:release-1.12 k8s.io true Kubernetes-commit
+ local deps=apimachinery:release-1.12
+ 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/api
+ 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
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/api/") or . == "k8s.io/api") | 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 apimachinery:release-1.12
+ 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: '
++ sed 's/^Kubernetes-commit: //g'
++ head -n 1
+ local k_last_kube_commit=a17f7acd6902f306308684489c05e9cc0c187863
+ '[' -z a17f7acd6902f306308684489c05e9cc0c187863 ']'
++ git-find-merge a17f7acd6902f306308684489c05e9cc0c187863 upstream-branch
++ tail -1
+++ git rev-list 'a17f7acd6902f306308684489c05e9cc0c187863^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list a17f7acd6902f306308684489c05e9cc0c187863..upstream-branch --ancestry-path
+++ git rev-parse a17f7acd6902f306308684489c05e9cc0c187863
+ local k_last_kube_merge=a17f7acd6902f306308684489c05e9cc0c187863
+ local dep_count=1
+ (( i=0 ))
+ (( i<1 ))
+ local dep=apimachinery
+ local branch=release-1.12
+ echo 'Looking up which commit in the release-1.12 branch of k8s.io/apimachinery corresponds to k8s.io/kubernetes commit a17f7acd6902f306308684489c05e9cc0c187863.'
+ local k_commit=
+ local dep_commit=
Looking up which commit in the release-1.12 branch of k8s.io/apimachinery corresponds to k8s.io/kubernetes commit a17f7acd6902f306308684489c05e9cc0c187863.
+ read k_commit dep_commit
++ look -b a17f7acd6902f306308684489c05e9cc0c187863 ../kube-commits-apimachinery-release-1.12
+ '[' -z 6dd46049f39503a1fc8d65de4bd566829e95faff ']'
+ pushd ../apimachinery
+ echo 'Checking out k8s.io/apimachinery to 6dd46049f39503a1fc8d65de4bd566829e95faff'
Checking out k8s.io/apimachinery to 6dd46049f39503a1fc8d65de4bd566829e95faff
+ git checkout -q 6dd46049f39503a1fc8d65de4bd566829e95faff
+ popd
+ (( i++ ))
+ (( i<1 ))
+ 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.12 '!=' 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.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
+ return 0
+ git diff --exit-code 507f29373a170184d325ea007e032b686bb189ac
Remove redundant godep commits on-top of 507f29373a170184d325ea007e032b686bb189ac.
+ echo 'Remove redundant godep commits on-top of 507f29373a170184d325ea007e032b686bb189ac.'
+ git reset --soft -q 507f29373a170184d325ea007e032b686bb189ac
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/api
+ local repo=api
++ git log --oneline --first-parent --merges
++ head -n 1
+ '[' -n 'b9bd491 Merge remote-tracking branch '\''origin/master'\'' into release-1.12' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-api-release-1.12'
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-api-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=507f29373a170184d325ea007e032b686bb189ac
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-api-release-1.12.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-api-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-api-release-1.12.sh --dependencies apimachinery:release-1.12 --mapping-output-file '../tag-api-{{.Tag}}-mapping' -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 "release-1.12" at 507f29373a170184d325ea007e032b686bb189ac because "kubernetes-1.12.0" seems to be relevant.
Writing source->dest hash mapping to "../tag-api-kubernetes-1.12.0-mapping"
Checking that Godeps.json points to the actual tags in apimachinery.
Checking out branch tag commit 1b7003d0d679cdd8fa4121a3304319ec4c6139f2.
Bumping k8s.io/apimachinery in Godeps.json from "f5b6853bd76029f599270fd9584f69a8469f0d8c" to kubernetes-1.12.0: "705814234c8085247e99946887b0fbbd801efa08".
Adding extra commit fixing dependencies to point to kubernetes-1.12.0 tags.
Tagging 0e0cd9538af802d49d76d37848058f2323c34604 as "kubernetes-1.12.0".
Writing source->dest hash mapping to "../tag-api-kubernetes-1.12.1-beta.0-mapping"
Checking that Godeps.json points to the actual tags in apimachinery.
Checking out branch tag commit 1b7003d0d679cdd8fa4121a3304319ec4c6139f2.
Bumping k8s.io/apimachinery in Godeps.json from "f5b6853bd76029f599270fd9584f69a8469f0d8c" to kubernetes-1.12.1-beta.0: "705814234c8085247e99946887b0fbbd801efa08".
Adding extra commit fixing dependencies to point to kubernetes-1.12.1-beta.0 tags.
Tagging 15c5d6d5e6a62992db03bceeceaaa06f2de11afe as "kubernetes-1.12.1-beta.0".
++ git rev-parse release-1.12
+ '[' 507f29373a170184d325ea007e032b686bb189ac '!=' 507f29373a170184d325ea007e032b686bb189ac ']'
+ git checkout release-1.12
Previous HEAD position was 15c5d6d... Fix Godeps.json to point to kubernetes-1.12.1-beta.0 tags
Switched to branch 'release-1.12'
Your branch is up-to-date with 'origin/release-1.12'.
[27 Sep 18 23:21 UTC]: Successfully constructed release-1.12
[27 Sep 18 23:21 UTC]: Successfully ensured /go-workspace/src/k8s.io/client-go exists
[27 Sep 18 23:21 UTC]: /bin/bash -c "git tag | xargs git tag -d >/dev/null"
[27 Sep 18 23:21 UTC]: /publish_scripts/construct.sh client-go master master apimachinery:master,api:master /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/client-go kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 34860dafe2d86a98efe9065754b722095f24c813
+ '[' '!' 14 -eq 14 ']'
+ REPO=client-go
+ SRC_BRANCH=master
+ DST_BRANCH=master
+ DEPS=apimachinery:master,api:master
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/client-go
+ 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=34860dafe2d86a98efe9065754b722095f24c813
+ 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 087039522ddde9317ecf61500c4ebe598e9f69cb
+ 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=1636fed8c55701a8c736c3ea3442b673c93f84c9
+ '[' 1636fed8c55701a8c736c3ea3442b673c93f84c9 '!=' 34860dafe2d86a98efe9065754b722095f24c813 ']'
+ echo 'Upstream branch upstream/master moved from '\''34860dafe2d86a98efe9065754b722095f24c813'\'' to '\''1636fed8c55701a8c736c3ea3442b673c93f84c9'\''. We have to sync.'
Upstream branch upstream/master moved from '34860dafe2d86a98efe9065754b722095f24c813' to '1636fed8c55701a8c736c3ea3442b673c93f84c9'. We have to sync.
+ sync_repo kubernetes kubernetes staging/src/k8s.io/client-go master master apimachinery:master,api: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/client-go
+ local src_branch=master
+ local dst_branch=master
+ local deps=apimachinery:master,api:master
+ 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
c49eef9ec85d226da87b0284e1f358a6d341110e
++ ls -1
++ wc -l
+ '[' 27 = 0 ']'
++ git rev-parse HEAD
Starting at existing master commit c49eef9ec85d226da87b0284e1f358a6d341110e.
+ echo 'Starting at existing master commit c49eef9ec85d226da87b0284e1f358a6d341110e.'
+ 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
+ echo 'Checked out source commit 1636fed8c55701a8c736c3ea3442b673c93f84c9.'
+ git checkout -q upstream-branch -b filtered-branch
Checked out source commit 1636fed8c55701a8c736c3ea3442b673c93f84c9.
+ 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=66b956e93b4d6adb44251fb925b8c41344f929fd
+ '[' -z 66b956e93b4d6adb44251fb925b8c41344f929fd ']'
++ git-find-merge 66b956e93b4d6adb44251fb925b8c41344f929fd upstream/master
++ tail -1
+++ git rev-list '66b956e93b4d6adb44251fb925b8c41344f929fd^1..upstream/master' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 66b956e93b4d6adb44251fb925b8c41344f929fd..upstream/master --ancestry-path
+++ git rev-parse 66b956e93b4d6adb44251fb925b8c41344f929fd
+ local k_base_merge=66b956e93b4d6adb44251fb925b8c41344f929fd
+ '[' -z 66b956e93b4d6adb44251fb925b8c41344f929fd ']'
+ git branch -f filtered-branch-base 66b956e93b4d6adb44251fb925b8c41344f929fd
Rewriting upstream branch master to only include commits for staging/src/k8s.io/client-go.
+ echo 'Rewriting upstream branch master to only include commits for staging/src/k8s.io/client-go.'
+ filter-branch Kubernetes-commit staging/src/k8s.io/client-go '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/client-go
+ local 'recursive_delete_pattern=BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ echo 'Running git filter-branch ...'
+ local index_filter=
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/client-go -- filtered-branch filtered-branch-base
++ git rev-parse filtered-branch-base
+ local f_base_commit=6d7ec17ec7aa5886e52355a19602392d19a79021
++ git log --first-parent --format=%H --reverse 6d7ec17ec7aa5886e52355a19602392d19a79021..HEAD
Checking out branch master.
+ f_mainline_commits=
+ echo 'Checking out branch master.'
+ git checkout -q 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=c49eef9ec85d226da87b0284e1f358a6d341110e
+ local k_pending_merge_commit=
+ local dst_needs_godeps_update=false
++ git rev-parse HEAD
Fixing up godeps after a complete sync
+ local dst_merge_point_commit=c49eef9ec85d226da87b0284e1f358a6d341110e
+ 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'
++ git rev-parse HEAD
+ '[' c49eef9ec85d226da87b0284e1f358a6d341110e '!=' c49eef9ec85d226da87b0284e1f358a6d341110e ']'
+ '[' false = true ']'
+ fix-godeps apimachinery:master,api:master '' k8s.io true true false Kubernetes-commit 'BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml'
+ '[' '' = true ']'
+ local deps=apimachinery:master,api:master
+ 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=c49eef9ec85d226da87b0284e1f358a6d341110e
+ '[' true = true ']'
+ update_full_godeps apimachinery:master,api:master k8s.io true Kubernetes-commit
+ local deps=apimachinery:master,api:master
+ local base_package=k8s.io
+ local is_library=true
+ local commit_msg_tag=Kubernetes-commit
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
Removing k8s.io/* dependencies from Godeps.json
+ for d in '$../*'
+ '[' '!' -d '$../*' ']'
+ continue
+ '[' '!' -f Godeps/Godeps.json ']'
+ echo 'Removing k8s.io/* dependencies from Godeps.json'
+ local dep=
+ local branch=
+ local depbranch=
++ basename /go-workspace/src/k8s.io/client-go
+ 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
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ indent-godeps
+ unexpand --first-only --tabs=2
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/api/") or . == "k8s.io/api") | not))' Godeps/Godeps.json
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ for depbranch in '${deps//,/ }' '$(basename "${PWD}")'
+ IFS=:
+ read dep branch
+ jq '.Deps |= map(select(.ImportPath | (startswith("k8s.io/client-go/") or . == "k8s.io/client-go") | 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 apimachinery:master,api:master
+ 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
++ grep '^Kubernetes-commit: '
++ git log --format=%B HEAD
++ head -n 1
++ sed 's/^Kubernetes-commit: //g'
+ local k_last_kube_commit=66b956e93b4d6adb44251fb925b8c41344f929fd
+ '[' -z 66b956e93b4d6adb44251fb925b8c41344f929fd ']'
++ git-find-merge 66b956e93b4d6adb44251fb925b8c41344f929fd upstream-branch
++ tail -1
+++ git rev-list '66b956e93b4d6adb44251fb925b8c41344f929fd^1..upstream-branch' --first-parent
++ awk 'NR==FNR{a[$1]++;next} a[$1] ' /dev/fd/63 /dev/fd/62
+++ git rev-list 66b956e93b4d6adb44251fb925b8c41344f929fd..upstream-branch --ancestry-path
+++ git rev-parse 66b956e93b4d6adb44251fb925b8c41344f929fd
Looking up which commit in the master branch of k8s.io/apimachinery corresponds to k8s.io/kubernetes commit 66b956e93b4d6adb44251fb925b8c41344f929fd.
+ local k_last_kube_merge=66b956e93b4d6adb44251fb925b8c41344f929fd
+ local dep_count=2
+ (( i=0 ))
+ (( i<2 ))
+ local dep=apimachinery
+ local branch=master
+ echo 'Looking up which commit in the master branch of k8s.io/apimachinery corresponds to k8s.io/kubernetes commit 66b956e93b4d6adb44251fb925b8c41344f929fd.'
+ local k_commit=
+ local dep_commit=
+ read k_commit dep_commit
++ look -b 66b956e93b4d6adb44251fb925b8c41344f929fd ../kube-commits-apimachinery-master
Checking out k8s.io/apimachinery to 18b50c81aee7a3efd24f37d0510ea2e19411c69c
+ '[' -z 18b50c81aee7a3efd24f37d0510ea2e19411c69c ']'
+ pushd ../apimachinery
+ echo 'Checking out k8s.io/apimachinery to 18b50c81aee7a3efd24f37d0510ea2e19411c69c'
+ git checkout -q 18b50c81aee7a3efd24f37d0510ea2e19411c69c
+ popd
+ (( i++ ))
+ (( i<2 ))
+ local dep=api
+ local branch=master
+ echo 'Looking up which commit in the master branch of k8s.io/api corresponds to k8s.io/kubernetes commit 66b956e93b4d6adb44251fb925b8c41344f929fd.'
+ local k_commit=
+ local dep_commit=
Looking up which commit in the master branch of k8s.io/api corresponds to k8s.io/kubernetes commit 66b956e93b4d6adb44251fb925b8c41344f929fd.
+ read k_commit dep_commit
++ look -b 66b956e93b4d6adb44251fb925b8c41344f929fd ../kube-commits-api-master
+ '[' -z a191abe0b71e00ce4cde58af8002aa4c1a8bb068 ']'
+ pushd ../api
Checking out k8s.io/api to a191abe0b71e00ce4cde58af8002aa4c1a8bb068
+ echo 'Checking out k8s.io/api to a191abe0b71e00ce4cde58af8002aa4c1a8bb068'
+ git checkout -q a191abe0b71e00ce4cde58af8002aa4c1a8bb068
+ popd
+ (( i++ ))
+ (( i<2 ))
+ 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
+ unexpand --first-only --tabs=2
+ jq 'del(.Deps[].Comment)' Godeps/Godeps.json
+ mv Godeps/Godeps.json.clean Godeps/Godeps.json
+ '[' true = true ']'
++ git rev-parse --abbrev-ref HEAD
Removing k8s.io/*, gofuzz, go-openapi and glog from vendor/ because this is a library.
+ '[' 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
+ 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
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 c49eef9ec85d226da87b0284e1f358a6d341110e
Remove redundant godep commits on-top of c49eef9ec85d226da87b0284e1f358a6d341110e.
+ echo 'Remove redundant godep commits on-top of c49eef9ec85d226da87b0284e1f358a6d341110e.'
+ git reset --soft -q c49eef9ec85d226da87b0284e1f358a6d341110e
+ ensure-clean-working-dir
+ git diff HEAD --exit-code
++ basename /go-workspace/src/k8s.io/client-go
+ local repo=client-go
++ git log --oneline --first-parent --merges
++ head -n 1
Writing k8s.io/kubernetes commit lookup table to ../kube-commits-client-go-master
+ '[' -n 'c49eef9 Merge pull request #466 from nikhita/release-9' ']'
+ echo 'Writing k8s.io/kubernetes commit lookup table to ../kube-commits-client-go-master'
++ sed 's/^./\L\u&/'
++ echo kubernetes
+ /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=c49eef9ec85d226da87b0284e1f358a6d341110e
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-client-go-master.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-client-go-master.sh
+ '[' -z '' ']'
++ echo kubernetes
++ sed 's/^./\L\u&/'
++ echo kubernetes
+ /sync-tags --prefix kubernetes- --commit-message-tag Kubernetes-commit --source-remote upstream --source-branch master --push-script ../push-tags-client-go-master.sh --dependencies apimachinery:master,api:master --mapping-output-file '../tag-client-go-{{.Tag}}-mapping' -alsologtostderr ''
Removing all local copies of origin and upstream tags.
Fetching tags from remote "upstream".
Fetching tags from remote "origin".
++ git rev-parse master
+ '[' c49eef9ec85d226da87b0284e1f358a6d341110e '!=' c49eef9ec85d226da87b0284e1f358a6d341110e ']'
+ git checkout master
Already on 'master'
Your branch is up-to-date with 'origin/master'.
[27 Sep 18 23:27 UTC]: Successfully constructed master
[27 Sep 18 23:27 UTC]: /publish_scripts/construct.sh client-go release-1.9 release-6.0 apimachinery:release-1.9,api:release-1.9 /go-workspace/src/k8s.io/kubernetes/.git staging/src/k8s.io/client-go kubernetes kubernetes k8s.io true "BUILD */BUILD BUILD.bazel */BUILD.bazel Gopkg.toml" 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ '[' '!' 14 -eq 14 ']'
+ REPO=client-go
+ SRC_BRANCH=release-1.9
+ DST_BRANCH=release-6.0
+ DEPS=apimachinery:release-1.9,api:release-1.9
+ REQUIRED=
+ SOURCE_REMOTE=/go-workspace/src/k8s.io/kubernetes/.git
+ SUBDIR=staging/src/k8s.io/client-go
+ 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=19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ 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 c49eef9ec85d226da87b0284e1f358a6d341110e
+ git branch -D release-6.0
+ git remote set-head origin -d
+ git rev-parse origin/release-6.0
Switching to origin/release-6.0.
+ echo 'Switching to origin/release-6.0.'
+ git branch -f release-6.0 origin/release-6.0
+ git checkout -q release-6.0
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
Skipping sync because upstream/release-1.9 at 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 did not change since last sync.
+ UPSTREAM_HASH=19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3
+ '[' 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 '!=' 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 ']'
+ echo 'Skipping sync because upstream/release-1.9 at 19d4673aeb18ea2bfcbe187e3e2f0fc8dcde02f3 did not change since last sync.'
++ git rev-parse --abbrev-ref HEAD
+ LAST_BRANCH=release-6.0
++ git rev-parse HEAD
+ LAST_HEAD=115d23201cc1aa2260c19f8f6bb79d400d123dbd
+ EXTRA_ARGS=()
+ PUSH_SCRIPT=../push-tags-client-go-release-6.0.sh
+ echo '#!/bin/bash'
+ chmod +x ../push-tags-client-go-release-6.0.sh
+ '[' -z '' ']'
++ echo kubernetes