backend/tardigrade: Upgrade uplink to v1.0.7

This fixes a regression in the rclone tests from the v1.0.6 upgrade of
uplink. The failure was due to an improperly converted error resulting
in the wrong type of error.
This commit is contained in:
Caleb Case 2020-06-04 09:39:42 -04:00 committed by Nick Craig-Wood
parent 973e3d6a7b
commit a4f1f3d4e8
38 changed files with 138 additions and 712 deletions

View file

@ -7,7 +7,7 @@ os:
go:
- tip
- 1.11.x
- 1.12.x
env:
- ARCH=x86_64
@ -21,4 +21,5 @@ matrix:
script:
- diff -au <(gofmt -d .) <(printf "")
- go test -race -v ./...
- go tool vet -asmdecl .
- go vet -asmdecl .
- ./test-architectures.sh

View file

@ -13,7 +13,7 @@
// limitations under the License.
//
// +build ppc64 ppc64le mips mipsle mips64 mips64le s390x wasm
// +build !386,!amd64,!arm,!arm64 arm64,!linux
package sha256

View file

@ -1,35 +0,0 @@
// +build arm64,!linux
// Minio Cloud Storage, (C) 2016 Minio, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
package sha256
func cpuid(op uint32) (eax, ebx, ecx, edx uint32) {
return 0, 0, 0, 0
}
func cpuidex(op, op2 uint32) (eax, ebx, ecx, edx uint32) {
return 0, 0, 0, 0
}
func xgetbv(index uint32) (eax, edx uint32) {
return 0, 0
}
// Check for sha2 instruction flag.
func haveArmSha() bool {
return false
}

View file

@ -1 +1,3 @@
module github.com/minio/sha256-simd
go 1.12

View file

@ -1,4 +1,4 @@
//+build !noasm
//+build !noasm,!appengine
/*
* Minio Cloud Storage, (C) 2016 Minio, Inc.

View file

@ -1,4 +1,4 @@
//+build !noasm
//+build !noasm,!appengine
/*
* Minio Cloud Storage, (C) 2017 Minio, Inc.
@ -104,15 +104,16 @@ func (d *Avx512Digest) Sum(in []byte) (result []byte) {
}
trail := make([]byte, 0, 128)
trail = append(trail, d.x[:d.nx]...)
len := d.len
// Padding. Add a 1 bit and 0 bits until 56 bytes mod 64.
var tmp [64]byte
tmp[0] = 0x80
if len%64 < 56 {
trail = append(d.x[:d.nx], tmp[0:56-len%64]...)
trail = append(trail, tmp[0:56-len%64]...)
} else {
trail = append(d.x[:d.nx], tmp[0:64+56-len%64]...)
trail = append(trail, tmp[0:64+56-len%64]...)
}
d.nx = 0
@ -375,7 +376,7 @@ func (a512srv *Avx512Server) reset(uid uint64) {
}
// Invoke assembly and send results back
func (a512srv *Avx512Server) blocks() (err error) {
func (a512srv *Avx512Server) blocks() {
inputs := [16][]byte{}
for i := range inputs {
@ -397,7 +398,6 @@ func (a512srv *Avx512Server) blocks() (err error) {
delete(a512srv.digests, uid) // Delete entry from hashmap
}
}
return
}
func (a512srv *Avx512Server) Write(uid uint64, p []byte) (nn int, err error) {

View file

@ -1,4 +1,4 @@
//+build !noasm
//+build !noasm,!appengine
/*
* Minio Cloud Storage, (C) 2016 Minio, Inc.

View file

@ -1,4 +1,4 @@
//+build !noasm
//+build !noasm,!appengine
package sha256

View file

@ -1,4 +1,4 @@
//+build !noasm
//+build !noasm,!appengine
/*
* Minio Cloud Storage, (C) 2016 Minio, Inc.

View file

@ -1,25 +0,0 @@
//+build !noasm
/*
* Minio Cloud Storage, (C) 2016 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package sha256
func blockArmGo(dig *digest, p []byte) {}
func blockAvx2Go(dig *digest, p []byte) {}
func blockAvxGo(dig *digest, p []byte) {}
func blockSsseGo(dig *digest, p []byte) {}
func blockShaGo(dig *digest, p []byte) {}

View file

@ -1,4 +1,4 @@
//+build !noasm
//+build !noasm,!appengine
/*
* Minio Cloud Storage, (C) 2016 Minio, Inc.

View file

@ -1,25 +0,0 @@
//+build !noasm
/*
* Minio Cloud Storage, (C) 2016 Minio, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package sha256
func blockAvx2Go(dig *digest, p []byte) {}
func blockAvxGo(dig *digest, p []byte) {}
func blockSsseGo(dig *digest, p []byte) {}
func blockShaGo(dig *digest, p []byte) {}
func blockArmGo(dig *digest, p []byte) {}

View file

@ -1,4 +1,4 @@
//+build !noasm
//+build !noasm,!appengine
/*
* Minio Cloud Storage, (C) 2016 Minio, Inc.

View file

@ -1,4 +1,4 @@
//+build !noasm !appengine
//+build !noasm,!appengine
// ARM64 version of SHA256
@ -28,7 +28,7 @@
TEXT ·blockArm(SB), 7, $0
MOVD h+0(FP), R0
MOVD message+24(FP), R1
MOVD lenmessage+32(FP), R2 // length of message
MOVD message_len+32(FP), R2 // length of message
SUBS $64, R2
BMI complete

View file

@ -1,4 +1,4 @@
//+build noasm appengine ppc64 ppc64le mips mipsle mips64 mips64le s390x wasm
//+build appengine noasm !amd64,!arm64
/*
* Minio Cloud Storage, (C) 2019 Minio, Inc.

View file

@ -0,0 +1,15 @@
#!/bin/sh
set -e
go tool dist list | while IFS=/ read os arch; do
echo "Checking $os/$arch..."
echo " normal"
GOARCH=$arch GOOS=$os go build -o /dev/null ./...
echo " noasm"
GOARCH=$arch GOOS=$os go build -tags noasm -o /dev/null ./...
echo " appengine"
GOARCH=$arch GOOS=$os go build -tags appengine -o /dev/null ./...
echo " noasm,appengine"
GOARCH=$arch GOOS=$os go build -tags 'appengine noasm' -o /dev/null ./...
done