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

add a message to events #390

Merged
merged 1 commit into from
Jan 31, 2024

Conversation

kannon92
Copy link
Contributor

@kannon92 kannon92 commented Jan 29, 2024

Events have a message.

We were neglecting the message so our events were a bit difficult to follow.

With this fix:

52s         Warning   Restarting                jobset/max-restarts                  restarting jobset, attempt 1
37s         Warning   Restarting                jobset/max-restarts                  restarting jobset, attempt 2
23s         Warning   Restarting                jobset/max-restarts                  restarting jobset, attempt 3
6s          Warning   Failed                    jobset/max-restarts                  ReachedMaxRestarts%!(EXTRA string=jobset failed due to reaching max number of restarts)

Without this fix:

52s         Warning   Restarting                jobset/max-restarts                 
37s         Warning   Restarting                jobset/max-restarts                  
23s         Warning   Restarting                jobset/max-restarts                 
6s          Warning   Failed                    jobset/max-restarts                  

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jan 29, 2024
@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jan 29, 2024
@kannon92
Copy link
Contributor Author

kannon92 commented Jan 29, 2024

/assign @ahg-g @danielvegamyhre

Found this as I was working on the startup policy code. It may be worth considering a patch release but I'll leave that up to you two.

@kannon92
Copy link
Contributor Author

kannon92 commented Jan 29, 2024

/hold

So I was a bit wrong about this. We are dropping the message for events but for whatever reason, the reason is added in our events printing.

We see events like this actually. We don't have any detailed message for events but when I tried this change, I was seeing
5s Normal Completed jobset/success-policy ReachedMaxRestarts%!(EXTRA string=jobset failed due to reaching max number of restarts)

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 29, 2024
@kannon92 kannon92 force-pushed the events-missing-message branch from 606d6c1 to c395ede Compare January 30, 2024 03:18
@kannon92
Copy link
Contributor Author

Alright. I realized the problem.

Events (with this change)

5m12s       Normal    SuspendedJobs             jobset/paralleljobs                  jobset is suspended
4m18s       Normal    ResumeJobs                jobset/paralleljobs                  jobset is resumed
2m30s       Normal    AllJobsCompleted          jobset/paralleljobs                  jobset completed successfully
7m12s       Warning   Restarting                jobset/max-restarts                  restarting jobset, attempt 1
6m56s       Warning   Restarting                jobset/max-restarts                  restarting jobset, attempt 2
6m40s       Warning   Restarting                jobset/max-restarts                  restarting jobset, attempt 3
6m26s       Warning   ReachedMaxRestarts        jobset/max-restarts                  jobset failed due to reaching max number of restarts

@kannon92
Copy link
Contributor Author

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jan 30, 2024
@ahg-g
Copy link
Contributor

ahg-g commented Jan 31, 2024

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jan 31, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahg-g, kannon92

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 31, 2024
@k8s-ci-robot k8s-ci-robot merged commit 6f9671e into kubernetes-sigs:main Jan 31, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants