Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

release v5.1.5 #598

Merged
merged 61 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
7fe70e7
scripts: add .exe for windows builds
semyon-dev Jul 18, 2024
14f1a8e
logs: ignore proto warning
semyon-dev Jul 18, 2024
cf68d4e
docs: update README.md
semyon-dev Jul 19, 2024
39c5bb5
Merge pull request #588 from semyon-dev/master
semyon-dev Jul 19, 2024
59a308d
update scripts, rm package fix-proto
semyon-dev Jul 23, 2024
79e16ab
ci/cd: jobs for dev branch
semyon-dev Jul 23, 2024
8988674
scripts: refactor and update, remove sonar configs
semyon-dev Jul 23, 2024
fd6d36d
improve logging in serve.go
semyon-dev Jul 23, 2024
0a92403
Merge branch 'dev' of https://github.com/semyon-dev/snet-daemon into dev
semyon-dev Jul 23, 2024
dbe52a8
readme: update
semyon-dev Jul 25, 2024
4793c88
Add powershell scripts (#8)
semyon-dev Jul 25, 2024
11a79fa
gofmt and fix misspell
semyon-dev Jul 25, 2024
29de91e
fix scripts and update readme
semyon-dev Jul 26, 2024
16fca30
ci/cd: refactor
semyon-dev Jul 26, 2024
4d9e103
ci/cd: refactor (#9)
semyon-dev Jul 26, 2024
7c750b2
better logging and CGO_ENABLED=0 for builds
semyon-dev Aug 9, 2024
fb1bd0e
add tests for ipfsutils
mirel-dev Aug 26, 2024
8981ae1
Add contract event listener
mirel-dev Sep 4, 2024
8c576b4
Add hot reloading for etcd client
mirel-dev Sep 9, 2024
99f6912
Merge branch 'dev' into master
mirel-dev Sep 10, 2024
ed508f8
Delete unused ConvertHTTPToWS
mirel-dev Sep 10, 2024
ea362ed
Delete unused GetRegistryCaller
mirel-dev Sep 11, 2024
dad208e
refactoring and add linter config
semyon-dev Sep 11, 2024
3f151b7
Merge pull request #590 from semyon-dev/dev
semyon-dev Sep 11, 2024
5b3d65c
Fix log, add using slices.Compare
mirel-dev Sep 11, 2024
b449b65
Fix compare slices
mirel-dev Sep 11, 2024
1dd4a05
Merge branch 'dev' into master
semyon-dev Sep 11, 2024
543fedd
Merge pull request #589 from pls-github-dont-suspend-me/master
semyon-dev Sep 11, 2024
5e091f0
update ci/cd
semyon-dev Sep 11, 2024
e650c12
Merge branch 'dev' of https://github.com/singnet/snet-daemon into dev
semyon-dev Sep 11, 2024
5ec9f55
fix test TestCheckVersionOfDaemon
semyon-dev Sep 11, 2024
240c8f3
Merge pull request #591 from semyon-dev/dev
semyon-dev Sep 11, 2024
008e650
Update README.md
semyon-dev Sep 11, 2024
4a313cb
Add asdf in gitignore
mirel-dev Sep 12, 2024
a5efbcd
update go.mod and README.md
semyon-dev Sep 13, 2024
eff5ad7
Merge pull request #592 from semyon-dev/dev
semyon-dev Sep 13, 2024
2d4321b
ci/cd: update
semyon-dev Sep 13, 2024
f16885d
update .gitignore
semyon-dev Sep 13, 2024
4287445
Merge remote-tracking branch 'origin/dev' into dev
semyon-dev Sep 13, 2024
05d508f
Add ssl live updating
mirel-dev Sep 13, 2024
95b196c
Pull out certReloader.Listen invocation from goroutine
mirel-dev Sep 13, 2024
c6794e7
Merge pull request #593 from pls-github-dont-suspend-me/dev
semyon-dev Sep 13, 2024
e5281d7
refactor
semyon-dev Sep 13, 2024
ef9e0f2
Merge remote-tracking branch 'origin/dev' into dev
semyon-dev Sep 13, 2024
e975bdb
Add integration test for grpcToGRPC
mirel-dev Sep 20, 2024
fb7a09e
Comment tests for unimplemented functions
mirel-dev Sep 20, 2024
bb57c66
Fix go generate
mirel-dev Sep 23, 2024
67ef861
Fix cert listener
mirel-dev Sep 24, 2024
4578509
fix: misspell
semyon-dev Sep 24, 2024
7c7c94d
update go.mod
semyon-dev Sep 24, 2024
9ad2d82
Merge pull request #595 from pls-github-dont-suspend-me/fix-certs-lis…
semyon-dev Sep 25, 2024
cb36641
Merge pull request #594 from pls-github-dont-suspend-me/dev
semyon-dev Sep 25, 2024
db9c49b
Merge pull request #596 from semyon-dev/dev
semyon-dev Sep 25, 2024
ba9834e
fix go.sum
semyon-dev Sep 25, 2024
4efaa56
fix tests
semyon-dev Sep 25, 2024
1c29ccc
feat: filecoin
semyon-dev Oct 15, 2024
f58df24
fix spell
semyon-dev Oct 15, 2024
0f3db1a
Merge pull request #597 from singnet/lighthouse
semyon-dev Oct 15, 2024
38eed6b
Merge branch 'dev' of https://github.com/singnet/snet-daemon into dev
semyon-dev Oct 15, 2024
02fab90
fix: tests
semyon-dev Oct 15, 2024
f0a877f
fix: ci/cd
semyon-dev Oct 15, 2024
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
51 changes: 26 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,42 +2,43 @@ name: build
on:
push:
branches: [ "master" ]
# pull_request:
# branches: [ "master" ]
pull_request:
branches: [ "master", "dev" ]
workflow_dispatch:

env:
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore

jobs:
run_build:
runs-on: ubuntu-latest
steps:
build:
runs-on: ubuntu-latest
steps:

- name: clone repo
uses: actions/checkout@v3

- name: download and install
uses: actions/setup-go@v5
with:
go-version: '1.22.2'
go-version: '1.23.1'

- name: protobuff install
run: |
sudo apt update
sudo apt install protobuf-compiler

- name: go_ins_1
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: install protoc (protobuf)
uses: arduino/setup-protoc@v3
with:
version: "27.2"
include-pre-releases: false

- name: go_ins_2
run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
- name: chmod +x
run: chmod +x ./scripts/install_deps && chmod +x ./scripts/build

- name: generate
run: go generate ./...
- name: install dependencies
run: ./scripts/install_deps

- name: check version
run: go version
- name: build linux
run: ./scripts/build linux amd64 dev

- name: check folder
run: ls
- name: build darwin
run: ./scripts/build darwin amd64 dev

- name: do build
run: go build snetd/main.go
- name: build windows
run: ./scripts/build windows amd64 dev
48 changes: 21 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,37 @@
name: tests
on:
# push:
# branches: [ "master" ]
pull_request:
push:
branches: [ "master" ]
pull_request:
branches: [ "master", "dev" ]
workflow_dispatch:

env:
GOLANG_PROTOBUF_REGISTRATION_CONFLICT: ignore

jobs:
run_tests:
runs-on: ubuntu-latest
steps:

run_tests:
runs-on: ubuntu-latest
steps:
- name: clone repo
uses: actions/checkout@v3

- name: download and install
uses: actions/setup-go@v5
with:
go-version: '1.22.2'
go-version: '1.23.1'

- name: protobuff install
run: |
sudo apt update
sudo apt install protobuf-compiler

- name: go_ins_1
run: go install google.golang.org/protobuf/cmd/protoc-gen-go@latest

- name: go_ins_2
run: go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

- name: generate
run: go generate ./...
- name: install protoc (protobuf)
uses: arduino/setup-protoc@v3
with:
version: "27.2"
include-pre-releases: false

- name: check version
run: go version
- name: chmod to allow run script
run: chmod +x ./scripts/install_deps

- name: check folder
run: ls
- name: install dependencies
run: ./scripts/install_deps

- name: do tests
- name: go tests
run: go test -v ./...
38 changes: 27 additions & 11 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,40 +1,56 @@
# idea cache
.idea/

# npm cache and configs
# npm cache
resources/blockchain/package-lock.json
resources/blockchain/node_modules/
resources/blockchain/build/
snetd.db

# configs
snetd.config.json
/vendor/
/build/
resources/blockchain/package-lock.json

# Autogenerated sources
# autogenerated sources
blockchain/snet-contracts.go
*.pb.go
/vendor/

# Binaries for programs and plugins
# binaries for programs and plugins
/build/
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, build with `go test -c`
# test binary, build with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
# output of the go coverage tool, specifically when used with LiteIDE
*.out

# vim temporary files
*~
*.swp
*.swo

# etcd server temporary directories
# etcd server directories
storage-*
*.pem
*log
data.etcd/
*.tmp
*.etcd

# certs and keys
*.pem
*.crt
*.key

# logs
*.log

# vscode
.vscode

# asdf
.tool-versions

54 changes: 54 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This file configures github.com/golangci/golangci-lint.

run:
concurrency: 4
timeout: 5m
tests: false
issues-exit-code: 3
modules-download-mode: readonly
allow-parallel-runners: true

linters:
disable-all: true
enable:
- gosimple
- govet
- ineffassign
- misspell
- unconvert
- typecheck
- errcheck
# - unused
- staticcheck
- bidichk
- durationcheck
- goconst
- noctx
- whitespace
- revive # only certain checks enabled

linters-settings:
gofmt:
simplify: true
revive:
enable-all-rules: false
# here we enable specific useful rules
# see https://golangci-lint.run/usage/linters/#revive for supported rules
rules:
- name: receiver-naming
severity: warning
disabled: false
exclude: [ "" ]

issues:
exclude-dirs-use-default: true
exclude-dirs:
- bin
- build
- \.git
exclude-files:
- ".pb"
exclude-rules:
- linters:
- lll
source: "^//go:generate "
Loading
Loading