Skip to content

Commit

Permalink
NOISSUE - Fix dependencies (ultravioletrs#13)
Browse files Browse the repository at this point in the history
* vendor

Signed-off-by: WashingtonKK <[email protected]>

* Return agent changes

Signed-off-by: WashingtonKK <[email protected]>

* Add missing import

Signed-off-by: WashingtonKK <[email protected]>

* remove vendor

Signed-off-by: WashingtonKK <[email protected]>

* Fix formatting

Signed-off-by: WashingtonKK <[email protected]>

* Formatting errors

Signed-off-by: WashingtonKK <[email protected]>

* Update agent/api/grpc/client.go

Signed off: WashingtonKK

[email protected]

Co-authored-by: Sammy Kerata Oina <[email protected]>

* add linters and fix

Signed-off-by: SammyOina <[email protected]>

* update ci

Signed-off-by: SammyOina <[email protected]>

* remove deprecated dependencies and
 use local agent and manager

Signed-off-by: SammyOina <[email protected]>

* update mainflux

Signed-off-by: SammyOina <[email protected]>

* Fix Jaeger URL in agent and manager main.go files

The Jaeger URL in the agent and manager main.go files was incorrect. This commit fixes the Jaeger URL by updating it to "http://localhost::4318/v1/traces".

Signed-off-by: SammyOina <[email protected]>

---------

Signed-off-by: WashingtonKK <[email protected]>
Signed-off-by: SammyOina <[email protected]>
Co-authored-by: WashingtonKK <[email protected]>
  • Loading branch information
SammyOina and WashingtonKK authored Oct 27, 2023
1 parent 7d47ed7 commit f1f8f95
Show file tree
Hide file tree
Showing 83 changed files with 829 additions and 1,149 deletions.
1 change: 0 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --no-config --disable-all --enable gosimple --enable errcheck --enable govet --enable unused --enable deadcode --timeout 3m

- name: Build
run: |
Expand Down
73 changes: 73 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
run:
timeout: 3m
build-tags:
- "nats"

issues:
max-issues-per-linter: 10
max-same-issues: 10

linters-settings:
gocritic:
enabled-checks:
- captLocal
- dupImport
- singleCaseSwitch
disabled-checks:
- appendAssign
enabled-tags:
- diagnostic
disabled-tags:
- performance
- style
- experimental
- opinionated
misspell:
ignore-words:
- "mosquitto"
stylecheck:
checks: ["-ST1000", "-ST1003", "-ST1020", "-ST1021", "-ST1022"]
goheader:
template: |-
Copyright (c) Ultraviolet
SPDX-License-Identifier: Apache-2.0
linters:
disable-all: true
enable:
- gocritic
- gosimple
- errcheck
- govet
- unused
- goconst
- godot
- godox
- ineffassign
- misspell
- stylecheck
- whitespace
- gci
- gofmt
- goimports
- loggercheck
- goheader
- asasalint
- asciicheck
- bidichk
- contextcheck
- decorder
- dogsled
- errchkjson
- errname
- execinquery
- exportloopref
- ginkgolinter
- gocheckcompilerdirectives
- gofumpt
- goprintffuncname
- importas
- makezero
- mirror
- nakedret
- dupword
4 changes: 2 additions & 2 deletions agent/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ To start the service outside of the container, execute the following shell scrip

```bash
# download the latest version of the service
go get github.com/ultravioletrs/agent
go get github.com/ultravioletrs/cocos-ai

cd $GOPATH/src/github.com/ultravioletrs/agent
cd $GOPATH/src/github.com/ultravioletrs/cocos-ai

# compile the agent
make agent
Expand Down
198 changes: 159 additions & 39 deletions agent/agent.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions agent/agent.proto
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Ultraviolet
// SPDX-License-Identifier: Apache-2.0

syntax = "proto3";

package agent;
Expand All @@ -9,6 +12,7 @@ service AgentService {
rpc Algo(AlgoRequest) returns (AlgoResponse) {}
rpc Data(DataRequest) returns (DataResponse) {}
rpc Result(ResultRequest) returns (ResultResponse) {}
rpc Attestation(AttestationRequest) returns (AttestationResponse) {}
}

message RunRequest { bytes computation = 1; }
Expand All @@ -26,3 +30,7 @@ message DataResponse { string datasetID = 1; }
message ResultRequest {}

message ResultResponse { bytes file = 1; }

message AttestationRequest { }

message AttestationResponse { bytes file = 1; }
Loading

0 comments on commit f1f8f95

Please sign in to comment.