mirror of https://github.com/knative/caching.git
Auto-update dependencies (#109)
Produced via: `dep ensure -update knative.dev/test-infra knative.dev/pkg` /assign mattmoor
This commit is contained in:
parent
fac9d81895
commit
81d9b22cac
|
@ -927,7 +927,7 @@
|
|||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:df09f3d61be3d2702987a5079c79c652bf02428be6c7836f9865081039fcb86a"
|
||||
digest = "1:d772e1e5cb8dee04f869b516c450bb12ca799de9add802a07c49c8c8cf0907ad"
|
||||
name = "knative.dev/pkg"
|
||||
packages = [
|
||||
"apis",
|
||||
|
@ -946,7 +946,7 @@
|
|||
"metrics/metricskey",
|
||||
]
|
||||
pruneopts = "T"
|
||||
revision = "25b6d3af4d224e425b8a28cc9e256819eca2e959"
|
||||
revision = "d02c80dc625667d793a732b019503197913fa756"
|
||||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
|
@ -957,7 +957,7 @@
|
|||
"tools/dep-collector",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "0496d5ca277c0826349264be609cb0bdf8ad5b64"
|
||||
revision = "e253fe07d282bd3d80bd9dd9f439fa550fbb9365"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:8730e0150dfb2b7e173890c8b9868e7a273082ef8e39f4940e3506a481cf895c"
|
||||
|
|
|
@ -1251,14 +1251,14 @@
|
|||
|
||||
[[projects]]
|
||||
branch = "master"
|
||||
digest = "1:2226e46ebce37abefef1e100a1c77cdbbff6e76bfe0f99b061abb5bdf1849a3c"
|
||||
digest = "1:d65a0f4c8458b9720f97b17d6d04c9efe341298f1c3f6c37e124a6c83c716668"
|
||||
name = "knative.dev/test-infra"
|
||||
packages = [
|
||||
"scripts",
|
||||
"tools/dep-collector",
|
||||
]
|
||||
pruneopts = "UT"
|
||||
revision = "cc2b86828e9e7d4992029981667f9cc9a69acd96"
|
||||
revision = "0496d5ca277c0826349264be609cb0bdf8ad5b64"
|
||||
|
||||
[[projects]]
|
||||
digest = "1:8730e0150dfb2b7e173890c8b9868e7a273082ef8e39f4940e3506a481cf895c"
|
||||
|
|
|
@ -22,8 +22,11 @@ import (
|
|||
"fmt"
|
||||
"io/ioutil"
|
||||
"net/http"
|
||||
"os"
|
||||
"os/user"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"regexp"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
"knative.dev/pkg/test/webhook-apicoverage/coveragecalculator"
|
||||
|
@ -54,6 +57,10 @@ const (
|
|||
WebhookResourcePercentageCoverageEndPoint = "https://%s:443" + webhook.ResourcePercentageCoverageEndPoint
|
||||
)
|
||||
|
||||
var (
|
||||
jUnitFileRegexExpr = regexp.MustCompile(`junit_.*\.xml`)
|
||||
)
|
||||
|
||||
// GetDefaultKubePath helper method to fetch kubeconfig path.
|
||||
func GetDefaultKubePath() (string, error) {
|
||||
var (
|
||||
|
@ -229,3 +236,15 @@ func WriteResourcePercentages(outputFile string,
|
|||
|
||||
return ioutil.WriteFile(outputFile, []byte(htmlData), 0400)
|
||||
}
|
||||
|
||||
// Helper function to cleanup any existing Junit XML files.
|
||||
// This is done to ensure that we only have one Junit XML file providing the
|
||||
// API Coverage summary.
|
||||
func CleanupJunitFiles(artifactsDir string) {
|
||||
filepath.Walk(artifactsDir, func(path string, info os.FileInfo, err error) error {
|
||||
if !info.IsDir() && jUnitFileRegexExpr.MatchString(info.Name()) {
|
||||
os.Remove(path)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
|
|
@ -290,12 +290,10 @@ func (gc *GKECluster) Acquire() error {
|
|||
}
|
||||
// Creating cluster only if previous step succeeded
|
||||
if err == nil {
|
||||
log.Printf("Creating cluster %q in %q", clusterName, clusterLoc)
|
||||
log.Printf("Creating cluster %q in %q with:\n%+v", clusterName, clusterLoc, gc.Request)
|
||||
op, err = gc.operations.create(*gc.Project, clusterLoc, rb)
|
||||
if err == nil {
|
||||
if err = gc.wait(clusterLoc, op.Name, creationTimeout); err == nil {
|
||||
cluster, err = gc.operations.get(*gc.Project, clusterLoc, rb.Cluster.Name)
|
||||
}
|
||||
err = gc.wait(clusterLoc, op.Name, creationTimeout)
|
||||
}
|
||||
if err == nil { // Enable autoscaling and set limits
|
||||
arb := &container.SetNodePoolAutoscalingRequest{
|
||||
|
@ -311,6 +309,9 @@ func (gc *GKECluster) Acquire() error {
|
|||
err = gc.wait(clusterLoc, op.Name, autoscalingTimeout)
|
||||
}
|
||||
}
|
||||
if err == nil { // Get cluster at last
|
||||
cluster, err = gc.operations.get(*gc.Project, clusterLoc, rb.Cluster.Name)
|
||||
}
|
||||
}
|
||||
if err != nil {
|
||||
errMsg := fmt.Sprintf("Error during cluster creation: '%v'. ", err)
|
||||
|
|
Loading…
Reference in New Issue