Commit Graph

756 Commits

Author SHA1 Message Date
Matt Moore 640c9ed628
Auto-update dependencies (#1026)
Produced via:
  `dep ensure -update knative.dev/test-infra`
/assign n3wscott
/cc n3wscott
2020-01-31 09:41:29 -08:00
Adriano Cunha 446f2e9f2c
Use e2 VMs instead of n1 for test clusters (#1024)
* Use n2 VMs instead of n1 for test clusters

* Update unit tests that use default values
2020-01-30 16:20:28 -08:00
Adriano Cunha 5d1c02187b
Update OWNERS_ALIASES for Productivity WG (#1018) 2020-01-30 10:15:28 -08:00
Matt Moore dd62a102dd
Auto-update dependencies (#1017)
Produced via:
  `dep ensure -update knative.dev/test-infra`
/assign n3wscott
/cc n3wscott
2020-01-29 07:21:27 -08:00
Markus Thömmes 2fbb9db15c Use another semver library to support build tags properly. (#1013) 2020-01-28 07:38:26 -08:00
Matt Moore 949fbc99b5 golang format tools (#1016)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -type f -name '*.go' -print)`
  `goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party)`
/assign n3wscott
/cc n3wscott
2020-01-28 07:32:26 -08:00
Dave Protasowski 4b31f15f21
include testing helpers to fuzz our API types and perform some roundtrip testing (#1010)
* include facilities that make roundtrip testing API types possible

* include helpers for fuzzing apis.URL and status conditions
2020-01-28 06:58:26 -08:00
Chi Zhang b51ee347cb give cloud-platform scope by default (#1015) 2020-01-27 17:39:25 -08:00
Chi Zhang d6f121ffaf Escape test name before matching slack message history (#1011)
* escape test name before matching slack message history

* address comments
2020-01-27 15:03:26 -08:00
Chi Zhang 8daabb442e do not enable workload identity for perf tests GKE clusters (#1014) 2020-01-27 14:44:26 -08:00
Nicolas Lopez 4252f595d1 add retry func for reconciler (#1008)
* add retry func for reconciler

* run update_deps.sh properly

* review comments

* review comments
2020-01-27 07:22:26 -08:00
Dave Protasowski 5ff923b836 conditions were being duplicated since we broke vs. continuing (#1009)
* conditions were being duplicated since we broke vs. continuing

* pr feedback

* butter finger
2020-01-24 07:23:24 -08:00
cshou 62801f1d34 Allow to specify default exporter option when updating from ConfigMap (#1006)
* Allow to specify default exporter option when updating from ConfigMap

* renaming

* rename test
2020-01-22 15:34:23 -08:00
Matt Moore 16a2361203 Only intercept types that appear in Bindings. (#1004)
This removes the built-in types from being hard-coded, and we will now only intercept them if they are used in a Binding.
2020-01-22 12:04:24 -08:00
Dave Protasowski 4e81bc3c32 status.ConvertTo can optionally accept predicates (#1003)
the intent is to allow the inclusion of addition ConditionTypes to be copied over if a
a predicate returns true
2020-01-21 18:29:23 -08:00
Dave Protasowski 55e632ca67 add helpers to convert objects through Convertible proxies (#1002) 2020-01-21 14:25:24 -08:00
Matt Moore 96d3b8c24c Format markdown (#997)
Produced via:
  `prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github)`
/assign n3wscott
/cc n3wscott
2020-01-20 10:00:06 -08:00
Dave Protasowski cff115c2dd Refactor webhook to allow adding conversion support (#989)
* Refactor webhook to allow adding conversion support

* pr feedback

* fix memory leak

* We can use mux.Handle

* move admission integration tests to separate file
2020-01-20 09:20:05 -08:00
chaodaiG d99cc30f66 Add a junithelper for creating a junit result from command (#926)
* Add a junithelper for creating a junit result from command

* Fix typo
2020-01-17 12:57:03 -08:00
Matt Moore f609dc07e3 Auto-update dependencies (#995)
Produced via:
  `dep ensure -update knative.dev/test-infra`
/assign n3wscott
/cc n3wscott
2020-01-16 11:11:04 -08:00
Slavomir Kaslev c2a529b1b7 Fix several mishandled errors.Wrap conversions. (#992)
Fixes: e08acb95 (Remove all occurrences of github.com/pkg/errors. (#888))
2020-01-16 08:44:03 -08:00
Nima Kaviani bb0f16f214 Add default metrics backend to observability config (#994) 2020-01-14 23:08:06 -08:00
Scott Nichols 387a161d37 update the deps for which repos the pkg release eng should deal with. (#991) 2020-01-14 06:34:05 -08:00
Matt Moore b8dc5fbc6d golang format tools (#990)
Produced via:
  `gofmt -s -w $(find -path './vendor' -prune -o -path './third_party' -prune -o -type f -name '*.go' -print)`
  `goimports -w $(find -name '*.go' | grep -v vendor | grep -v third_party)`
/assign n3wscott
/cc n3wscott
2020-01-13 10:25:02 -08:00
Antoine Cotten 5e3431e561 Filter tracked sharedmain ConfigMaps based on optional label selector (#973)
* tests: Rename 'cm' vars to 'cmw' for consistency

* Filter tracked sharedmain ConfigMaps based on label selector

The ConfigMap watcher only tracks the ConfigMaps which contain the label
defined by the optional SYSTEM_RESOURCE_LABEL env var if the latter
exists.
2020-01-13 06:53:04 -08:00
Dave Protasowski f72610ea73 unit test to ensure semantic equality func is registered for apis.URL (#988) 2020-01-11 18:40:59 -08:00
Evan Anderson 8c11c24324 Add support for OpenCensus Agent as a destination for Knative metrics. (#978)
* Add support for OpenCensus Agent as a destination for Knative metrics.

* Update with comments from @mattmoor and @anniefu

* Remember to register exporter.

Fix tests.

* Fix naming per discussion with @anniefu
2020-01-10 18:42:58 -08:00
Chi Zhang e0330640f0 perf-tests cluster manager supports creating clusters in other environment (#982)
* perf-tests cluster manager supports creating clusters in other environment

* address codereview comments

* address comments
2020-01-10 11:29:57 -08:00
Dave Protasowski fb00bf88a3 Provide an semantic equality func for apis.URL (#987)
url.URL has an unexported type (UserInfo) which causes semantic
equality to panic unless we add a custom equality function
2020-01-10 10:25:57 -08:00
Scott Nichols 14387e78fb Ban importing aliased domains. (#696)
* Ban importing aliased domains,

* move import test.
2020-01-10 10:11:56 -08:00
Nghia Tran 79d67498c2 Clean up other test to use suggestions of #984 (#986)
* Clean up other test to use suggestions of #984

* Properly capitalize error message.
2020-01-09 15:55:55 -08:00
Nghia Tran bd9fe634a9 Add WithPath option to set the probe path. (#984)
* Add WithPath option to set the probe path.

* Fix PR feedbacks.

* Remove unused struct fields.

* Fix test error message.
2020-01-09 14:16:55 -08:00
Chi Zhang a8f5900e93 add myself as productivity-approvers in pkg (#983) 2020-01-09 12:05:55 -08:00
Markus Thömmes 8c62412074 Optimize locking behavior of the profiling handler. (#980)
The profiling handler is in the path of our most performance critical components (especially the activator). Taking a write-lock on each request is probably a bad idea.

Replaced the mutex with an atomic flag. Lost reads are not critical in this code path and that should be the quickest solution in terms of avoiding contention.
2020-01-08 12:35:53 -08:00
Matt Moore 8f763fa65a Format markdown (#981)
Produced via:
  `prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github)`
/assign n3wscott
/cc n3wscott
2020-01-08 07:19:53 -08:00
Scott Nichols 298f22bea6 update boilerplate to use 2020 (#979) 2020-01-07 16:04:51 -08:00
Evan Anderson e53a03271f Document the plan for metrics (#953)
* Document the plan for metrics

* Update with issue links

* Update with other @mattmoor comments.

* Address feedback from @anniefu

* Update export address since `localhost` won't work for a DaemonSet.

* Add an explicit action item to migrate Prometheus

* Fix possible (ambiguous) link vs checkbox.
2020-01-07 15:55:52 -08:00
Scott Nichols 2c145de3d5 Creating an Event interface and ReconcilerEvent type to be used in ReconcileKind (#952)
* Adding a base class to use as strong typed reconciler events.

* fmt, rename.

* support wrapped errors.

* make a custom alias for errors.Is and errors.As, use Event as an interaface.

* add context name (event) to is and as

* update based on feedback.

* fix test fail messages.

* feedback updated.

* cleanup test code.
2020-01-07 15:08:51 -08:00
Ville Aikas 7c7512aecf add ability to opt-out of bindings (#970)
* add ability to opt-out of bindings

* I guess a year changed...

* had opt-in / opt-out backwards

* add unit test for contexts, fix comment

* clarify comments

* remove Binding from method/const names since already in bindings package
2020-01-07 08:56:51 -08:00
Zhimin Xiang a43659c656 Add metrics for Knative Certificate creation count (#976) 2020-01-06 15:57:49 -08:00
Ignacio (Nacho) Cano daef119f73 adding knative_broker metrics (#944) 2020-01-06 15:21:49 -08:00
Joyce Liu 4f9e59084b Return GKECluster info in PCO (#975)
Returns gkeOps in create, get prow-cluster-operation actions to fetch the Cluster info that's just created/fetched without reading the metadata file when running in Go
2020-01-06 14:43:50 -08:00
Zhimin Xiang ffc4109d16 Bump k8s vendor to 1.16.4 (#972) 2020-01-06 13:17:50 -08:00
Zhimin Xiang daee70aa95 bump the default minimum version to 1.15 (#971) 2020-01-06 11:48:49 -08:00
capri-xiyue fa1c639c93 Add helper methods in conditon_set (#965)
* added isUnknown in condition_set

* added IsFalse for condition set

* added GetHappyCondition

* modified comments

* modified the code based on cr

* renamed the method and removed isXXX() methods

* modified comments
2020-01-06 08:00:49 -08:00
Antoine Cotten ce9dfe90d1 Fix sharedmain log messages format (#974) 2020-01-06 07:53:49 -08:00
Joyce Liu 169ef0797c Added GKE release channel support in cluster creation in cluster manager lib (#968)
* Added release channel support in cluster creation in cluster manager lib
* updated k8s beta dependency to pick up release channel API

* added unit test for the missing coverage in request_test.go
2020-01-02 11:27:42 -08:00
Matt Moore ead56ad1f3 Format markdown (#967)
Produced via:
  `prettier --write --prose-wrap=always $(find -name '*.md' | grep -v vendor | grep -v .github)`
/assign n3wscott
/cc n3wscott
2019-12-30 10:37:37 -08:00
Joyce Liu 400dfb9ff9 updated boskos client based on the latest API in k8s (#945)
* updated boskos client based on the latest API in k8s

* Added clarification comments and cleanup dead code

* Apply suggestions from code review

Co-Authored-By: Victor Agababov <vagababov@gmail.com>

* Updated test error messages in boskos_test.go

* clarification on parameters

* removed accidentally modified client/istio changes

* Fixed unit test for AcquireGKEProject

* Apply suggestions from code review

Co-Authored-By: Victor Agababov <vagababov@gmail.com>

* simplified NewClient + annotated NewClient in boskos_test.go

Co-authored-by: Victor Agababov <vagababov@gmail.com>
2019-12-29 20:19:35 -08:00
Lv Jiawei 00c3fda1d6 Update test README.md (#966)
Add flags and its explaination.
2019-12-27 11:11:32 -08:00