remove windows CI/CD for now (#20441)

windows has decided to be a community support
only and source compile-friendly.
This commit is contained in:
Harshavardhana 2024-09-16 13:46:53 -07:00 committed by GitHub
parent 8a30967542
commit 70d40083e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 38 additions and 26 deletions

View File

@ -21,23 +21,13 @@ jobs:
strategy: strategy:
matrix: matrix:
go-version: [1.22.x] go-version: [1.22.x]
os: [ubuntu-latest, Windows] os: [ubuntu-latest]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- uses: actions/setup-go@v5 - uses: actions/setup-go@v5
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
check-latest: true check-latest: true
- name: Build on ${{ matrix.os }}
if: matrix.os == 'Windows'
env:
CGO_ENABLED: 0
GO111MODULE: on
run: |
Set-MpPreference -DisableRealtimeMonitoring $true
netsh int ipv4 set dynamicport tcp start=60000 num=61000
go build --ldflags="-s -w" -o %GOPATH%\bin\minio.exe
go test -v --timeout 120m ./...
- name: Build on ${{ matrix.os }} - name: Build on ${{ matrix.os }}
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
env: env:

View File

@ -556,7 +556,7 @@ func (z *erasureServerPools) getPoolInfoExistingWithOpts(ctx context.Context, bu
return pinfo, z.poolsWithObject(poolObjInfos, opts), nil return pinfo, z.poolsWithObject(poolObjInfos, opts), nil
} }
defPool = pinfo defPool = pinfo
if !isErrObjectNotFound(pinfo.Err) { if !isErrObjectNotFound(pinfo.Err) && !isErrVersionNotFound(pinfo.Err) {
return pinfo, noReadQuorumPools, pinfo.Err return pinfo, noReadQuorumPools, pinfo.Err
} }
@ -1166,14 +1166,35 @@ func (z *erasureServerPools) DeleteObject(ctx context.Context, bucket string, ob
} }
} }
if opts.DataMovement {
objInfo, err = z.serverPools[pinfo.Index].DeleteObject(ctx, bucket, object, opts)
objInfo.Name = decodeDirObject(object)
return objInfo, err
}
// Delete concurrently in all server pools with read quorum error for unversioned objects. // Delete concurrently in all server pools with read quorum error for unversioned objects.
if len(noReadQuorumPools) > 0 && !opts.Versioned && !opts.VersionSuspended { if len(noReadQuorumPools) > 0 && !opts.Versioned && !opts.VersionSuspended {
return z.deleteObjectFromAllPools(ctx, bucket, object, opts, noReadQuorumPools) return z.deleteObjectFromAllPools(ctx, bucket, object, opts, noReadQuorumPools)
} }
objInfo, err = z.serverPools[pinfo.Index].DeleteObject(ctx, bucket, object, opts)
for _, pool := range z.serverPools {
objInfo, err := pool.DeleteObject(ctx, bucket, object, opts)
if err != nil && !isErrObjectNotFound(err) && !isErrVersionNotFound(err) {
objInfo.Name = decodeDirObject(object) objInfo.Name = decodeDirObject(object)
return objInfo, err return objInfo, err
} }
if err == nil {
objInfo.Name = decodeDirObject(object)
return objInfo, nil
}
}
objInfo.Name = decodeDirObject(object)
if opts.VersionID != "" {
return objInfo, VersionNotFound{Bucket: bucket, Object: object, VersionID: opts.VersionID}
}
return objInfo, ObjectNotFound{Bucket: bucket, Object: object}
}
func (z *erasureServerPools) deleteObjectFromAllPools(ctx context.Context, bucket string, object string, opts ObjectOptions, poolIndices []poolErrs) (objInfo ObjectInfo, err error) { func (z *erasureServerPools) deleteObjectFromAllPools(ctx context.Context, bucket string, object string, opts ObjectOptions, poolIndices []poolErrs) (objInfo ObjectInfo, err error) {
derrs := make([]error, len(poolIndices)) derrs := make([]error, len(poolIndices))
@ -1291,7 +1312,9 @@ func (z *erasureServerPools) DeleteObjects(ctx context.Context, bucket string, o
go func(idx int, pool *erasureSets) { go func(idx int, pool *erasureSets) {
defer wg.Done() defer wg.Done()
objs := poolObjIdxMap[idx] objs := poolObjIdxMap[idx]
if len(objs) > 0 { if len(objs) == 0 {
return
}
orgIndexes := origIndexMap[idx] orgIndexes := origIndexMap[idx]
deletedObjects, errs := pool.DeleteObjects(ctx, bucket, objs, opts) deletedObjects, errs := pool.DeleteObjects(ctx, bucket, objs, opts)
mu.Lock() mu.Lock()
@ -1303,7 +1326,6 @@ func (z *erasureServerPools) DeleteObjects(ctx context.Context, bucket string, o
dobjects[orgIndexes[i]] = deletedObjects[i] dobjects[orgIndexes[i]] = deletedObjects[i]
} }
mu.Unlock() mu.Unlock()
}
}(idx, pool) }(idx, pool)
} }
wg.Wait() wg.Wait()