* TP-47360| created services to upload slack conversation to cloud and send urls to generate RCA * created rca input repository * TP-47360| enabled generating rca service on resolution * resolved merge conflicts * TP-47360| added migration script for creating rca input table * changed json response structure according to contract * added unit tests * removed api to make gen ai call * made changes in message format posted in slack * changed entity struct and adding flag to enable rca generation * attaching title, description and replies related to incident status block * made design changes in message format
43 lines
1.6 KiB
Makefile
43 lines
1.6 KiB
Makefile
.PHONY: docker-run
|
|
docker-run: docker-build
|
|
docker run houston
|
|
|
|
.PHONY: docker-build
|
|
docker-build:
|
|
docker build -t houston -f Dockerfile.houston .
|
|
|
|
.PHONY: migration-up
|
|
migration-up:
|
|
migrate -path db/migration/ -database "${POSTGRES_DSN}?sslmode=disable" -verbose up
|
|
|
|
.PHONY: migration-down
|
|
migration-down:
|
|
migrate -path db/migration/ -database "${POSTGRES_DSN}?sslmode=disable" -verbose down
|
|
|
|
.PHONY: build
|
|
build: test
|
|
go mod tidy && CGO_ENABLED=0 go build -ldflags="-s -w" -o houston cmd/main.go
|
|
|
|
.PHONY: test
|
|
test: generatemocks
|
|
go test -v -count=1 $(CURDIR)/service/...
|
|
@rm -rf $(CURDIR)/mocks
|
|
|
|
# Keep all mock file generation below this line
|
|
.PHONY: generatemocks
|
|
generatemocks:
|
|
@go install github.com/gojuno/minimock/v3/cmd/minimock@v3.1.3
|
|
@go mod tidy
|
|
@rm -rf $(CURDIR)/mocks
|
|
@echo "Generating mocks..."
|
|
@mkdir "mocks"
|
|
cd $(CURDIR)/pkg/google/googleDrive && minimock -i GoogleDriveActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/conference && minimock -i ICalendarActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/rest/ && minimock -i ClientActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/service/slack && minimock -i ISlackService -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/service/incident && minimock -i IIncidentService -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/repository/rca && minimock -i IRcaRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/pkg/documentService && minimock -i ServiceActions -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/repository/rcaInput && minimock -i IRcaInputRepository -s _mock.go -o $(CURDIR)/mocks
|
|
cd $(CURDIR)/model/user && minimock -i IUserRepositoryInterface -s _mock.go -o $(CURDIR)/mocks
|