Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for NewSnapshot (0.2 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SetValueSnapshot.java

            ValueSnapshot newSnapshot = snapshotter.snapshot(value);
            if (isEqualSetValueSnapshot(newSnapshot)) {
                return this;
            }
            return newSnapshot;
        }
    
        private boolean isEqualSetValueSnapshot(ValueSnapshot newSnapshot) {
            if (newSnapshot instanceof SetValueSnapshot) {
                SetValueSnapshot other = (SetValueSnapshot) newSnapshot;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/MapValueSnapshot.java

            super(entries);
        }
    
        @Override
        public ValueSnapshot snapshot(Object value, ValueSnapshotter snapshotter) {
            ValueSnapshot newSnapshot = snapshotter.snapshot(value);
            if (equals(newSnapshot)) {
                return this;
            }
            return newSnapshot;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. build-logic/build-update-utils/src/test/groovy/gradlebuild/buildutils/tasks/UpdateReleasedVersionsIntegrationTest.groovy

          "version": "6.4",
          "buildTime": "20200505191855+0000"
        }
      ]
    }'''
            def newSnapshot = snapshot('6.6')
            def expectedFileContent = releasedVersionsFile.text.replace('20200702230251+0000', newSnapshot.buildTime)
    
            when:
            ******@****.***ReleasedVersionFile(releasedVersionsFile, newSnapshot) == ''
    
            then:
            releasedVersionsFile.text == expectedFileContent
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 17 08:32:56 UTC 2021
    - 2.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/GradleSerializedValueSnapshot.java

                GradleSerializedValueSnapshot newSnapshot = (GradleSerializedValueSnapshot) snapshot;
                if (!Objects.equal(implementationHash, newSnapshot.implementationHash)) {
                    // Different implementation - assume value has changed
                    return false;
                }
                if (Arrays.equals(serializedValue, newSnapshot.serializedValue)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 09:46:00 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppCachingIntegrationTest.groovy

            if (isNonRelocatableCompilation(buildType)) {
                return
            }
            snapshotsInOriginalLocation.each { path, originalSnapshot ->
                def newSnapshot = snapshotsInNewLocation[path]
                assert originalSnapshot.hash == newSnapshot.hash
            }
        }
    
        private boolean isNonRelocatableCompilation(String buildType) {
            nonDeterministicCompilation || isAbsolutePathsInFile(buildType)
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  6. pkg/scheduler/internal/cache/snapshot.go

    func NewEmptySnapshot() *Snapshot {
    	return &Snapshot{
    		nodeInfoMap: make(map[string]*framework.NodeInfo),
    		usedPVCSet:  sets.New[string](),
    	}
    }
    
    // NewSnapshot initializes a Snapshot struct and returns it.
    func NewSnapshot(pods []*v1.Pod, nodes []*v1.Node) *Snapshot {
    	nodeInfoMap := createNodeInfoMap(pods, nodes)
    	nodeInfoList := make([]*framework.NodeInfo, 0, len(nodeInfoMap))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 17 01:38:03 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  7. pkg/scheduler/framework/plugins/interpodaffinity/plugin_test.go

    		},
    	}
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			logger, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			snapshot := cache.NewSnapshot(nil, nil)
    			pl := plugintesting.SetupPluginWithInformers(ctx, t, New, &config.InterPodAffinityArgs{}, snapshot, namespaces)
    			p := pl.(*InterPodAffinity)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 03:08:44 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  8. pkg/scheduler/framework/plugins/noderesources/requested_to_capacity_ratio_test.go

    		t.Run(test.name, func(t *testing.T) {
    			_, ctx := ktesting.NewTestContext(t)
    			ctx, cancel := context.WithCancel(ctx)
    			defer cancel()
    
    			state := framework.NewCycleState()
    			snapshot := cache.NewSnapshot(test.existingPods, test.nodes)
    			fh, _ := runtime.NewFramework(ctx, nil, nil, runtime.WithSnapshotSharedLister(snapshot))
    
    			p, err := NewFit(ctx, &config.NodeResourcesFitArgs{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Dec 15 03:30:06 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  9. platforms/core-execution/workers/src/integTest/groovy/org/gradle/workers/internal/WorkerDaemonLifecycleTest.groovy

            cleanup:
            // In the event this fails, clean up any orphaned children
            children.each { child ->
                new ProcessFixture(child as Long).kill(true)
            }
        }
    
        void newSnapshot() {
            logSnapshot = daemons.daemon.log
        }
    
        String sinceSnapshot() {
            return daemons.daemon.log - logSnapshot
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:36:27 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  10. pkg/scheduler/framework/preemption/preemption_test.go

    				frameworkruntime.WithSnapshotSharedLister(internalcache.NewSnapshot(tt.testPods, tt.nodes)),
    				frameworkruntime.WithLogger(logger),
    			)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    			informerFactory.Start(ctx.Done())
    			informerFactory.WaitForCacheSync(ctx.Done())
    			snapshot := internalcache.NewSnapshot(tt.initPods, tt.nodes)
    			nodeInfos, err := snapshot.NodeInfos().List()
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 31 15:52:16 UTC 2024
    - 18.7K bytes
    - Viewed (0)
Back to top