Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

e2e: fixing hardcode values and formatted text #131571

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
Loading
from

Conversation

mulatinho
Copy link

What this PR does / why we need it:

the purpose of this PR is to make sure the messages printed in the output are equal to the gracePeriod set by the code, also, it does a refactor in some strings and values of the keys based on what is set on the code.

$ git diff HEAD~1 --stat
 test/e2e/network/pod_lifecycle.go | 39 ++++++++++++++++++++-------------------
 test/e2e/network/service.go       | 43 ++++++++++++++++++++++++-------------------
 2 files changed, 44 insertions(+), 38 deletions(-)

/cc @royalsflush

@k8s-ci-robot
Copy link
Contributor

Adding the "do-not-merge/release-note-label-needed" label because no release-note block was detected, please follow our release note process to remove it.

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-sigs/prow repository.

@k8s-ci-robot
Copy link
Contributor

@mulatinho: GitHub didn't allow me to request PR reviews from the following users: royalsflush.

Note that only kubernetes members and repo collaborators can review this PR, and authors cannot review their own PRs.

In response to this:

What this PR does / why we need it:

the purpose of this PR is to make sure the messages printed in the output are equal to the gracePeriod set by the code, also, it does a refactor in some strings and values of the keys based on what is set on the code.

$ git diff HEAD~1 --stat
test/e2e/network/pod_lifecycle.go | 39 ++++++++++++++++++++-------------------
test/e2e/network/service.go       | 43 ++++++++++++++++++++++++-------------------
2 files changed, 44 insertions(+), 38 deletions(-)

/cc @royalsflush

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels May 1, 2025
@k8s-ci-robot
Copy link
Contributor

Welcome @mulatinho!

It looks like this is your first PR to kubernetes/kubernetes 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/kubernetes has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels May 1, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @mulatinho. Thanks for your PR.

I'm waiting for a kubernetes 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-sigs/prow repository.

@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-priority Indicates a PR lacks a `priority/foo` label and requires one. area/test sig/network Categorizes an issue or PR as relevant to SIG Network. sig/testing Categorizes an issue or PR as relevant to SIG Testing. and removed do-not-merge/needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels May 1, 2025
@mulatinho
Copy link
Author

/cc @aojea
/assign @aojea

hope it helps and makes sense for you :-)

@k8s-ci-robot k8s-ci-robot requested a review from aojea May 1, 2025 15:30
@mulatinho mulatinho changed the title refactor: gracePeriod in service and pod_lifecycle e2e: refactor: gracePeriod in service and pod_lifecycle May 1, 2025
@mulatinho mulatinho force-pushed the network-graceperiod-refactor branch from 2694799 to 7215881 Compare May 1, 2025 17:18
@royalsflush
Copy link
Contributor

/lgtm

(Be mindful you still need approval)

@k8s-ci-robot
Copy link
Contributor

@royalsflush: changing LGTM is restricted to collaborators

In response to this:

/lgtm

(Be mindful you still need approval)

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-sigs/prow repository.

@aojea
Copy link
Member

aojea commented May 2, 2025

/hold

thanks for the contribution, but refactors need to be adding clear value, replacing hardcoded values by a common variable is, but I want to keep them per test.

Use different commits for changes and different files, do not mix unrelated things in the same commit, do not change things like comma separated arguments , ...

test/e2e/network/service.go Outdated Show resolved Hide resolved
@mulatinho mulatinho force-pushed the network-graceperiod-refactor branch from 9a6488a to adcc980 Compare May 3, 2025 13:43
@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels May 3, 2025
@mulatinho
Copy link
Author

@aojea I reviewed all changes and I think now its bringing value as you requested, I fixed the exposition of variables, formatted the output lines and seems good to me, consistent. waiting for your feedback, hope it get approved :)

@mulatinho
Copy link
Author

/kind cleanup

@k8s-ci-robot k8s-ci-robot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed do-not-merge/needs-kind Indicates a PR lacks a `kind/foo` label and requires one. labels May 3, 2025
@mulatinho mulatinho changed the title e2e: refactor: gracePeriod in service and pod_lifecycle e2e: fixing hardcode values and formatted text May 3, 2025
@aojea
Copy link
Member

aojea commented May 5, 2025

thanks for the effort but now you have some commits that go back and forth, you add some variables and then you remove then, can you have a clean history with the actual changes we want to merge?

@mulatinho mulatinho force-pushed the network-graceperiod-refactor branch from adcc980 to 90e8177 Compare May 5, 2025 11:23
@mulatinho
Copy link
Author

@aojea here it is , two commits, one per single file, with all changes to track in each commit :-) thanks

@mulatinho mulatinho force-pushed the network-graceperiod-refactor branch from 90e8177 to 70b0812 Compare May 5, 2025 11:25
@k8s-ci-robot k8s-ci-robot added the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label May 7, 2025
@mulatinho mulatinho force-pushed the network-graceperiod-refactor branch from 54446c1 to d660c5a Compare May 7, 2025 12:59
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label May 7, 2025
@mulatinho
Copy link
Author

/assign @danwinship
/assign @andrewsykim

@aroradaman
Copy link
Member

/test pull-kubernetes-e2e-kind

@k8s-ci-robot k8s-ci-robot added the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label May 15, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mulatinho
Once this PR has been reviewed and has the lgtm label, please ask for approval from andrewsykim. For more information see the 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

mulatinho added 2 commits May 15, 2025 11:23
this commit removes hardcoded constants and turn them into variables and
format some messages through the code using fmt.Sprint

Signed-off-by: Alexandre Mulatinho <alex@mulatinho.net>
this commit removes hardcoded constants and turn them into variables and
format some messages through the code using fmt.Sprint

Signed-off-by: Alexandre Mulatinho <alex@mulatinho.net>
@mulatinho mulatinho force-pushed the network-graceperiod-refactor branch from 21d054b to c9a20bb Compare May 15, 2025 14:23
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/contains-merge-commits Indicates a PR which contains merge commits. label May 15, 2025
@mulatinho
Copy link
Author

/test pull-kubernetes-e2e-kind

thanks brother, I think it will need approval first ./cc @aroradaman

@aroradaman
Copy link
Member

/ok-to-test

@k8s-ci-robot k8s-ci-robot 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 May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/test cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. do-not-merge/release-note-label-needed Indicates that a PR should not merge because it's missing one of the release note labels. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. needs-priority Indicates a PR lacks a `priority/foo` label and requires one. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. sig/network Categorizes an issue or PR as relevant to SIG Network. sig/testing Categorizes an issue or PR as relevant to SIG Testing. 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.

7 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.