kcp icon indicating copy to clipboard operation
kcp copied to clipboard

🌱 e2e/apiexportendpointslice: use SharedKcpServer

Open p0lyn0mial opened this issue 2 years ago • 8 comments

Summary

it is possible to use a shared server because the scheduler skips shards annotated with experimental.core.kcp.io/unschedulable

Related issue(s)

Fixes #

p0lyn0mial avatar Feb 21 '23 15:02 p0lyn0mial

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please assign jmprusi for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

openshift-ci[bot] avatar Feb 21 '23 15:02 openshift-ci[bot]

This looks good to me. I just have a couple of points:

Can you please amend the comment here? https://github.com/kcp-dev/kcp/blob/73cc8efef729522a1dc30f1e7318559982817460/test/e2e/reconciler/apiexportendpointslice/apiexportendpointslice_test.go#L268-L270

This could be a separate test function: https://github.com/kcp-dev/kcp/blob/73cc8efef729522a1dc30f1e7318559982817460/test/e2e/reconciler/apiexportendpointslice/apiexportendpointslice_test.go#L342-L382 It was not the case previously due to the cost of setting up the private environment

fgiloux avatar Feb 22 '23 06:02 fgiloux

Updated the comment. IMO there is no need for extracting logic to a helper function. I like when tests are self-contained and self-descriptive.

p0lyn0mial avatar Feb 22 '23 10:02 p0lyn0mial

Updated the comment. IMO there is no need for extracting logic to a helper function. I like when tests are self-contained and self-descriptive.

I did not mean a helper function. I meant a completely separate test function as it is not directly related to the tests part of the same function. It is not critical, just thinking it may be nicer.

fgiloux avatar Feb 22 '23 11:02 fgiloux

I did not mean a helper function. I meant a completely separate test function as it is not directly related to the tests part of the same function. It is not critical, just thinking it may be nicer.

ah, this could be a default (happy-path) scenario I always wanted, yeah I can do that :)

p0lyn0mial avatar Feb 22 '23 12:02 p0lyn0mial

@kcp-dev/kcp-contributors lets pick this up?

mjudeikis avatar Mar 25 '24 16:03 mjudeikis

Issues go stale after 90d of inactivity. After a furter 30 days, they will turn rotten. Mark the issue as fresh with /remove-lifecycle stale.

If this issue is safe to close now please do so with /close.

/lifecycle stale

kcp-ci-bot avatar Jun 23 '24 20:06 kcp-ci-bot

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

kcp-ci-bot avatar Jul 23 '24 20:07 kcp-ci-bot

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

kcp-ci-bot avatar Aug 22 '24 20:08 kcp-ci-bot

@kcp-ci-bot: Closed this PR.

In response to this:

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

kcp-ci-bot avatar Aug 22 '24 20:08 kcp-ci-bot