Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
52 commits
Select commit Hold shift + click to select a range
80bd5ed
Make config.MaxLogCalls dependant on some consensus param (#2732)
algorandskiy Aug 13, 2021
66e54d9
testing: update pingpong transaction sending logic (#2747)
tsachiherman Aug 16, 2021
f774e7e
testing: fixing a typo in e2e.sh for integration tests (#2761)
algojack Aug 17, 2021
d7e9240
Display extra pages in goal info commands (#2763)
jasonpaulos Aug 18, 2021
2baca4f
Improve error message in update.sh when updater is corrupt. (#2766)
winder Aug 18, 2021
c99b5be
remove codegen from travis file (#2768)
algobarb Aug 18, 2021
8ef8821
add account balance range (#2771)
shiqizng Aug 19, 2021
d010564
Fix ParseHostOrURL and enable expect tests (#2772)
algorandskiy Aug 19, 2021
b302a21
Add comments for protocol hash IDs and tags. (#2774)
tolikzinovyev Aug 20, 2021
153e97b
Limit the number of buckets in verifiedTransactionCache to 3. (#2775)
tolikzinovyev Aug 20, 2021
b8fbb8c
Disable deadlock for netgoal (#2785)
tsachiherman Aug 23, 2021
3d41c6a
Fix goalNodeTest.exp (#2781)
algorandskiy Aug 23, 2021
849e924
Fix TestStartAndStop (#2757)
algonautshant Aug 23, 2021
0d6a2a9
Ensure that AssetCreator is not used before proto.LogicSigVersion=5 (…
jannotti Aug 23, 2021
2833997
Disable expect tests again (#2790)
algorandskiy Aug 23, 2021
98ed08f
Ensure disassemble/reassemble cycle works in testProg. (#2745)
jannotti Aug 23, 2021
bd5a000
per-client RAM measurement scripts (#2783)
brianolson Aug 23, 2021
2e7fc77
Split expect tests into separate circleci group (#2792)
winder Aug 25, 2021
2b03a60
Dryrun return cost (#2746)
AyAggarwal Aug 26, 2021
390edd1
Simplify `startEvaluator()` (#2812)
tolikzinovyev Aug 30, 2021
9f81a92
Fix overriding consensus parameters in evaluator. (#2811)
tolikzinovyev Aug 30, 2021
b44e3d9
Bugfix/fix nano s enumeration bug (#2822)
id-ms Sep 1, 2021
ff9fff2
Merge branch 'rel/stable' of github.com:algorand/go-algorand into rel…
bricerisingalgorand Sep 1, 2021
c8ff2f6
Bump Version, Remove buildnumber.dat and genesistimestamp.dat files.
Algo-devops-service Sep 1, 2021
b2f9d20
Remove unnecessary empty line
bricerisingalgorand Sep 1, 2021
28d9e86
Merge pull request #2824 from algorand/relstable2.10.1-remerge
algojohnlee Sep 1, 2021
be99077
Fix go vet issues. (#2826)
tolikzinovyev Sep 2, 2021
632b835
expose nonparticipation txn field in teal (#2823)
shiqizng Sep 2, 2021
ac51e70
Increase max app opt ins to 50 (#2750)
algorandskiy Sep 2, 2021
e32b2c2
Application transactions (#2661)
jannotti Sep 3, 2021
f8169d2
Use math.bits intrinsics to simplify addw/mulw opcodes (#2839)
jannotti Sep 4, 2021
8a0d699
global GroupID (#2838)
jannotti Sep 7, 2021
cd832b3
Fix partition recovery tests (#2820)
algonautshant Sep 7, 2021
ed00b18
Increase coverage in AVM code. Bug fix in account fields of tx_field …
jannotti Sep 7, 2021
418b101
Display app address in `goal app info` & show logs are binary in REST…
jasonpaulos Sep 7, 2021
cde7eed
Add opcodes for dynamically indexing into Txn array fields (#2847)
algochoi Sep 7, 2021
a3153d8
tx_field tables (#2849)
jannotti Sep 8, 2021
4da75fa
Checking CircleCI tests run once and only once (#2749)
algojack Sep 8, 2021
6afa86b
loads and stores opcodes that take scratch slot from stack (#2853)
jannotti Sep 8, 2021
b8b7281
fix issue with checking RUN_EXPECT when listing packages (#2863)
cce Sep 9, 2021
83fb239
Data race in tests: TestApplicationsUpgradeOverREST race (#2844)
algonautshant Sep 11, 2021
8f743a9
ECDSA secp256k1 (#2852)
algorandskiy Sep 11, 2021
d75f4eb
Add ledger.GetBlockAddresses() (#2872)
tolikzinovyev Sep 13, 2021
0cfe715
fix auto-gen tests. (#2880)
tsachiherman Sep 14, 2021
827ac62
Fix pingpong teal test (#2835)
egieseke Sep 14, 2021
08d31fa
Introduce itxn to get inner transaction results (#2883)
jannotti Sep 14, 2021
bfc07db
Extract rename (#2891)
jannotti Sep 14, 2021
bbe8865
change import paths used in crypto/secp256k1/dummy.go (#2881)
cce Sep 14, 2021
b7a5b82
Consensus V30 updates (#2877)
algochoi Sep 15, 2021
8dd4d09
Update the Version, BuildNumber, genesistimestamp.data
Algo-devops-service Sep 15, 2021
13edc2a
Merge pull request #2893 from Algo-devops-service/relbeta3.0.0
algojohnlee Sep 15, 2021
d279007
Rel/beta 3.0.1 (#2905)
algobarb Sep 17, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
253 changes: 227 additions & 26 deletions .circleci/config.yml

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion .golangci-warnings.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
run:
timeout: 5m
tests: true

linters:
disable-all: true
enable:
Expand Down Expand Up @@ -74,3 +74,6 @@ issues:
- gosimple
- unused
- partitiontest
- path: crypto/secp256k1/secp256_test\.go
linters:
- partitiontest
13 changes: 0 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ jobs:
- scripts/travis/build_test.sh

- stage: build_pr
os: linux
name: Ubuntu AMD64 CodeGen Verification
script:
- scripts/travis/codegen_verification.sh
- # same stage, parallel job
os: linux
name: Ubuntu AMD64 Build
script:
Expand Down Expand Up @@ -92,11 +87,6 @@ jobs:
- $mingw64 scripts/travis/build_test.sh

- stage: build_release
os: linux
name: Ubuntu AMD64 CodeGen Verification
script:
- scripts/travis/codegen_verification.sh
- # same stage, parallel job
os: linux
name: Ubuntu AMD64 Build
script:
Expand Down Expand Up @@ -217,9 +207,6 @@ before_cache:
esac
docker save -o $HOME/docker_cache/images.tar $(docker images -a -q)

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

addons:
apt:
packages:
Expand Down
3 changes: 3 additions & 0 deletions agreement/agreementtest/simulate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,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/db"
)

Expand Down Expand Up @@ -294,6 +295,8 @@ func (l *testLedger) EnsureDigest(c agreement.Certificate, verifier *agreement.A
}

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

f, _ := os.Create(t.Name() + ".log")
logging.Base().SetJSONFormatter()
logging.Base().SetOutput(f)
Expand Down
8 changes: 8 additions & 0 deletions agreement/fuzzer/tests_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"math"
"math/rand"
"os"

//ossignal "os/signal"
"path/filepath"
//"runtime/pprof"
Expand All @@ -36,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"
)
Expand Down Expand Up @@ -105,6 +107,8 @@ func testConfig(t *testing.T, config NetworkConfig) (network *Network) {
*/

func TestCircularNetworkTopology(t *testing.T) {
// partitiontest.PartitionTest(t)
// Causes double partition, so commented out on purpose
var nodeCounts []int
if testing.Short() {
nodeCounts = []int{4, 6}
Expand Down Expand Up @@ -422,6 +426,8 @@ type FuzzerTestFile struct {
}

func TestFuzzer(t *testing.T) {
// partitiontest.PartitionTest(t)
// Causes double partition, so commented out on purpose
jsonFiles := make(map[string]string) // map json test to full json file name.
err := filepath.Walk(".", func(path string, info os.FileInfo, err error) error {
if strings.HasSuffix(info.Name(), ".json") {
Expand Down Expand Up @@ -475,6 +481,8 @@ func TestFuzzer(t *testing.T) {
}

func TestNetworkBandwidth(t *testing.T) {
// partitiontest.PartitionTest(t)
// Causes double partition, so commented out on purpose
// travis rans out of memory when we get a high nodes count.. so we'll skip it for now.
if testing.Short() {
t.Skip()
Expand Down
2 changes: 2 additions & 0 deletions cmd/algofix/deadlock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import (
"strings"
"testing"

"github.com/algorand/go-algorand/test/partitiontest"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -130,6 +131,7 @@ func main() {
`

func TestDeadlockRewrite(t *testing.T) {
partitiontest.PartitionTest(t)
t.Run("simple", func(t *testing.T) { testDeadlock(t, deadlockSimpleSrc, deadlockSimpleDest) })
t.Run("onoff", func(t *testing.T) { testDeadlock(t, deadlockTestSrc, deadlockTestFin) })
}
Expand Down
3 changes: 3 additions & 0 deletions cmd/algofix/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import (
"go/parser"
"strings"
"testing"

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

type testCase struct {
Expand Down Expand Up @@ -73,6 +75,7 @@ func parseFixPrint(t *testing.T, fn func(*ast.File) bool, desc, in string, mustB
}

func TestRewrite(t *testing.T) {
partitiontest.PartitionTest(t)
for _, tt := range testCases {
// Apply fix: should get tt.Out.
out, fixed, ok := parseFixPrint(t, tt.Fn, tt.Name, tt.In, true)
Expand Down
6 changes: 6 additions & 0 deletions cmd/algoh/blockWatcher_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"time"

"github.com/algorand/go-algorand/daemon/algod/api/spec/v1"
"github.com/algorand/go-algorand/test/partitiontest"
"github.com/stretchr/testify/require"
)

Expand All @@ -38,6 +39,7 @@ func bw(client Client) *blockWatcher {
// When the status continues to report block 300
// Then blockIfStalled will block until the next block is reported
func TestBlockIfStalled(t *testing.T) {
partitiontest.PartitionTest(t)
client := mockClient{
error: []error{nil, nil, nil},
status: makeNodeStatuses(300, 300, 300, 301),
Expand All @@ -59,6 +61,7 @@ func TestBlockIfStalled(t *testing.T) {
// When the status continues to increase quickly
// Then blockIfCatchup will block until a block is reported twice
func TestBlockIfCatchup(t *testing.T) {
partitiontest.PartitionTest(t)
client := mockClient{
error: []error{nil, nil, nil},
status: makeNodeStatuses(301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 310),
Expand All @@ -80,6 +83,7 @@ func TestBlockIfCatchup(t *testing.T) {
// When the status is not changing quickly
// Then blockIfCatchup will return after the first status call.
func TestBlockIfCaughtUp(t *testing.T) {
partitiontest.PartitionTest(t)
client := mockClient{
error: []error{nil, nil, nil},
status: makeNodeStatuses(300),
Expand Down Expand Up @@ -111,6 +115,7 @@ func (l *testlistener) onBlock(block v1.Block) {
}

func TestE2E(t *testing.T) {
partitiontest.PartitionTest(t)
client := makeMockClient(
[]error{nil, nil, nil},
makeNodeStatuses(300, 301, 302, 302, 302, 302, 302, 302, 310, 320, 321, 321, 321, 322),
Expand Down Expand Up @@ -159,6 +164,7 @@ func TestE2E(t *testing.T) {
}

func TestAbortDuringStall(t *testing.T) {
partitiontest.PartitionTest(t)
client := makeMockClient(
[]error{},
makeNodeStatuses(300),
Expand Down
3 changes: 3 additions & 0 deletions cmd/algoh/blockstats_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (

"github.com/algorand/go-algorand/daemon/algod/api/spec/v1"
"github.com/algorand/go-algorand/logging/telemetryspec"
"github.com/algorand/go-algorand/test/partitiontest"
"github.com/stretchr/testify/require"
)

Expand All @@ -42,6 +43,7 @@ func (mes *MockEventSender) EventWithDetails(category telemetryspec.Category, id
}

func TestConsecutiveBlocks(t *testing.T) {
partitiontest.PartitionTest(t)
sender := MockEventSender{}
bs := blockstats{log: &sender}

Expand All @@ -57,6 +59,7 @@ func TestConsecutiveBlocks(t *testing.T) {
}

func TestAgreementTime(t *testing.T) {
partitiontest.PartitionTest(t)
sleepTime := 50 * time.Millisecond
testAttempts := 0
const maxTestAttempts = 10
Expand Down
2 changes: 1 addition & 1 deletion cmd/algoh/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ func main() {
}()

// Handle signals cleanly
c := make(chan os.Signal)
c := make(chan os.Signal, 1)
signal.Notify(c, os.Interrupt, syscall.SIGTERM, syscall.SIGINT)
signal.Ignore(syscall.SIGHUP)
go func() {
Expand Down
7 changes: 6 additions & 1 deletion cmd/catchupsrv/download_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,30 @@
package main

import (
"github.com/stretchr/testify/require"
"testing"

"github.com/algorand/go-algorand/test/partitiontest"
"github.com/stretchr/testify/require"
)

func TestBlockToPath(t *testing.T) {
partitiontest.PartitionTest(t)
require.Equal(t, "00/00/000000", blockToPath(0))
require.Equal(t, "00/00/0000rs", blockToPath(1000))
require.Equal(t, "05/yc/05ycfo", blockToPath(10000500))
require.Equal(t, "4ll/2c/4ll2cic", blockToPath(10012300500))
}

func TestBlockToFileName(t *testing.T) {
partitiontest.PartitionTest(t)
require.Equal(t, "000000", blockToFileName(0))
require.Equal(t, "0000rs", blockToFileName(1000))
require.Equal(t, "05ycfo", blockToFileName(10000500))
require.Equal(t, "4ll2cic", blockToFileName(10012300500))
}

func TestBlockToString(t *testing.T) {
partitiontest.PartitionTest(t)
require.Equal(t, "0", blockToString(0))
require.Equal(t, "rs", blockToString(1000))
require.Equal(t, "5ycfo", blockToString(10000500))
Expand Down
Loading