Skip to content
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

Enable e2e GHA test #434

Closed
wants to merge 14 commits into from

Conversation

naveenrajm7
Copy link

Changes

  • Reduce knative serving components resources to fit in 2 core machine.
  • Enable GHA for e2e test

/kind

Fixes #392

Release Note

Reduces resources of Serving components 

Docs

@knative-prow
Copy link

knative-prow bot commented Aug 1, 2023

@naveenrajm7: The label(s) kind/<kind> cannot be applied, because the repository doesn't have them.

In response to this:

Changes

  • Reduce knative serving components resources to fit in 2 core machine.
  • Enable GHA for e2e test

/kind

Fixes #392

Release Note

Reduces resources of Serving components 

Docs

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.

@knative-prow knative-prow bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Aug 1, 2023
@knative-prow knative-prow bot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Aug 1, 2023
@knative-prow
Copy link

knative-prow bot commented Aug 1, 2023

Hi @naveenrajm7. Thanks for your PR.

I'm waiting for a knative-sandbox member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@knative-prow knative-prow bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 1, 2023
@naveenrajm7 naveenrajm7 changed the title E2e gha test Enable e2e GHA test Aug 1, 2023
.github/workflows/kind-e2e.yaml Outdated Show resolved Hide resolved
.github/workflows/kind-e2e.yaml Outdated Show resolved Hide resolved
@psschwei
Copy link
Contributor

psschwei commented Aug 1, 2023

/ok-to-test

@knative-prow knative-prow bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Aug 1, 2023
@naveenrajm7
Copy link
Author

Addresses comments, fixed failing e2e test.

Currently list of deployments and amount of resources are hard-coded . if I there are other ways to explore let me know.

/re-test

@@ -219,6 +223,21 @@ func retryingApply(path string) error {
return err
}

func reduceResources() error {
var err error
err = runCommand(exec.Command("kubectl", "set", "resources", "deployment", "activator", "--requests=cpu=150m,memory=30Mi", "--limits=cpu=500m,memory=300Mi", "-n", "knative-serving"))
Copy link

@skonto skonto Aug 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kind node seems to share the whole host cpu and mem so given that the sum of the Serving deployments cpu requests (including Kourier) are ~=1cpu one thing to explore is limit Kind resource allocation., assuming we want to use one worker node (because of the quickstart). At the Serving side we use kind-worker-count=4 and setup Kind with chainguard-dev/actions/setup-kind@main (which comes with metallb, local registry etc though).
Otherwise I dont see many options other than adjusting our deployment resources.

Copy link
Author

@naveenrajm7 naveenrajm7 Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this valuable suggestion. If I can limit resource usage from the kind point of view itself, then I can avoid hard reduction of deployment resources. I will try this.

@psschwei
Copy link
Contributor

psschwei commented Aug 4, 2023

Test failure is legit ... we don't have a matrix in this action

@naveenrajm7
Copy link
Author

Test failure is legit ... we don't have a matrix in this action

Didn't change this part of the workflow, will check why the matrix keyword was used in the first place.

No matrix is used in e2e test
@knative-prow
Copy link

knative-prow bot commented Aug 15, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: naveenrajm7
Once this PR has been reviewed and has the lgtm label, please assign pierdipi 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

Comment on lines +129 to +132
if err := reduceResources(); err != nil {
return fmt.Errorf("reduce: %w", err)
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also run this for eventing? otherwise, I think this is looking pretty good

Copy link

This Pull Request is stale because it has been open for 90 days with
no activity. It will automatically close after 30 more days of
inactivity. Reopen with /reopen. Mark as fresh by adding the
comment /remove-lifecycle stale.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 14, 2023
@github-actions github-actions bot closed this Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

e2e test doesn't work on action runner
3 participants