Commit Graph

1605 Commits

Author SHA1 Message Date
Kubernetes Prow Robot
d5fbc1126b Merge pull request #84471 from oomichi/move-e2e-util
Move functions from e2e/framework/util.go
2019-11-05 22:17:59 -08:00
Mike Danese
a4ca9e6c93 migrate callers to g/g/uuid 2019-11-04 23:15:29 -08:00
Kenichi Omichi
ca4c349096 Move functions from e2e/framework/util.go
- SimpleGET: Moved to ingress sub package of e2e framework
- PollURL: Moved to ingress sub package of e2e framework
- ProxyMode: Moved to service e2e test package
- ListNamespaceEvents: Moved to e2e_node test package
- NewE2ETestNodePreparer: Removed since 59533f0cd1
2019-11-01 17:39:29 +00:00
Jordan Liggitt
8d0e4a4492 Revert "move hostPID tests to common"
This reverts commit 20ac24929b.
2019-10-22 21:28:44 -04:00
Kubernetes Prow Robot
c981bce007 Merge pull request #83368 from Jefftree/move-hostpid-tests
Move hostPID tests to common
2019-10-21 17:09:22 -07:00
Kubernetes Prow Robot
edfffffdac Merge pull request #82656 from odinuge/hugetlb-drop-caches
Compact memory before requesting huge pages
2019-10-18 12:37:08 -07:00
Timothy St. Clair
97055841b1 Audit of test/* OWNERS files 2019-10-10 15:52:51 -05:00
Kubernetes Prow Robot
e856613dd5 Merge pull request #83211 from Jefftree/move_privilege_test
Move privilege e2e test to common
2019-10-08 10:57:23 -07:00
Kubernetes Prow Robot
cb177dc6a1 Merge pull request #83570 from matthyx/startup_probe_test
Mark startupProbe test as NodeAlphaFeature and fix podClient
2019-10-07 23:36:18 -07:00
Kubernetes Prow Robot
c4108c9b4a Merge pull request #83090 from Klaven/rm_validator_errors
Removal of kubernetes error dependencies
2019-10-07 23:35:25 -07:00
Matthias Bertschy
84d0951969 Mark startupProbe test as NodeAlphaFeature and fix podClient instanciation 2019-10-07 16:13:06 +02:00
Jefftree
40976754b5 Move privilege e2e test to common 2019-10-04 09:54:52 -07:00
Jefftree
20ac24929b move hostPID tests to common 2019-10-02 13:36:08 -07:00
Kubernetes Prow Robot
7066107ae3 Merge pull request #83117 from zouyee/valid
using short flags instead of validate
2019-09-29 16:47:37 -07:00
Marek Counts
114d7855f3 Removal of kubernetes error dependancies
removed kubernetes error deps
2019-09-28 15:09:48 +00:00
Kubernetes Prow Robot
f4ff0e37d9 Merge pull request #78418 from mysunshine92/fix-typo-e2e-node
fix typos  in /test/e2e_node
2019-09-25 13:50:06 -07:00
zouyee
11746bcc19 using short flags instead with validate
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-25 23:08:50 +08:00
Dan Winship
71b02dd422 Fix up e2enode.GetReadySchedulableNodes, replace many uses of framework.GetReadySchedulableNodesOrDie
Remove the "OrDie" from the name (since it doesn't "or die") and add
an extra check that there is at least 1 node available, since many
callers already did that themselves, and many others should have.
2019-09-24 13:03:39 -04:00
Kubernetes Prow Robot
699b1777cc Merge pull request #82108 from oomichi/circular-metrics
Copy PrettyPrintJSON to core framework
2019-09-23 17:31:24 -07:00
Kubernetes Prow Robot
c9c01fb902 Merge pull request #82654 from odinuge/test-timeout
Fix pre pull of images in DiskPressure tests
2019-09-23 12:27:25 -07:00
Kenichi Omichi
7c23ba1b34 Copy PrettyPrintJSON to core framework
PrettyPrintJSON is most used e2emetrics function and that doesn't seem
specific for metrics. The implementation itself is generic, so it is
nice to move it to core framework for avoiding circular dependency.
2019-09-23 18:10:50 +00:00
Kubernetes Prow Robot
946df1a914 Merge pull request #81932 from palnabarun/fix-staticcheck-tests-e2e_node
Fixes static check failures in test/e2e_node/*
2019-09-20 22:55:37 -07:00
Kubernetes Prow Robot
3a55875465 Merge pull request #81512 from odinuge/preemptible-node-tests
Add support for preemptible instances in node-e2e
2019-09-20 22:55:24 -07:00
Kubernetes Prow Robot
07e26d9bfc Merge pull request #82922 from ZP-AlwaysWin/dev08
Use framework.ExpectNotEqual()
2019-09-20 20:07:40 -07:00
ZP-AlwaysWin
b77462eddd Use framework.ExpectNotEqual() 2019-09-20 16:09:44 +08:00
Kubernetes Prow Robot
895642f9c3 Merge pull request #82742 from whypro/flagparse
Move flag.Parse() from init() to TestMain()
2019-09-20 00:09:12 -07:00
Odin Ugedal
ec605eb300 Fix pre pull of images in DiskPressure tests
This waits for DiskPressure to no longer exist before pre pulling images
after a DiskPressure test. Otherwise we risk to pull images, while
kubelet evicts/removes them.
2019-09-19 12:24:17 +02:00
Odin Ugedal
b1308ed70a Compact memory before requesting huge pages
Compact memory to make bigger contiguous blocks of memory available
before allocating huge pages.

https://www.kernel.org/doc/Documentation/sysctl/vm.txt
2019-09-17 17:04:01 +02:00
whypro
69f48d87a4 Move flag parse to main func from init() 2019-09-17 19:30:24 +08:00
zouyee
efcf4f4da2 update process name to fix pod infra containers oom-score-adj should be -998 and best effort container's should be 1000
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-17 11:25:38 +08:00
Nabarun Pal
83c443e728 Fixes static check failures in test/e2e_node/* 2019-09-14 00:39:45 +05:30
David Zhu
f15cc60957 Update golang scientific notation using hack/update-gofmt.sh 2019-09-12 18:05:49 -07:00
Kubernetes Prow Robot
5823cfce76 Merge pull request #81974 from carlory/fix-test-01
clean up test code
2019-09-10 23:49:21 -07:00
Kubernetes Prow Robot
ab73a018de Merge pull request #82018 from odinuge/prepull-images-after-tests
Add pre pull of e2e images after DiskPressure test
2019-09-06 13:49:20 -07:00
carlory
d1290ffdef clean up test code 2019-09-05 23:44:19 +08:00
zouyee
70b93eff37 using const instead
Signed-off-by: Zou Nengren <zouyee1989@gmail.com>
2019-09-02 09:30:51 +08:00
Matthias Bertschy
a042a4b0ee startupProbe: make update 2019-08-30 00:42:43 +02:00
Matthias Bertschy
1a08ea5984 startupProbe: Test changes 2019-08-30 00:40:26 +02:00
Odin Ugedal
b9071991e3 Add pre pull of e2e images after DiskPressure test
The "system_node_critical_test" causes DiskPressure on the node,
resulting in eviction of some of the pre pulled images. This makes all
the resulting tests to fail, since their pod spec use PullPolicy: Never

The PrePullImages is now inside a defer, so it will be executed even tho
the assertions inside the "AfterEach" fail.
2019-08-29 15:53:05 +02:00
Khaled Henidak(Kal)
93c06821e6 Phase 2: service and endpoint processing 2019-08-28 15:59:43 +00:00
Kubernetes Prow Robot
ee73d27d51 Merge pull request #81727 from odinuge/flaky-hugepage-test
Fix flaky hugepages tests by decreasing page count
2019-08-26 20:54:52 -07:00
Kenichi Omichi
c8e0c94a8a Move PrintPerfData to the test
PrintPerfData is called at e2e node tests and it depends on e2elog
and e2emetrics. This moves the function to the place which calls
the function for removing unnecessary dependencies from e2e node
subpackage.
2019-08-23 19:33:24 +00:00
Kubernetes Prow Robot
6b47754740 Merge pull request #81627 from tallclair/copy
Delete duplicate resource.Quantity.Copy()
2019-08-22 11:13:13 -07:00
Odin Ugedal
7df6a84902 Fix flaky hugepages tests by decreasing page count
If requesting an substantial amount of huge page memory
(like the tests), it is recommended to to it as early
after boot as possible, or by using the kernel cmd line.
2019-08-21 17:59:56 +02:00
Tim Allclair
49f50484b8 Delete duplicate resource.Quantity.Copy() 2019-08-19 17:23:14 -07:00
Odin Ugedal
4f31d322a4 Fix GCE typo in test output 2019-08-17 13:11:19 +02:00
Odin Ugedal
e20c2b1f32 Add support for preemptible instances in node-e2e
Preemptible instances are cheaper, and the small chanse of a vm being
killed doesn't matter when running during development. This is a
tradeoff the user should be able to decide on.

More info here:
https://cloud.google.com/compute/docs/instances/preemptible

The default setting is false, so unless setting
PREEMPTIBLE_INSTANCES=true, everything will behave as before.

Signed-off-by: Odin Ugedal <odin@ugedal.com>
2019-08-17 13:09:45 +02:00
Kubernetes Prow Robot
fec7d35f26 Merge pull request #81391 from oomichi/cleanup-GetGPUDevicePluginImage
Move GetGPUDevicePluginImage to the test
2019-08-15 07:20:48 -07:00
Kenichi Omichi
2efa60b849 Move GetGPUDevicePluginImage to the test
GetGPUDevicePluginImage() was called in some e2e node test only.
So it is not worth keeping the function as a part of e2e test
framework. This moves GetGPUDevicePluginImage() to the e2e node
test for code cleanup.
2019-08-14 00:01:50 +00:00
draveness
495faa22db feat: cleanup pod critical pod annotations feature 2019-08-09 08:41:23 +08:00