-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor integration tests #5572
Conversation
bcee404
to
0fb9658
Compare
Codecov Report
@@ Coverage Diff @@
## main #5572 +/- ##
==========================================
- Coverage 38.35% 37.81% -0.54%
==========================================
Files 15 16 +1
Lines 3872 4152 +280
==========================================
+ Hits 1485 1570 +85
- Misses 2264 2455 +191
- Partials 123 127 +4
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
3b25901
to
2c39d87
Compare
90b08c4
to
2361e28
Compare
/werft run 👍 started the job as gitpod-build-aledbf-integration.45 |
2361e28
to
8a34e37
Compare
/werft run 👍 started the job as gitpod-build-aledbf-integration.47 |
8a34e37
to
a4d6855
Compare
/werft run 👍 started the job as gitpod-build-aledbf-integration.51 |
Overall I think this approach makes sense. I'm looking forward to see how we can filter for the labels and features once that bit is merged in the e2e testing framework. |
Agree 💯
The WIP of such feature is here kubernetes-sigs/e2e-framework#48 |
Looks like we can already make use of the labels using |
23b3ee5
to
2531b8c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 this is a big improvement. 100% agree with Chris on the pros/cons.
Note that I've made changes to the tests here that will need to be merged once it is approved. More than happy to do that if it helps.
|
||
type workspaceKey struct{} | ||
|
||
func GetComponentAPI(ctx context.Context) *integration.ComponentAPI { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/nit
Maybe 'MustGet*' variants to make the calling code a touch more explicit?
}, | ||
} | ||
|
||
uploadUrlRequest := features.New("UploadUrlRequest"). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some variability in the feature naming throughout this PR and given they can be used to filter tests we should standardise on feature naming, i.e. camelcase (or not), spaces Y/N, should they always start with the package to allow grouping, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's one the missing definitions
Yes, the idea is to merge any pending PR that changes integration tests before this one. |
e46d51f
to
fbb46e2
Compare
4f55be2
to
bd753e5
Compare
/werft run 👍 started the job as gitpod-build-aledbf-integration.81 |
36d1a99
to
bd753e5
Compare
/werft run 👍 started the job as gitpod-build-aledbf-integration.89 |
94b4b9f
to
aef5bed
Compare
/hold cancel |
/lgtm |
LGTM label has been added. Git tree hash: 987aadbdffa8a7560ddc52ca8cd771669c2d853e
|
aef5bed
to
f165e30
Compare
/lgtm |
LGTM label has been added. Git tree hash: 987aadbdffa8a7560ddc52ca8cd771669c2d853e
|
/approve no-issue |
Already green-lit and approved multiple times, and a quick glance revealed no obvious problems. Thanks! Rubber-stamping. /approve no-issue |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: corneliusludmann, csweichel, jankeromnes Associated issue requirement bypassed by: corneliusludmann, csweichel, jankeromnes The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Description
Refactor integration tests using sigs.k8s.io/e2e-framework to simplify the setup and definition and cleanup of the test cases.
Related Issue(s)
N/A
How to test
cd test && go test -v ./...
or
cd test && go test -v ./... -args -namespace <some namespace>
to use a different namespace from the current one in the kubeconfig contextRelease Notes
TODO:
timeouts per test?multiple packagesadd checks before running the tests (check gitpod pods are running)improve cleanup (closer)