Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 40 for baseError (0.17 sec)

  1. src/cmd/go/internal/modload/buildlist.go

    	}
    
    	var graphRoots []module.Version
    	if inWorkspaceMode() {
    		graphRoots = roots
    	} else {
    		graphRoots = MainModules.Versions()
    	}
    	var (
    		mu       sync.Mutex // guards mg.g and hasError during loading
    		hasError bool
    		mg       = &ModuleGraph{
    			g: mvs.NewGraph(cmpVersion, graphRoots),
    		}
    	)
    
    	if pruning != workspace {
    		if inWorkspaceMode() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 16:04:44 UTC 2024
    - 53.8K bytes
    - Viewed (0)
  2. pkg/scheduler/framework/interface.go

    	code := s.Code()
    	return code == Unschedulable || code == UnschedulableAndUnresolvable || code == Pending
    }
    
    // AsError returns nil if the status is a success, a wait or a skip; otherwise returns an "error" object
    // with a concatenated message on reasons of the Status.
    func (s *Status) AsError() error {
    	if s.IsSuccess() || s.IsWait() || s.IsSkip() {
    		return nil
    	}
    	if s.err != nil {
    		return s.err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 35.4K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/podtopologyspread/scoring_test.go

    			p := pl.(*PodTopologySpread)
    			cs := framework.NewCycleState()
    			if s := p.PreScore(ctx, cs, tt.pod, tf.BuildNodeInfos(tt.nodes)); !s.IsSkip() {
    				t.Fatalf("Expected skip but got %v", s.AsError())
    			}
    		})
    	}
    }
    
    func TestPreScoreStateEmptyNodes(t *testing.T) {
    	tests := []struct {
    		name                      string
    		pod                       *v1.Pod
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 60K bytes
    - Viewed (0)
  4. pkg/scheduler/framework/plugins/podtopologyspread/filtering_test.go

    			if _, s := p.PreFilter(ctx, cs, tt.preemptor); !s.IsSuccess() {
    				t.Fatal(s.AsError())
    			}
    			nodeInfo, err := snapshot.Get(tt.nodes[tt.nodeIdx].Name)
    			if err != nil {
    				t.Fatal(err)
    			}
    			if s := p.AddPod(ctx, cs, tt.preemptor, mustNewPodInfo(t, tt.addedPod), nodeInfo); !s.IsSuccess() {
    				t.Fatal(s.AsError())
    			}
    			state, err := getPreFilterState(cs)
    			if err != nil {
    				t.Fatal(err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 10:42:29 UTC 2024
    - 143.1K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/preemption/preemption.go

    			status = framework.AsStatus(fmt.Errorf("expected at least one victim pod on node %q", nodeInfoCopy.Node().Name))
    		}
    		statusesLock.Lock()
    		if status.Code() == framework.Error {
    			errs = append(errs, status.AsError())
    		}
    		nodeStatuses[nodeInfoCopy.Node().Name] = status
    		statusesLock.Unlock()
    	}
    	fh.Parallelizer().Until(ctx, len(potentialNodes), checkNode, ev.PluginName)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  6. pkg/scheduler/schedule_one_test.go

    			}
    			sched.FailureHandler = func(_ context.Context, fwk framework.Framework, p *framework.QueuedPodInfo, status *framework.Status, _ *framework.NominatingInfo, _ time.Time) {
    				gotPod = p.Pod
    				gotError = status.AsError()
    
    				msg := truncateMessage(gotError.Error())
    				fwk.EventRecorder().Eventf(p.Pod, nil, v1.EventTypeWarning, "FailedScheduling", "Scheduling", msg)
    			}
    			called := make(chan struct{})
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:20:55 UTC 2024
    - 128.1K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/defaultpreemption/default_preemption_test.go

    			}
    
    			res, status := pe.Preempt(ctx, test.pod, nodeToStatusMap)
    			if !status.IsSuccess() && !status.IsRejected() {
    				t.Errorf("unexpected error in preemption: %v", status.AsError())
    			}
    			if diff := cmp.Diff(test.want, res); diff != "" {
    				t.Errorf("Unexpected status (-want, +got):\n%s", diff)
    			}
    			if len(deletedPodNames) != len(test.expectedPods) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 82.8K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/configurations/DefaultConfigurationSpec.groovy

            }
    
            def legacyResults = DefaultResolverResults.DefaultLegacyResolverResults.graphResolved(
                depSpec -> selectedArtifacts(failure),
                Mock(ResolvedConfiguration) {
                    hasError() >> true
                }
            )
    
            DefaultResolverResults.graphResolved(visitedGraphResults, visitedArtifactSet, legacyResults)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 17:30:13 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  9. pkg/scheduler/internal/queue/scheduling_queue.go

    		if s.IsSuccess() {
    			continue
    		}
    		pInfo.UnschedulablePlugins.Insert(pl.Name())
    		metrics.UnschedulableReason(pl.Name(), pod.Spec.SchedulerName).Inc()
    		if s.Code() == framework.Error {
    			logger.Error(s.AsError(), "Unexpected error running PreEnqueue plugin", "pod", klog.KObj(pod), "plugin", pl.Name())
    		} else {
    			logger.V(4).Info("Status after running PreEnqueue plugin", "pod", klog.KObj(pod), "plugin", pl.Name(), "status", s)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 61.4K bytes
    - Viewed (0)
  10. test-site/activator-launch-1.3.2.jar

    private long downloadSize; public void ResolveReport(String); public final void addReport(String, ConfigurationResolve); public final ConfigurationResolve getConfigurationRepo(String); public final String[] getConfigurations(); public final boolean hasError(); public final void output(org.apache.ivy.plugins.report.ReportOutputter[], org.apache.ivy.core.cache.ResolutionCacheManag, org.apache.ivy.core.resolve.ResolveOptions); public final org.apache.ivy.core.resolve.IvyNode[] getEvictedNodes(); public...
    Registered: Wed Jun 12 15:38:08 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 1.2M bytes
    - Viewed (1)
Back to top