Skip to content

Commit 483b1cb

Browse files
committed
chore: v2 version
Signed-off-by: Stefano Scafiti <[email protected]>
1 parent cf9a5d8 commit 483b1cb

File tree

551 files changed

+18109
-33575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

551 files changed

+18109
-33575
lines changed

.github/workflows/pull.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ jobs:
88
strategy:
99
matrix:
1010
include:
11-
- os: ubuntu-latest
12-
go: "1.17"
13-
1411
- os: ubuntu-latest
1512
go: "1.18"
1613
testWithMinio: true

.github/workflows/push-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build-push-dev
22

33
env:
44
GO_VERSION: "1.18"
5-
MIN_SUPPORTED_GO_VERSION: "1.17"
5+
MIN_SUPPORTED_GO_VERSION: "1.18"
66

77
on:
88
push:

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: pushCI
22

33
env:
44
GO_VERSION: "1.18"
5-
MIN_SUPPORTED_GO_VERSION: "1.17"
5+
MIN_SUPPORTED_GO_VERSION: "1.18"
66

77
on:
88
push:

.github/workflows/stress.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,29 @@ on:
55
- '**'
66
schedule:
77
- cron: '0 0 * * *'
8+
workflow_dispatch:
89

910
jobs:
11+
stress-tests:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout source code
15+
uses: actions/checkout@v4
16+
- name: Setup runner for Go
17+
uses: actions/setup-go@v5
18+
with:
19+
go-version: "1.18"
20+
- name: Build and run immudb
21+
run: make immudb && ./immudb -d
22+
- uses: actions/checkout@v4
23+
- name: Build stress tool
24+
run: |
25+
go run ./tools/testing/stress_tool_test_kv/ \
26+
-mix-read-writes \
27+
-randomize-key-length \
28+
-total-entries-written 300000 \
29+
-total-entries-read 10000
30+
1031
stress-build:
1132
runs-on: ubuntu-latest
1233
steps:

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,16 @@ V_COMMIT := $(shell git rev-parse HEAD)
3838
V_BUILT_BY := $(shell git config user.email)
3939
V_BUILT_AT := $(shell date +%s)
4040
V_LDFLAGS_SYMBOL := -s
41-
V_LDFLAGS_BUILD := -X "github.com/codenotary/immudb/cmd/version.Version=${VERSION}" \
42-
-X "github.com/codenotary/immudb/cmd/version.Commit=${V_COMMIT}" \
43-
-X "github.com/codenotary/immudb/cmd/version.BuiltBy=${V_BUILT_BY}"\
44-
-X "github.com/codenotary/immudb/cmd/version.BuiltAt=${V_BUILT_AT}"
41+
V_LDFLAGS_BUILD := -X "github.com/codenotary/immudb/v2/cmd/version.Version=${VERSION}" \
42+
-X "github.com/codenotary/immudb/v2/cmd/version.Commit=${V_COMMIT}" \
43+
-X "github.com/codenotary/immudb/v2/cmd/version.BuiltBy=${V_BUILT_BY}"\
44+
-X "github.com/codenotary/immudb/v2/cmd/version.BuiltAt=${V_BUILT_AT}"
4545
V_LDFLAGS_COMMON := ${V_LDFLAGS_SYMBOL} ${V_LDFLAGS_BUILD}
4646
V_LDFLAGS_STATIC := ${V_LDFLAGS_COMMON} \
47-
-X github.com/codenotary/immudb/cmd/version.Static=static \
47+
-X github.com/codenotary/immudb/v2/cmd/version.Static=static \
4848
-extldflags "-static"
4949
V_LDFLAGS_FIPS_BUILD = ${V_LDFLAGS_BUILD} \
50-
-X github.com/codenotary/immudb/cmd/version.FIPSEnabled=true
50+
-X github.com/codenotary/immudb/v2/cmd/version.FIPSEnabled=true
5151
V_GO_ENV_FLAGS := GOOS=$(GOOS) GOARCH=$(GOARCH)
5252
V_BUILD_NAME ?= ""
5353
V_BUILD_FLAG = -o $(V_BUILD_NAME)
@@ -179,7 +179,7 @@ build/codegen:
179179
build/codegenv2:
180180
$(PWD)/ext-tools/buf format -w
181181

182-
$(PROTOC) -I pkg/api/proto/ pkg/api/proto/authorization.proto pkg/api/proto/documents.proto \
182+
$(PROTOC) -I pkg/api/proto/ pkg/api/proto/authorization.proto \
183183
-I pkg/api/schema/ \
184184
-I$(GOPATH)/pkg/mod \
185185
-I$(GOPATH)/pkg/mod/github.com/grpc-ecosystem/grpc-gateway@$(GRPC_GATEWAY_VERSION) \

cmd/helper/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import (
2121
"os/user"
2222
"strings"
2323

24-
service "github.com/codenotary/immudb/cmd/immuclient/service/constants"
24+
service "github.com/codenotary/immudb/v2/cmd/immuclient/service/constants"
2525
"github.com/spf13/cobra"
2626
"github.com/spf13/viper"
2727
)

cmd/helper/size_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package helper_test
33
import (
44
"testing"
55

6-
"github.com/codenotary/immudb/cmd/helper"
6+
"github.com/codenotary/immudb/v2/cmd/helper"
77
"github.com/stretchr/testify/require"
88
)
99

cmd/helper/table_printer_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import (
2020
"os"
2121
"testing"
2222

23-
"github.com/codenotary/immudb/cmd/cmdtest"
23+
"github.com/codenotary/immudb/v2/cmd/cmdtest"
2424
"github.com/stretchr/testify/assert"
2525
)
2626

cmd/immuadmin/command/backup.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ import (
3030
"github.com/spf13/cobra"
3131
daem "github.com/takama/daemon"
3232

33-
c "github.com/codenotary/immudb/cmd/helper"
34-
"github.com/codenotary/immudb/pkg/auth"
35-
"github.com/codenotary/immudb/pkg/client/homedir"
36-
"github.com/codenotary/immudb/pkg/client/tokenservice"
37-
"github.com/codenotary/immudb/pkg/fs"
38-
"github.com/codenotary/immudb/pkg/immuos"
39-
"github.com/codenotary/immudb/pkg/server"
33+
c "github.com/codenotary/immudb/v2/cmd/helper"
34+
"github.com/codenotary/immudb/v2/pkg/auth"
35+
"github.com/codenotary/immudb/v2/pkg/client/homedir"
36+
"github.com/codenotary/immudb/v2/pkg/client/tokenservice"
37+
"github.com/codenotary/immudb/v2/pkg/fs"
38+
"github.com/codenotary/immudb/v2/pkg/immuos"
39+
"github.com/codenotary/immudb/v2/pkg/server"
4040
)
4141

4242
type backupper struct {

cmd/immuadmin/command/backup_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,16 @@ import (
2727
"path/filepath"
2828
"testing"
2929
30-
"github.com/codenotary/immudb/cmd/helper"
30+
"github.com/codenotary/immudb/v2/cmd/helper"
3131
"github.com/stretchr/testify/assert"
3232
33-
"github.com/codenotary/immudb/cmd/cmdtest"
34-
"github.com/codenotary/immudb/pkg/api/schema"
35-
"github.com/codenotary/immudb/pkg/client"
36-
"github.com/codenotary/immudb/pkg/client/clienttest"
37-
"github.com/codenotary/immudb/pkg/fs"
38-
"github.com/codenotary/immudb/pkg/immuos"
39-
"github.com/codenotary/immudb/pkg/server"
33+
"github.com/codenotary/immudb/v2/cmd/cmdtest"
34+
"github.com/codenotary/immudb/v2/pkg/api/schema"
35+
"github.com/codenotary/immudb/v2/pkg/client"
36+
"github.com/codenotary/immudb/v2/pkg/client/clienttest"
37+
"github.com/codenotary/immudb/v2/pkg/fs"
38+
"github.com/codenotary/immudb/v2/pkg/immuos"
39+
"github.com/codenotary/immudb/v2/pkg/server"
4040
"github.com/spf13/cobra"
4141
"github.com/takama/daemon"
4242

0 commit comments

Comments
 (0)