Migrate upgrade tests to the new framework#10216
Conversation
Codecov Report
@@ Coverage Diff @@
## master #10216 +/- ##
==========================================
+ Coverage 87.99% 88.01% +0.01%
==========================================
Files 187 187
Lines 8808 8808
==========================================
+ Hits 7751 7752 +1
- Misses 815 816 +1
+ Partials 242 240 -2
Continue to review full report at Codecov.
|
a1ff592 to
d33a694
Compare
f81894e to
4e5454a
Compare
cdbb0a4 to
28d884c
Compare
cardil
left a comment
There was a problem hiding this comment.
Looks quite well. I found some minor issues.
|
/retest |
1 similar comment
|
/retest |
162bead to
cb68163
Compare
|
/retest |
1 similar comment
|
/retest |
|
The error in |
* Convert AssertAutoscaleUpToNumPods and inner functions to helper
functions that
return error instead of calling t.Fatal to fail the current test.
Avoid using *testing.T
so that these functions can be reused outside of tests or span
multiple tests.
* The autoscaler helper functions are used in upgrade tests where
"setup" and
"verify" phases run within different tests. Pull test.EnsureTearDown
from SetupSvc to ensure
that a kservice is not destroyed at the end of the first phase
("setup") but
remains active until "verify" phase. This is ensured by calling
EnsureTearDown later in the
"verify" phase.
* Adjust Bash scripts to avoid unbound variable errors during upgrade
tests exexution (due
to using -u flag by the upgrade framework).
That's for easy reuse in other repos such as knative/operator
* autoscale and prober tests will fail if ingress is replaced during upgrade
f6b2ac7 to
429b845
Compare
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cardil, mgencur, nak3 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel I believe the hold label from Markus is redundant at this point. The upgrade tests were fixed some time ago. |
|
/retest |
Fixes #9137
Proposed Changes
Release Note