Skip to content

Conversation

@olderTaoist
Copy link

@olderTaoist olderTaoist commented Oct 23, 2025

What type of PR is this?

/kind bug

What this PR does / why we need it:

JobReconciler don't update PodsReady condition timely when updata status failed. no event triggers reconcile, need manually trigger the workload update.

Which issue(s) this PR fixes:

Fixes #7363

Special notes for your reviewer:

Does this PR introduce a user-facing change?

Requeue generic job when update workload's podsready condition fail.

@k8s-ci-robot k8s-ci-robot added release-note-none Denotes a PR that doesn't merit a release note. kind/bug Categorizes issue or PR as related to a bug. labels Oct 23, 2025
@netlify
Copy link

netlify bot commented Oct 23, 2025

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit be888bd
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-sigs-kueue/deploys/690aa86da6d17c0007ac4103

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Oct 23, 2025
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: olderTaoist
Once this PR has been reviewed and has the lgtm label, please assign mimowo for approval. 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

@k8s-ci-robot
Copy link
Contributor

Welcome @olderTaoist!

It looks like this is your first PR to kubernetes-sigs/kueue 🎉. 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-sigs/kueue 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 the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Oct 23, 2025
@k8s-ci-robot
Copy link
Contributor

Hi @olderTaoist. Thanks for your PR.

I'm waiting for a github.com 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 k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Oct 23, 2025
@mimowo
Copy link
Contributor

mimowo commented Oct 23, 2025

/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 Oct 23, 2025
@mimowo
Copy link
Contributor

mimowo commented Oct 23, 2025

Thank you for the fix, lgtm, but can you think of adding a test for it?

@mimowo
Copy link
Contributor

mimowo commented Oct 23, 2025

Please also update the "Does this PR introduce a user-facing change?" section to describe the fix. It will land in release notes for users.

@mimowo
Copy link
Contributor

mimowo commented Oct 23, 2025

cc @PBundyra ptal

@olderTaoist
Copy link
Author

Thank you for the fix, lgtm, but can you think of adding a test for it?

let me think about how to write a single test. I also accidentally discovered that in our k8s environment, accessing the webhook through the service (kube-proxy) failed probabilistically, resulting in the PodReady status not being updated timely and subsequent tasks being unable to be scheduled.

Comment on lines 517 to 519
return ctrl.Result{
RequeueAfter: 0,
}, err
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
return ctrl.Result{
RequeueAfter: 0,
}, err
return ctrl.Result{}, client.IgnoreNotFound(err)

Copy link
Author

@olderTaoist olderTaoist Nov 3, 2025

Choose a reason for hiding this comment

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

Done as you saied. because my use case is that when a job's podready status is false (no timeout), it will block all subsequent jobs, i wanted the Reconciler to reconcile immediately, so I didn't use the default behavior of controller-runtime.

Copy link
Contributor

Choose a reason for hiding this comment

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

IIUC, the return ctrl.Result{}, client.IgnoreNotFound(err) will make reconciler requeue the request right away. Am I missing something?

Copy link
Author

Choose a reason for hiding this comment

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

when Reconcile return error, controller-runtime default retry mechanism uses a rate limiter.

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Nov 3, 2025
@olderTaoist olderTaoist force-pushed the timely-update branch 2 times, most recently from ca84499 to c1824fb Compare November 3, 2025 11:28
@olderTaoist
Copy link
Author

Thank you for the fix, lgtm, but can you think of adding a test for it?

Done

@olderTaoist olderTaoist force-pushed the timely-update branch 2 times, most recently from e9641cd to a7e377c Compare November 3, 2025 12:22
@k8s-ci-robot k8s-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 3, 2025
@k8s-ci-robot k8s-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Nov 3, 2025
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Nov 4, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: olderTaoist / name: walker (be888bd)

@k8s-ci-robot k8s-ci-robot added cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. and removed cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 4, 2025
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Nov 4, 2025
@olderTaoist olderTaoist requested a review from PBundyra November 5, 2025 10:21
@k8s-ci-robot k8s-ci-robot added release-note Denotes a PR that will be considered when it comes time to generate release notes. and removed release-note-none Denotes a PR that doesn't merit a release note. labels Nov 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. kind/bug Categorizes issue or PR as related to a bug. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. 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.

jobframework JobReconciler don't update PodsReady condition timely when updata status failed

4 participants