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

[test][integration] Relax CheckLatestEvent to CheckEventRecordedFor. #3145

Merged

Conversation

trasc
Copy link
Contributor

@trasc trasc commented Sep 26, 2024

What type of PR is this?

/kind bug
/kind failing-test
/kind flake

What this PR does / why we need it:

[test][integration] Relax CheckLatestEvent to CheckEventRecordedFor.

Instead of expecting that an event is recorded last, check that the event was recorded for a specific object.

Which issue(s) this PR fixes:

Fixes #3144

Special notes for your reviewer:

Does this PR introduce a user-facing change?

none

@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. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. kind/flake Categorizes issue or PR as related to a flaky test. labels Sep 26, 2024
@k8s-ci-robot k8s-ci-robot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Sep 26, 2024
Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for kubernetes-sigs-kueue canceled.

Name Link
🔨 Latest commit 42454ba
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-kueue/deploys/66fa4ffd52bff3000862de2d

@mbobrovskyi
Copy link
Contributor

Is it fix for #3144?

@trasc
Copy link
Contributor Author

trasc commented Sep 26, 2024

Is it fix for #3144?

It was not done for it specifically but it's fixing it.
/cc @mbobrovskyi

@mbobrovskyi
Copy link
Contributor

Is it fix for #3144?

It was not done for it specifically but it's fixing it. /cc @mbobrovskyi

Awesome. Thanks!

@trasc
Copy link
Contributor Author

trasc commented Sep 26, 2024

/test pull-kueue-test-e2e-main-1-29

@trasc
Copy link
Contributor Author

trasc commented Sep 26, 2024

#3147 created for the e2e flake

@mimowo
Copy link
Contributor

mimowo commented Sep 27, 2024

@mbobrovskyi would be great if you could provide the first review

Copy link
Contributor

@mbobrovskyi mbobrovskyi left a comment

Choose a reason for hiding this comment

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

Overall LGTM.

pkg/util/testing/core.go Outdated Show resolved Hide resolved
@mbobrovskyi
Copy link
Contributor

/lgtm
Thanks!

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

LGTM label has been added.

Git tree hash: 4416005ca2625921d28da81ef68d288fe4ff3ef9

pkg/util/testing/core.go Outdated Show resolved Hide resolved
pkg/util/testing/core.go Outdated Show resolved Hide resolved
@trasc trasc force-pushed the integration-dont-check-only-last-event branch from 4cc9b1a to 3906c35 Compare September 30, 2024 06:50
@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Sep 30, 2024
@trasc trasc force-pushed the integration-dont-check-only-last-event branch from 3906c35 to 1fbe011 Compare September 30, 2024 06:51
@trasc trasc changed the title [test][integration] Relax CheckLatestEvent to CheckEventRecordedAfter [test][integration] Relax CheckLatestEvent to CheckEventRecordedFor. Sep 30, 2024
pkg/util/testing/core.go Outdated Show resolved Hide resolved
Instead of expecting that an event is recorded last, check that the
event was recorded for a specific object.
@mbobrovskyi
Copy link
Contributor

/test pull-kueue-test-integration-main

Due to #3149.

@trasc trasc force-pushed the integration-dont-check-only-last-event branch from e71dc94 to 42454ba Compare September 30, 2024 07:15
Copy link
Contributor

@mimowo mimowo left a comment

Choose a reason for hiding this comment

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

/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 Sep 30, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 2e31472a2e7e9320177a2fd9dabac0da9cb23300

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mimowo, trasc

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 Sep 30, 2024
@k8s-ci-robot k8s-ci-robot merged commit ae17586 into kubernetes-sigs:main Sep 30, 2024
16 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v0.9 milestone Sep 30, 2024
@trasc trasc deleted the integration-dont-check-only-last-event branch September 30, 2024 12:29
kannon92 pushed a commit to openshift-kannon92/kubernetes-sigs-kueue that referenced this pull request Nov 19, 2024
…r`. (kubernetes-sigs#3145)

* [test][integration] Relax `CheckLatestEvent` to `CheckEventRecordedFor`.

Instead of expecting that an event is recorded last, check that the
event was recorded for a specific object.

* [util][testing] Remove `CheckLatestEvent` as is no longer used.

* Review Remarks
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. kind/bug Categorizes issue or PR as related to a bug. kind/failing-test Categorizes issue or PR as related to a consistently or frequently failing test. kind/flake Categorizes issue or PR as related to a flaky test. lgtm "Looks good to me", indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Flaky integration test] RayCluster controller Should reconcile RayClusters
4 participants