This job view page is being replaced by Spyglass soon. Check out the new job view.
PRcmssczy: do workload.NewInfo when inserting and updating
ResultFAILURE
Tests 0 failed / 0 succeeded
Started2022-05-10 18:10
Elapsed1m35s
Revision57cbe5c9160146ecfd5730a7d16a2e959bd51e1c
Refs 257

No Test Failures!


Error lines from build-log.txt

... skipping 34 lines ...
go test -race -count 3 ./pkg/... -coverprofile cover.out
ok  	sigs.k8s.io/kueue/pkg/cache	0.279s	coverage: 85.1% of statements
?   	sigs.k8s.io/kueue/pkg/constants	[no test files]
?   	sigs.k8s.io/kueue/pkg/controller/core	[no test files]
?   	sigs.k8s.io/kueue/pkg/controller/workload/job	[no test files]
?   	sigs.k8s.io/kueue/pkg/metrics	[no test files]
--- FAIL: TestHeadsAsync (0.02s)
    --- FAIL: TestHeadsAsync/RequeueWithOutOfDateWorkload (0.00s)
        manager_test.go:917: GetHeads returned wrong heads (-want,+got):
              []workload.Info{
              	{
              		Obj: &v1alpha1.Workload{
              			... // 1 ignored field
              			ObjectMeta: v1.ObjectMeta{
... skipping 17 lines ...
              			Status: {},
              		},
              		TotalRequests: nil,
              		ClusterQueue:  "fooCq",
              	},
              }
    --- FAIL: TestHeadsAsync/RequeueWithQueueChangedWorkload (0.00s)
        manager_test.go:917: GetHeads returned wrong heads (-want,+got):
              []workload.Info{
              	{
              		Obj: &v1alpha1.Workload{
              			... // 1 ignored field
              			ObjectMeta: v1.ObjectMeta{
... skipping 17 lines ...
              			Status: {},
              		},
              		TotalRequests: nil,
              		ClusterQueue:  "barCq",
              	},
              }
--- FAIL: TestHeadsAsync (0.02s)
    --- FAIL: TestHeadsAsync/RequeueWithQueueChangedWorkload (0.01s)
        manager_test.go:917: GetHeads returned wrong heads (-want,+got):
              []workload.Info{
              	{
              		Obj: &v1alpha1.Workload{
              			... // 1 ignored field
              			ObjectMeta: v1.ObjectMeta{
... skipping 17 lines ...
              			Status: {},
              		},
              		TotalRequests: nil,
              		ClusterQueue:  "barCq",
              	},
              }
    --- FAIL: TestHeadsAsync/RequeueWithOutOfDateWorkload (0.01s)
        manager_test.go:917: GetHeads returned wrong heads (-want,+got):
              []workload.Info{
              	{
              		Obj: &v1alpha1.Workload{
              			... // 1 ignored field
              			ObjectMeta: v1.ObjectMeta{
... skipping 17 lines ...
              			Status: {},
              		},
              		TotalRequests: nil,
              		ClusterQueue:  "fooCq",
              	},
              }
--- FAIL: TestHeadsAsync (0.02s)
    --- FAIL: TestHeadsAsync/RequeueWithOutOfDateWorkload (0.00s)
        manager_test.go:917: GetHeads returned wrong heads (-want,+got):
              []workload.Info{
              	{
              		Obj: &v1alpha1.Workload{
              			... // 1 ignored field
              			ObjectMeta: v1.ObjectMeta{
... skipping 17 lines ...
              			Status: {},
              		},
              		TotalRequests: nil,
              		ClusterQueue:  "fooCq",
              	},
              }
    --- FAIL: TestHeadsAsync/RequeueWithQueueChangedWorkload (0.00s)
        manager_test.go:917: GetHeads returned wrong heads (-want,+got):
              []workload.Info{
              	{
              		Obj: &v1alpha1.Workload{
              			... // 1 ignored field
              			ObjectMeta: v1.ObjectMeta{
... skipping 17 lines ...
              			Status: {},
              		},
              		TotalRequests: nil,
              		ClusterQueue:  "barCq",
              	},
              }
FAIL
coverage: 63.5% of statements
FAIL	sigs.k8s.io/kueue/pkg/queue	0.332s
ok  	sigs.k8s.io/kueue/pkg/scheduler	3.660s	coverage: 90.5% of statements
ok  	sigs.k8s.io/kueue/pkg/util/heap	0.076s	coverage: 92.0% of statements
?   	sigs.k8s.io/kueue/pkg/util/pointer	[no test files]
?   	sigs.k8s.io/kueue/pkg/util/priority	[no test files]
?   	sigs.k8s.io/kueue/pkg/util/routine	[no test files]
?   	sigs.k8s.io/kueue/pkg/util/testing	[no test files]
ok  	sigs.k8s.io/kueue/pkg/workload	0.252s	coverage: 78.1% of statements
FAIL
make: *** [Makefile:113: test] Error 1