<commit_before>#!/bin/bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail
set -o xtrace

readonly testinfra="$(dirname "${0}")/.."

export FEDERATION="true"
export PROJECT="${PROJECT:-k8s-jkns-pr-bldr-e2e-gce-fdrtn}"
export KUBE_REGISTRY="gcr.io/k8s-jkns-pr-bldr-e2e-gce-fdrtn"
export KUBERNETES_PROVIDER="gce"

# Build federation images. This doesn't build kubernetes images.
export JENKINS_USE_LOCAL_BINARIES=y
./hack/jenkins/build-federation.sh

# Recycle control plane.
# We only recycle federation control plane in each run, we don't
# want to recycle the clusters, it's too slow.
# This is accomplished by not setting FEDERATION_CLUSTERS env
# var or setting it to empty string. We set it to empty string
# to explicitly call it out.
export FEDERATION_CLUSTERS=""

# Federation control plane options.
export DNS_ZONE_NAME="pr-bldr.test-f8n.k8s.io."
export FEDERATIONS_DOMAIN_MAP="federation=pr-bldr.test-f8n.k8s.io"<commit_msg>Revert to building the entire kubernetes release in the federation pull job.<commit_after>#!/bin/bash
# Copyright 2016 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

set -o errexit
set -o nounset
set -o pipefail
set -o xtrace

readonly testinfra="$(dirname "${0}")/.."

export FEDERATION="true"
export PROJECT="${PROJECT:-k8s-jkns-pr-bldr-e2e-gce-fdrtn}"
export KUBE_REGISTRY="gcr.io/k8s-jkns-pr-bldr-e2e-gce-fdrtn"
export KUBERNETES_PROVIDER="gce"

# Build a kubernetes release which also builds the federation
# images.
# We tried building only the federation images using
# ./hack/jenkins/build-federation.sh, but that led to a lot of
# complications with the release and deployment infrastructure
# so we reverted back to building the entire kubernetes release.
export KUBE_GCS_RELEASE_BUCKET="${KUBE_GCS_RELEASE_BUCKET:-kubernetes-release-pull}"
export KUBE_GCS_RELEASE_SUFFIX="/${JOB_NAME}"
export KUBE_GCS_UPDATE_LATEST=n
export JENKINS_USE_LOCAL_BINARIES=y
export KUBE_FASTBUILD=true
./hack/jenkins/build.sh

# Recycle control plane.
# We only recycle federation control plane in each run, we don't
# want to recycle the clusters, it's too slow.
# This is accomplished by not setting FEDERATION_CLUSTERS env
# var or setting it to empty string. We set it to empty string
# to explicitly call it out.
export FEDERATION_CLUSTERS=""

# Federation control plane options.
export DNS_ZONE_NAME="pr-bldr.test-f8n.k8s.io."
export FEDERATIONS_DOMAIN_MAP="federation=pr-bldr.test-f8n.k8s.io"
{'fraction_non_alphanumeric': 0.08887630908576281, 'fraction_numerical': 0.009623549391452024, 'mean_word_length': 4.8509933774834435, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4030822', 'n_tokens_mistral': 1179, 'n_tokens_neox': 1130, 'n_words': 405}