Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for globalIsCICD (0.14 sec)

  1. cmd/globals.go

    	globalLocalDrivesMap map[string]StorageAPI
    	globalLocalDrivesMu  sync.RWMutex
    
    	globalDriveMonitoring = env.Get("_MINIO_DRIVE_ACTIVE_MONITORING", config.EnableOn) == config.EnableOn
    
    	// Is MINIO_CI_CD set?
    	globalIsCICD bool
    
    	globalRootDiskThreshold uint64
    
    	// Used for collecting stats for netperf
    	globalNetPerfMinDuration     = time.Second * 10
    	globalNetPerfRX              netPerfRX
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. cmd/generic-handlers.go

    }
    
    // Bad path components to be rejected by the path validity handler.
    const (
    	dotdotComponent = ".."
    	dotComponent    = "."
    )
    
    func hasBadHost(host string) error {
    	if globalIsCICD && strings.TrimSpace(host) == "" {
    		// under CI/CD test setups ignore empty hosts as invalid hosts
    		return nil
    	}
    	_, err := xnet.ParseHost(host)
    	return err
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  3. cmd/config-current.go

    		if err != nil {
    			configLogIf(ctx, fmt.Errorf("Unable to parse subnet configuration: %w", err))
    		} else {
    			globalSubnetConfig.Update(subnetConfig, globalIsCICD)
    			globalSubnetConfig.ApplyEnv() // update environment settings for Console UI
    		}
    	case config.CallhomeSubSys:
    		callhomeCfg, err := callhome.LookupConfig(s[config.CallhomeSubSys][config.Default])
    		if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 03 18:23:41 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  4. cmd/common-main.go

    		}
    	}
    
    	logger.Init(GOPATH, GOROOT)
    	logger.RegisterError(config.FmtError)
    
    	t, _ := minioVersionToReleaseTime(Version)
    	if !t.IsZero() {
    		globalVersionUnix = uint64(t.Unix())
    	}
    
    	globalIsCICD = env.Get("MINIO_CI_CD", "") != "" || env.Get("CI", "") != ""
    
    	console.SetColor("Debug", fcolor.New())
    
    	gob.Register(StorageErr(""))
    	gob.Register(madmin.TimeInfo{})
    	gob.Register(madmin.XFSErrorConfigs{})
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  5. cmd/utils.go

    		// unable to maintain its sampling rate and to significantly
    		// degrade the performance of your application
    		// https://github.com/felixge/fgprof#fgprof
    		if n := runtime.NumGoroutine(); n > 10000 && !globalIsCICD {
    			return nil, fmt.Errorf("unable to perform CPU IO profile with %d goroutines", n)
    		}
    		dirPath, err := os.MkdirTemp("", "profile")
    		if err != nil {
    			return nil, err
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 22:22:04 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  6. cmd/test-utils_test.go

    	"github.com/minio/pkg/v3/policy"
    )
    
    // TestMain to set up global env.
    func TestMain(m *testing.M) {
    	flag.Parse()
    
    	// set to 'true' when testing is invoked
    	globalIsTesting = true
    
    	globalIsCICD = globalIsTesting
    
    	globalActiveCred = auth.Credentials{
    		AccessKey: auth.DefaultAccessKey,
    		SecretKey: auth.DefaultSecretKey,
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    }
    
    // Initialize a new storage disk.
    func newXLStorage(ep Endpoint, cleanUp bool) (s *xlStorage, err error) {
    	immediatePurgeQueue := 100000
    	if globalIsTesting || globalIsCICD {
    		immediatePurgeQueue = 1
    	}
    
    	ctx, cancel := context.WithCancel(GlobalContext)
    
    	s = &xlStorage{
    		drivePath:            ep.Path,
    		endpoint:             ep,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  8. cmd/admin-handlers.go

    	sleep 10
    }
    
    main "$@"`, scheme)
    	adminLogIf(ctx, embedFileInZip(inspectZipW, "start-minio.sh", scrb.Bytes(), 0o755))
    }
    
    func getSubnetAdminPublicKey() []byte {
    	if globalIsCICD {
    		return subnetAdminPublicKeyDev
    	}
    	return subnetAdminPublicKey
    }
    
    func createHostAnonymizerForFSMode() map[string]string {
    	hostAnonymizer := map[string]string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool.go

    	if globalIsDistErasure {
    		n = 2048
    	}
    
    	// Avoid allocating more than half of the available memory
    	if maxN := availableMemory() / (blockSizeV2 * 2); n > maxN {
    		n = maxN
    	}
    
    	if globalIsCICD || strconv.IntSize == 32 {
    		n = 256 // 256MiB for CI/CD environments is sufficient or on 32bit platforms.
    	}
    
    	// Initialize byte pool once for all sets, bpool size is set to
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 89.8K bytes
    - Viewed (0)
Back to top