Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
233 commits
Select commit Hold shift + click to select a range
25f63cf
Add prototype config.yml.
onetechnical Jun 25, 2021
6f15e49
Move circle config to proper location.
onetechnical Jun 25, 2021
aa00149
Add .circleci/config.yml
algojohnlee Jun 25, 2021
0f305f8
add prepare_go command to attempt to clear out existing Go distribution
cce Jun 28, 2021
1183a9d
Clean out more of existing CircleCI go
cce Jun 28, 2021
11d5d05
have Go cleanup step modfiy $BASH_ENV
cce Jun 28, 2021
a617d58
fix NEWPATH
cce Jun 28, 2021
bbe8e9e
Remove travis from branches that list 'circleci'
onetechnical Jun 28, 2021
3b89275
export GOPATH=$HOME/go
cce Jun 28, 2021
11fb003
Fix GOPATH
cce Jun 28, 2021
a8ddbc6
Fix build
cce Jun 28, 2021
e17ffc7
Merge remote-tracking branch 'origin/master' into feature/circleci-split
cce Jun 28, 2021
92eabec
Try making test & integration test dependent on build
cce Jun 28, 2021
9d9b413
run gotestsum directly rather than through makefile
cce Jun 28, 2021
47c7b7c
run gimme before running tests
cce Jun 28, 2021
0fb6012
make go mod cache key match
cce Jun 28, 2021
24276bb
Correctly call packages for split
cce Jun 28, 2021
bc46ec6
download gotestsum before running tests
cce Jun 28, 2021
3f6770e
add GOPATH/bin to path
cce Jun 28, 2021
d001476
Add configure_dev lines
cce Jun 28, 2021
85259b3
Attempt to add parallelization to integration tests
cce Jun 29, 2021
eff24df
upload test results
cce Jun 29, 2021
dc46c48
make arch-generic commands for build, test, integration
cce Jun 29, 2021
755a062
Add gotetsum to integration tests
cce Jun 29, 2021
00c2e27
increase parallelism to 8
cce Jun 29, 2021
404a1b7
Test partitioning utility
algonautshant Jun 29, 2021
1d84aa5
Add arm64 builds
cce Jun 29, 2021
3cf7e18
Merge branch 'shant/turboTests' into feature/circleci-split-turbo
cce Jun 29, 2021
03f7f4d
Run go fmt ./...
cce Jun 29, 2021
1398643
use shant/turboTests PARTITION_TOTAL and PARTITION_ID hashes
cce Jun 29, 2021
cb448ab
Fix lint errors
cce Jun 29, 2021
092fbe9
Use arm64 parallelism
cce Jun 29, 2021
d03fe5e
Use arm64 parallelism
cce Jun 29, 2021
8cd0f17
Add no_output_timeout to short tests
cce Jun 29, 2021
44852be
Add no_output_timeout to short tests
cce Jun 29, 2021
1b382fd
use lowercase testPartitioning to make vet and lint happy
cce Jun 29, 2021
5410138
run check_license.sh -i
cce Jun 29, 2021
cc28c5e
Disable arm64
cce Jun 29, 2021
521b17b
split amd64 and arm64 into separate workflows
cce Jun 29, 2021
f1dbd4a
add build_mac workflow
cce Jun 29, 2021
5d09c73
Fix mac build error
cce Jun 29, 2021
db4cd52
remove parallelism from initial arm64 build step
cce Jun 29, 2021
5a4de45
combine into single workflow
cce Jun 29, 2021
2c0eaef
Merge branch 'feature/circleci-split' into feature/circleci-split-mac
cce Jun 29, 2021
5683a54
single workflow with mac
cce Jun 29, 2021
3cb774a
move homebrew fix up in mac build
cce Jun 29, 2021
a7be031
add homebrew fix to all mac targets
cce Jun 29, 2021
a5ca85f
Use newer MacOS image with newer version of homebrew
cce Jun 29, 2021
d9799e8
Add test partitioning to ExpectFixture.Run expect subtest runner
cce Jun 29, 2021
4ff1ad8
parameterize home dir for mac
cce Jun 29, 2021
132b891
Merge branch 'feature/circleci-split' into feature/circleci-split-turbo
cce Jun 29, 2021
3701ee2
fix double sharding
algonautshant Jun 29, 2021
0a0804f
Remove parallelism: 8 mistake on arm64_build
cce Jun 29, 2021
47e2f51
change to parallelism: 4 for comparison
cce Jun 29, 2021
758a169
Merge pull request #2339 from algonautshant/shant/turboTests
cce Jun 29, 2021
3946996
fix double sharding
algonautshant Jun 29, 2021
fa6cf2b
split out e2e_subs to its own job
cce Jun 30, 2021
a23ab9c
Merge remote-tracking branch 'origin/feature/circleci-split-turbo-4' …
cce Jun 30, 2021
c8bc1da
Merge remote-tracking branch 'origin/feature/circleci-split-turbo-4-s…
cce Jun 30, 2021
715a55d
Try using amd64 "large" for e2e_subs and integration
cce Jun 30, 2021
3676946
Merge remote-tracking branch 'origin/feature/circleci-split-mac' into…
cce Jul 2, 2021
b8d8815
fix parallelism values for max
cce Jul 2, 2021
63bb7fb
Merge branch 'master' of github.com:algorand/go-algorand into brice/w…
bricerisingalgorand Jul 6, 2021
0347384
Raise resource class of macos jobs
bricerisingalgorand Jul 7, 2021
c00ca96
Use large for macos
bricerisingalgorand Jul 7, 2021
6e7da56
Merge branch 'master' of github.com:algorand/go-algorand into brice/w…
bricerisingalgorand Jul 7, 2021
3512578
Remove duplicate license
bricerisingalgorand Jul 7, 2021
9ef6d02
Trigger CircleCI
bricerisingalgorand Jul 7, 2021
a714f2d
Trigger CircleCI
bricerisingalgorand Jul 8, 2021
178c6cd
Trigger CircleCI
bricerisingalgorand Jul 8, 2021
94330b8
Trigger CircleCI
bricerisingalgorand Jul 8, 2021
ff3331b
Raise xcode version
bricerisingalgorand Jul 8, 2021
b3f45d6
Build only amd64 binaries
bricerisingalgorand Jul 9, 2021
440c3a8
Use old version of xcode that doesn't cross compile
bricerisingalgorand Jul 9, 2021
0cf3b2d
use fnv hash for test partitioning, and change name to filename+test
cce Jul 9, 2021
3a4952b
Add windows job
bricerisingalgorand Jul 12, 2021
1af8c59
Try to make windows work
bricerisingalgorand Jul 12, 2021
f6086db
Add disabling hid
bricerisingalgorand Jul 12, 2021
49d47ec
run full test on circle ci
algobarb Jul 12, 2021
b54a18c
Add check on scanWalletsLocked() for if usb is enabled
bricerisingalgorand Jul 12, 2021
065479c
run full integration test
algobarb Jul 12, 2021
b521452
Add kmd ledger disable configuration
cce Jul 12, 2021
fdc1c84
test full integration test only
algobarb Jul 12, 2021
dcbf59b
Add pacman install
bricerisingalgorand Jul 13, 2021
cba8a7e
Try windows default shell
bricerisingalgorand Jul 13, 2021
702e37c
remove rm -rf msys64 from windows set up
bricerisingalgorand Jul 13, 2021
d799041
Get windows build working
bricerisingalgorand Jul 13, 2021
8ec509f
Use bash.exe for prepare_windows command
bricerisingalgorand Jul 13, 2021
171ba98
Remove killing of gpg-agent
bricerisingalgorand Jul 13, 2021
c8c8bf0
remove -short flag from gotestsum
algobarb Jul 13, 2021
fa257bb
increase no output timeout to 45m
algobarb Jul 13, 2021
fa46f45
add latest circle ci config changes without -short references
algobarb Jul 13, 2021
56e7f8a
Install wget on windows agent
bricerisingalgorand Jul 13, 2021
dbeb099
Add way to skip gimme in travis scripts
bricerisingalgorand Jul 14, 2021
49c63db
remove mingw uninstalls
bricerisingalgorand Jul 14, 2021
017d995
Add no_gimme to windows build
bricerisingalgorand Jul 14, 2021
0713f26
add new changes
algobarb Jul 14, 2021
5cdbe34
Add libtool and gcc to pacman installs
bricerisingalgorand Jul 14, 2021
34e282f
Move path and make updates to build job
bricerisingalgorand Jul 14, 2021
fde6880
Try adding libtool pacman package
bricerisingalgorand Jul 14, 2021
3e09861
Add autoconf and automake to pacman install
bricerisingalgorand Jul 14, 2021
8940ccd
Add /usr/bin to path on windows
bricerisingalgorand Jul 14, 2021
f32805b
try running mac on short integration test
algobarb Jul 14, 2021
c3835e8
Break up pacman installs
bricerisingalgorand Jul 14, 2021
c32bd4c
Use cygwin to set up build tools for libsodium
bricerisingalgorand Jul 14, 2021
4d8165c
Merge branch 'master' of github.com:algorand/go-algorand into brice/w…
bricerisingalgorand Jul 14, 2021
2d9a63e
Add cygwin bin to path
bricerisingalgorand Jul 14, 2021
d7e7259
Install dev tools with pacman
bricerisingalgorand Jul 14, 2021
2d23ea0
Add noconfirm to pacman installs
bricerisingalgorand Jul 14, 2021
150a4fd
Remove windows
bricerisingalgorand Jul 14, 2021
15acfc6
Merge branch 'brice/wrapUpCircleCI' into barbara/circleCInightly
algobarb Jul 14, 2021
544875f
Reverting to the state of the project at fa46f45
algobarb Jul 14, 2021
705640a
Merge branch 'barbara/circleCInightly' into brice/wrapUpCircleCI
algobarb Jul 14, 2021
f62f3af
remove short references
algobarb Jul 14, 2021
e22a6a3
Try to add upload_coverage
bricerisingalgorand Jul 14, 2021
a875fc1
Make all instances medium to start right sizing
bricerisingalgorand Jul 14, 2021
ab33b2d
add test fuzzing to fuzzer
algobarb Jul 14, 2021
20f5454
gofmt agreement/fuzzer
algobarb Jul 14, 2021
3ab8ac7
Make e2e subs jobs large instances
bricerisingalgorand Jul 14, 2021
2473720
Add libsodium cacheing to circleci job
bricerisingalgorand Jul 14, 2021
a313f4e
Use md5 instead of md5sum
bricerisingalgorand Jul 14, 2021
8848094
Use supported environment variables for caching
bricerisingalgorand Jul 14, 2021
af2d5c2
Add mkdir tmp to caching commands
bricerisingalgorand Jul 14, 2021
ec21eb6
Use openssl md5 hashing function
bricerisingalgorand Jul 14, 2021
2d12a9d
update run_tests.sh
algobarb Jul 14, 2021
b30a736
Try checksum of whole hash list
bricerisingalgorand Jul 14, 2021
c730aa6
Add quotes around checksum file
bricerisingalgorand Jul 14, 2021
5b30f46
add branch filters
algobarb Jul 14, 2021
011e614
fix typo
algobarb Jul 14, 2021
5147de4
fix mac_amd64_e2e_subs_nightly
algobarb Jul 14, 2021
63a47fd
reenable TestAgreementSynchronous10
algobarb Jul 14, 2021
dda5124
run nightly on master with testsync10
algobarb Jul 14, 2021
7af1287
change from regex to string
algobarb Jul 14, 2021
d6e38f0
use hyphen
algobarb Jul 14, 2021
d6f7b9c
test rel nightly
algobarb Jul 14, 2021
f8e4707
run master in place of rel/nightly
algobarb Jul 14, 2021
a31a89d
test sync10
algobarb Jul 14, 2021
faef186
only nightly
algobarb Jul 14, 2021
d79b576
try without quotes
algobarb Jul 15, 2021
f6d394c
try with a different regex
algobarb Jul 15, 2021
afa2e32
try regex
algobarb Jul 15, 2021
8435265
try pull
algobarb Jul 15, 2021
f30d686
Add -p option to libsodium cache so that it works even if the folder …
bricerisingalgorand Jul 15, 2021
64748a7
try master again
algobarb Jul 15, 2021
66067bd
test workflows 2.1
algobarb Jul 15, 2021
58c5f3d
test branches without filter
algobarb Jul 15, 2021
0ef8546
revert back
algobarb Jul 15, 2021
9cbabef
try adding -full flag in gotestsum
algobarb Jul 15, 2021
1d91d71
Trigger CircleCI
bricerisingalgorand Jul 15, 2021
1800bd0
revert
algobarb Jul 15, 2021
dbaeb33
Save go cache between builds
bricerisingalgorand Jul 15, 2021
1345025
Add go cache to test run
bricerisingalgorand Jul 15, 2021
5ac8518
run gotestsum with --format testname
algobarb Jul 15, 2021
2c0f9ca
Trigger CircleCI
bricerisingalgorand Jul 15, 2021
6585761
Fix go cache so that it always updates, but restores latest
bricerisingalgorand Jul 15, 2021
f380a81
Update makefile so that go cache folder is always used
bricerisingalgorand Jul 15, 2021
b4b983c
Trigger CircleCI
bricerisingalgorand Jul 15, 2021
6f89c6f
Only build libsodium fork in ci if it doesn't exist
bricerisingalgorand Jul 15, 2021
f50e954
Fix libsodium cache path
bricerisingalgorand Jul 15, 2021
b368443
make sure we don't run short test in run_tests.sh
algobarb Jul 15, 2021
14c4977
Trigger CircleCI
bricerisingalgorand Jul 15, 2021
f98ce35
Fix gocache cache key in builds
bricerisingalgorand Jul 15, 2021
294c01f
Export gocache var properly
bricerisingalgorand Jul 15, 2021
08f945b
Merge branch 'barbara/circleCInightly' into brice/wrapUpCircleCI
algobarb Jul 15, 2021
1050cc2
run nightly test with latest circle config changes
algobarb Jul 15, 2021
d72dbd0
Trigger CircleCI
bricerisingalgorand Jul 15, 2021
507c789
add fuzzer changes and modify run_tests.sh
algobarb Jul 15, 2021
c64fa16
add fuzzer changes and modify run_tests.sh
algobarb Jul 15, 2021
3064a76
show test names
algobarb Jul 16, 2021
d1251c1
remove skip on sync10
algobarb Jul 16, 2021
89a1c56
test
algobarb Jul 16, 2021
6d1ef4e
Merge branch 'master' of github.com:algorand/go-algorand into brice/w…
bricerisingalgorand Jul 16, 2021
e24e442
Trigger CircleCI
bricerisingalgorand Jul 16, 2021
aca96f0
Trigger CircleCI
bricerisingalgorand Jul 19, 2021
e190400
Merge branch 'brice-circleci' into test-partition-hash
cce Jul 19, 2021
85f5f01
update skip message
cce Jul 19, 2021
eff5395
move testpartitioning package to test/partitiontest
cce Jul 19, 2021
dedcaec
Correct windows golang version
Jul 19, 2021
be2c175
Merge pull request #5 from cce/test-partition-hash
bricerisingalgorand Jul 19, 2021
58945da
Correct windows golang version
bricerisingalgorand Jul 19, 2021
deec9b9
Merge branch 'brice/wrapUpCircleCI' of github.com:bricerisingalgorand…
Jul 19, 2021
a3831a6
Merge branch 'master' of github.com:algorand/go-algorand into brice/w…
bricerisingalgorand Jul 20, 2021
32f3518
Add touch back to buildsrc and use env vars for cache folder
bricerisingalgorand Jul 20, 2021
0eb0a3e
Remove branch !~ /circleci/ from travis job
bricerisingalgorand Jul 20, 2021
793648b
Merge branch 'barbara/circleCInightly' into brice/wrapUpCircleCI
algobarb Jul 20, 2021
577dbe1
test hello-world filter
algobarb Jul 20, 2021
b88e271
test hello-world filter
algobarb Jul 20, 2021
6bb66cb
test pull filter
algobarb Jul 20, 2021
40291f1
modified pull branch
algobarb Jul 20, 2021
5d6263e
modified pull branch
algobarb Jul 20, 2021
cb4b239
test barbara/circleCInightly as filter
algobarb Jul 20, 2021
b1fb6cc
test /pull\/[0-9]+/
algobarb Jul 20, 2021
47b8198
Rollback msgp_gen_test.go files
bricerisingalgorand Jul 20, 2021
1d390b8
test with pulled in changes
algobarb Jul 20, 2021
49b476c
Add partitiontest.PartitionTest(t) to RunEncodingTest
bricerisingalgorand Jul 20, 2021
f635bec
add agreement fuzzer again
algobarb Jul 20, 2021
b6e9af5
adjust timeout
algobarb Jul 20, 2021
9133421
add the new partitiontest package name
algobarb Jul 20, 2021
e995d0c
Merge branch 'barbara/circleCInightly' into brice/wrapUpCircleCI
algobarb Jul 20, 2021
aec82da
merge in other code
algobarb Jul 20, 2021
00f33c0
Bump msgp version and rebuild msgp_gen_tests
bricerisingalgorand Jul 21, 2021
63bce62
Update data/transactions/logic/assembler_test.go
bricerisingalgorand Jul 21, 2021
559b42a
extend timeout
algobarb Jul 21, 2021
dfc7b28
Merge branch 'brice/wrapUpCircleCI' of github.com:bricerisingalgorand…
bricerisingalgorand Jul 21, 2021
ac022ae
Comment out upload coverage in travis
bricerisingalgorand Jul 21, 2021
1f65791
Merge branch 'barbara/circleCInightly' into brice/wrapUpCircleCI
algobarb Jul 21, 2021
7802725
fuzzer test partitions
algobarb Jul 21, 2021
363a07f
no_output_timeout with new changes
algobarb Jul 21, 2021
d5e85d3
set rel/nightly filter example
algobarb Jul 21, 2021
c0eaac4
Correct windows golang version
bricerisingalgorand Jul 19, 2021
db4315b
Infrastructure to check AVM stack manipulation opcodes better (#2567)
jannotti Jul 16, 2021
e9f12bd
Use byte format for asset b64 fields. (#2573)
winder Jul 16, 2021
803e1c2
Addressing panic in assembler (#2575)
barnjamin Jul 17, 2021
d1f30d3
Add touch back to buildsrc and use env vars for cache folder
bricerisingalgorand Jul 20, 2021
f2ef0f3
Remove branch !~ /circleci/ from travis job
bricerisingalgorand Jul 20, 2021
9d3b1b5
Rollback msgp_gen_test.go files
bricerisingalgorand Jul 20, 2021
ff86939
Add partitiontest.PartitionTest(t) to RunEncodingTest
bricerisingalgorand Jul 20, 2021
b1b36b8
Bump msgp version and rebuild msgp_gen_tests
bricerisingalgorand Jul 21, 2021
f40501f
Update data/transactions/logic/assembler_test.go
bricerisingalgorand Jul 21, 2021
afc761b
Comment out upload coverage in travis
bricerisingalgorand Jul 21, 2021
7273be4
change the timeouts
algobarb Jul 21, 2021
f9a2e50
reintroduce short in the general integration test
algobarb Jul 21, 2021
212e2c4
fix errors
algobarb Jul 21, 2021
a5a971f
remove USE_CIRCLECI_SPLIT section from e2e_go_tests.sh
cce Jul 21, 2021
0854af5
fix fuzzer test partitioning
algobarb Jul 21, 2021
d4093bd
Merge branch 'barbara/CircleFilter' into brice/wrapUpCircleCI
algobarb Jul 21, 2021
eb9069e
merge in the latest changes
algobarb Jul 21, 2021
cfaeae0
Merge pull request #6 from algobarb/barbara/CircleFilter
bricerisingalgorand Jul 21, 2021
fc586dc
gofmt fuzzer'
algobarb Jul 22, 2021
d4b99ca
add back the e2e_go_tests changes that my last PR removed
algobarb Jul 22, 2021
e65b980
Merge pull request #7 from algobarb/barbara/fixgofmt
bricerisingalgorand Jul 22, 2021
e774f32
remove CIRCLECI_SPLIT
algobarb Jul 22, 2021
d02106a
Merge pull request #8 from algobarb/barbara/fixgofmt
bricerisingalgorand Jul 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
688 changes: 685 additions & 3 deletions .circleci/config.yml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ before_cache:
esac
docker save -o $HOME/docker_cache/images.tar $(docker images -a -q)

after_success:
- scripts/travis/upload_coverage.sh || true
#after_success:
# - scripts/travis/upload_coverage.sh || true

addons:
apt:
Expand Down
7 changes: 4 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ BUILDBRANCH := $(shell ./scripts/compute_branch.sh)
CHANNEL ?= $(shell ./scripts/compute_branch_channel.sh $(BUILDBRANCH))
DEFAULTNETWORK ?= $(shell ./scripts/compute_branch_network.sh $(BUILDBRANCH))
DEFAULT_DEADLOCK ?= $(shell ./scripts/compute_branch_deadlock_default.sh $(BUILDBRANCH))
export GOCACHE=$(SRCPATH)/tmp/go-cache

GOTAGSLIST := sqlite_unlock_notify sqlite_omit_load_extension

Expand Down Expand Up @@ -203,9 +204,9 @@ build: buildsrc
# to cache binaries from time to time on empty NFS
# dirs
buildsrc: check-go-version crypto/libs/$(OS_TYPE)/$(ARCH)/lib/libsodium.a node_exporter NONGO_BIN
mkdir -p tmp/go-cache && \
touch tmp/go-cache/file.txt && \
GOCACHE=$(SRCPATH)/tmp/go-cache go install $(GOTRIMPATH) $(GOTAGS) $(GOBUILDMODE) -ldflags="$(GOLDFLAGS)" ./...
mkdir -p "${GOCACHE}" && \
touch "${GOCACHE}"/file.txt && \
go install $(GOTRIMPATH) $(GOTAGS) $(GOBUILDMODE) -ldflags="$(GOLDFLAGS)" ./...

check-go-version:
./scripts/check_golang_version.sh build
Expand Down
13 changes: 13 additions & 0 deletions agreement/bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,13 @@ import (
"github.com/algorand/go-algorand/data/committee"
"github.com/algorand/go-algorand/logging"
"github.com/algorand/go-algorand/protocol"
"github.com/algorand/go-algorand/test/partitiontest"
)

// Test Bundle Creation
func TestBundleCreation(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -68,6 +71,8 @@ func TestBundleCreation(t *testing.T) {

// Test Bundle validation with Zero Votes
func TestBundleCreationWithZeroVotes(t *testing.T) {
partitiontest.PartitionTest(t)

//ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
ledger, _, _, _ := readOnlyFixture100()

Expand Down Expand Up @@ -105,6 +110,8 @@ func makeBundlePanicWrapper(t *testing.T, message string, proposal proposalValue

//Test Bundle Creation with Validation for duplicate votes from same sender
func TestBundleCreationWithVotesFromSameAddress(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture10()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -168,6 +175,8 @@ func TestBundleCreationWithVotesFromSameAddress(t *testing.T) {

//Test Bundle Creation with Validation
func TestBundleCreationWithEquivocationVotes(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture10()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -276,6 +285,8 @@ func TestBundleCreationWithEquivocationVotes(t *testing.T) {

//Test Bundle Creation with Validation
func TestBundleCertificationWithEquivocationVotes(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture10()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -349,6 +360,8 @@ func certificatePanicWrapper(t *testing.T, message string, ub unauthenticatedBun

// Test Bundle Creation with Equivocation Votes under Quorum
func TestBundleCreationWithEquivocationVotesUnderQuorum(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand Down
21 changes: 21 additions & 0 deletions agreement/certificate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import (
"github.com/algorand/go-algorand/crypto"
"github.com/algorand/go-algorand/logging"
"github.com/algorand/go-algorand/protocol"
"github.com/algorand/go-algorand/test/partitiontest"
)

func makeCertTesting(digest crypto.Digest, votes []vote, equiVotes []equivocationVote) Certificate {
Expand All @@ -42,6 +43,8 @@ func verifyBundleAgainstLedger(b unauthenticatedBundle, l Ledger, avv *AsyncVote
}

func TestCertificateGoodCertificateBasic(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand All @@ -68,6 +71,8 @@ func TestCertificateGoodCertificateBasic(t *testing.T) {
}

func TestCertificateGoodCertificateEarlyBreak(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand All @@ -94,6 +99,8 @@ func TestCertificateGoodCertificateEarlyBreak(t *testing.T) {
}

func TestCertificateFinalCert(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand All @@ -120,6 +127,8 @@ func TestCertificateFinalCert(t *testing.T) {
}

func TestCertificateBadCertificateWithFakeDoubleVote(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -173,6 +182,8 @@ func TestCertificateBadCertificateWithFakeDoubleVote(t *testing.T) {
}

func TestCertificateDifferentBlock(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -202,6 +213,8 @@ func TestCertificateDifferentBlock(t *testing.T) {
}

func TestCertificateNoCertStep(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand All @@ -224,6 +237,8 @@ func TestCertificateNoCertStep(t *testing.T) {
}

func TestCertificateNotEnoughVotesToCert(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -256,6 +271,8 @@ func TestCertificateNotEnoughVotesToCert(t *testing.T) {
}

func TestCertificateCertWrongRound(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -285,6 +302,8 @@ func TestCertificateCertWrongRound(t *testing.T) {
}

func TestCertificateCertWithTooFewVotes(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand Down Expand Up @@ -313,6 +332,8 @@ func TestCertificateCertWithTooFewVotes(t *testing.T) {
}

func TestCertificateDupVote(t *testing.T) {
partitiontest.PartitionTest(t)

ledger, addresses, vrfSecrets, otSecrets := readOnlyFixture100()
round := ledger.NextRound()
period := period(0)
Expand Down
21 changes: 21 additions & 0 deletions agreement/cryptoRequestContext_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/stretchr/testify/require"

"github.com/algorand/go-algorand/protocol"
"github.com/algorand/go-algorand/test/partitiontest"
)

func forEachTagDo(fn func(protocol.Tag)) {
Expand All @@ -32,6 +33,8 @@ func forEachTagDo(fn func(protocol.Tag)) {
}

func TestCryptoRequestContextAddCancelRound(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)
per := period(10)
Expand Down Expand Up @@ -65,6 +68,8 @@ func TestCryptoRequestContextAddCancelRound(t *testing.T) {
}

func TestCryptoRequestContextAddCancelPeriod(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)
per := period(10)
Expand Down Expand Up @@ -99,6 +104,8 @@ func TestCryptoRequestContextAddCancelPeriod(t *testing.T) {
}

func TestCryptoRequestContextAddCancelProposal(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)
per := period(10)
Expand All @@ -123,6 +130,8 @@ func TestCryptoRequestContextAddCancelProposal(t *testing.T) {
}

func TestCryptoRequestContextAddCancelPinnedProposal(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)
proposal := cryptoProposalRequest{message: message{Tag: protocol.ProposalPayloadTag}, Round: rnd, Pinned: true}
Expand All @@ -146,6 +155,8 @@ func TestCryptoRequestContextAddCancelPinnedProposal(t *testing.T) {
}

func TestCryptoRequestContextAddNoCancelPinnedProposal(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)
per := period(10)
Expand All @@ -169,6 +180,8 @@ func TestCryptoRequestContextAddNoCancelPinnedProposal(t *testing.T) {
}

func TestCryptoRequestContextAddNoInterferencePinnedProposal(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)
per := period(10)
Expand All @@ -192,6 +205,8 @@ func TestCryptoRequestContextAddNoInterferencePinnedProposal(t *testing.T) {
}

func TestCryptoRequestContextCleanupByRound(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)
per := period(10)
Expand Down Expand Up @@ -239,6 +254,8 @@ func TestCryptoRequestContextCleanupByRound(t *testing.T) {
}

func TestCryptoRequestContextCleanupByRoundPinnedCertify(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)

Expand Down Expand Up @@ -300,6 +317,8 @@ func TestCryptoRequestContextCleanupByRoundPinnedCertify(t *testing.T) {
}

func TestCryptoRequestContextCleanupByPeriod(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)
per := period(10)
Expand Down Expand Up @@ -361,6 +380,8 @@ func TestCryptoRequestContextCleanupByPeriod(t *testing.T) {
}

func TestCryptoRequestContextCleanupByPeriodPinned(t *testing.T) {
partitiontest.PartitionTest(t)

pending := makePendingRequestsContext()
rnd := round(10)

Expand Down
3 changes: 3 additions & 0 deletions agreement/cryptoVerifier_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ import (
"github.com/algorand/go-algorand/data/committee"
"github.com/algorand/go-algorand/logging"
"github.com/algorand/go-algorand/protocol"
"github.com/algorand/go-algorand/test/partitiontest"
)

var _ = fmt.Printf
Expand Down Expand Up @@ -136,6 +137,8 @@ func getSelectorCapacity(tag protocol.Tag) int {
}

func TestCryptoVerifierBuffers(t *testing.T) {
partitiontest.PartitionTest(t)

t.Skip("Test is flaky")

t.Parallel()
Expand Down
3 changes: 3 additions & 0 deletions agreement/demux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"github.com/algorand/go-algorand/data/committee"
"github.com/algorand/go-algorand/logging"
"github.com/algorand/go-algorand/protocol"
"github.com/algorand/go-algorand/test/partitiontest"
"github.com/algorand/go-algorand/util/timers"
)

Expand Down Expand Up @@ -414,6 +415,8 @@ var demuxTestUsecases = []demuxTestUsecase{
}

func TestDemuxNext(t *testing.T) {
partitiontest.PartitionTest(t)

dt := &demuxTester{T: t}
dt.Test()
}
Expand Down
3 changes: 3 additions & 0 deletions agreement/encoding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,12 @@ import (
"github.com/stretchr/testify/require"

"github.com/algorand/go-algorand/protocol"
"github.com/algorand/go-algorand/test/partitiontest"
)

func TestEmptyEncoding(t *testing.T) {
partitiontest.PartitionTest(t)

var v vote
require.Equal(t, 1, len(protocol.Encode(&v)))

Expand Down
10 changes: 7 additions & 3 deletions agreement/fuzzer/tests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ import (
"github.com/algorand/go-algorand/logging"
"github.com/algorand/go-deadlock"
//"github.com/algorand/go-algorand/protocol"
"github.com/algorand/go-algorand/test/partitiontest"
)

func TestMain(m *testing.M) {
Expand Down Expand Up @@ -114,6 +115,7 @@ func TestCircularNetworkTopology(t *testing.T) {
nodeCount := nodeCounts[i]
t.Run(fmt.Sprintf("TestCircularNetworkTopology-%d", nodeCount),
func(t *testing.T) {
partitiontest.PartitionTest(t) // Check if this expect test should by run, may SKIP
nodes := nodeCount
topologyConfig := TopologyFilterConfig{
NodesConnection: make(map[int][]int),
Expand Down Expand Up @@ -430,6 +432,7 @@ func TestFuzzer(t *testing.T) {
require.NoError(t, err)
for testName := range jsonFiles {
t.Run(testName, func(t *testing.T) {
partitiontest.PartitionTest(t) // Check if this expect test should by run, may SKIP
jsonFilename := jsonFiles[testName]
jsonBytes, err := ioutil.ReadFile(jsonFilename)
require.NoError(t, err)
Expand Down Expand Up @@ -493,6 +496,7 @@ func TestNetworkBandwidth(t *testing.T) {
nodeCount := nodeCounts[i]
t.Run(fmt.Sprintf("TestNetworkBandwidth-%d", nodeCount),
func(t *testing.T) {
partitiontest.PartitionTest(t) // Check if this expect test should by run, may SKIP
nodes := nodeCount
topologyConfig := TopologyFilterConfig{
NodesConnection: make(map[int][]int),
Expand Down Expand Up @@ -544,7 +548,7 @@ func TestUnstakedNetworkLinearGrowth(t *testing.T) {
if testing.Short() {
t.Skip()
}

partitiontest.PartitionTest(t) // Check if this expect test should by run, may SKIP
relayCount := 8
stakedNodeCount := 4
deadlock.Opts.Disable = true
Expand Down Expand Up @@ -657,7 +661,7 @@ func TestStakedNetworkQuadricGrowth(t *testing.T) {
if testing.Short() {
t.Skip()
}

partitiontest.PartitionTest(t) // Check if this expect test should by run, may SKIP
relayCount := 1
nodeCount := []int{4, 5, 6, 7, 8, 9, 10}
totalRelayedMessages := []int{}
Expand Down Expand Up @@ -768,7 +772,7 @@ func TestRegossipinngElimination(t *testing.T) {
if testing.Short() {
t.Skip()
}

partitiontest.PartitionTest(t) // Check if this expect test should by run, may SKIP
relayCounts := 8
nodeCount := 20
deadlock.Opts.Disable = true
Expand Down
Loading