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

WIP TAS flake test #4475

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added dummy
Empty file.
1 change: 1 addition & 0 deletions pkg/controller/core/clusterqueue_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ func (r *ClusterQueueReconciler) NotifyAdmissionCheckUpdate(oldAc, newAc *kueue.
// ClusterQueue associated with the event.

func (r *ClusterQueueReconciler) Create(e event.CreateEvent) bool {
time.Sleep(3 * time.Second)
cq, match := e.Object.(*kueue.ClusterQueue)
if !match {
// No need to interact with the cache for other objects.
Expand Down
2 changes: 2 additions & 0 deletions pkg/controller/core/resourceflavor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package core

import (
"context"
"time"

"github.com/go-logr/logr"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -121,6 +122,7 @@ func (r *ResourceFlavorReconciler) notifyWatchers(oldRF, newRF *kueue.ResourceFl
}

func (r *ResourceFlavorReconciler) Create(e event.CreateEvent) bool {
time.Sleep(2 * time.Second)
flv, match := e.Object.(*kueue.ResourceFlavor)
if !match {
return false
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/tas/resource_flavor.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ func (r *rfReconciler) Reconcile(ctx context.Context, req reconcile.Request) (re
}

func (r *rfReconciler) Create(event event.CreateEvent) bool {
time.Sleep(4 * time.Second)
rf, isRf := event.Object.(*kueue.ResourceFlavor)
if isRf {
return rf.Spec.TopologyName != nil
Expand Down
2 changes: 2 additions & 0 deletions pkg/controller/tas/topology_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ package tas

import (
"context"
"time"

"github.com/go-logr/logr"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -127,6 +128,7 @@ func (r *topologyReconciler) Generic(event.GenericEvent) bool {
}

func (r *topologyReconciler) Create(e event.CreateEvent) bool {
time.Sleep(1 * time.Second)
topology, isTopology := e.Object.(*kueuealpha.Topology)
if !isTopology {
return true
Expand Down