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

Report Page Functionality #109

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
17 changes: 2 additions & 15 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,10 @@ jobs:
name: Lint Backend
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: 1.19

- name: Checkout Repo
uses: actions/checkout@v2
with:
submodules: true
token: ${{ secrets.SSH_TOKEN }}

- name: Install dependencies
run: make install-dependencies

- name: Build Protos
run: make build-protos

- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,10 @@ jobs:
- name: Install dependencies
run: make install-dependencies

- name: Build Protos
run: make build-protos

- name: Test
run: |
go test -race ./...

# TODO: include protobuf installation and compilation steps here, once we actually start
# writing tests that need to run on the frontend.
Jest:
name: Test Frontend
runs-on: ubuntu-latest
Expand Down
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@ influx_token.key
*.mp3

**/*.pb.go
**/*.pb.ts
flight-logs

**/*.pb.ts
26 changes: 7 additions & 19 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,7 @@ all: build run

# Dependencies
# --------------------------------------------------------------------
.PHONY: install-dependencies install-linter install-protos install-fmter

install-dependencies: install-linter install-protos install-fmter
cd houston && npm install

.PHONY: install-linter
install-linter:
# TODO: might as well just move this all to an install-linter script
$(info Installing golangci-lint for $(OS))
Expand All @@ -22,16 +18,17 @@ install-linter:
fi;\

install-protos:
sudo apt install protobuf-compiler
go install google.golang.org/protobuf/cmd/[email protected]
echo "You will need to set your PATH variable to include go installations, if you have not already done so."
git submodule init && git submodule update

install-fmter:
go install golang.org/x/tools/cmd/goimports@latest

install-assets:
./scripts/pull-large-assets.sh

# Build
# --------------------------------------------------------------------
.PHONY: pre-build build configure-git build-go build-react build-docker build-protos build-backend-protos build-frontend-protos
.PHONY: pre-build build install-dependencies configure-git build-go build-react build-docker build-protos build-backend-protos build-frontend-protos
pre-build: configure-git

build: build-go build-react build-protos
Expand All @@ -58,14 +55,11 @@ internal/protos/houston.pb.go: protos/houston.proto
internal/protos/obc.pb.go: protos/obc.proto
protoc -I=./protos/ --go_out=./internal/protos/ --go_opt=paths=source_relative ./protos/obc.proto

build-frontend-protos: houston/src/protos/houston.pb.ts houston/src/protos/obc.pb.ts
build-frontend-protos: houston/src/protos/houston.pb.ts

houston/src/protos/houston.pb.ts: protos/houston.proto
protoc --plugin=houston/node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=fileSuffix=.pb --ts_proto_out=./houston/src/ ./protos/houston.proto

houston/src/protos/obc.pb.ts: protos/obc.proto
protoc --plugin=houston/node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=fileSuffix=.pb --ts_proto_out=./houston/src/ ./protos/obc.proto


# Run
# --------------------------------------------------------------------
Expand All @@ -85,12 +79,6 @@ run-compose:
stop-compose:
docker compose -f deployments/docker-compose.yml down

run-compose-mac:
docker-compose -f deployments/docker-compose-mac.yml up -d

stop-compose-mac:
docker-compose -f deployments/docker-compose-mac.yml down

run-broach-compose:
docker compose -f deployments/broach-docker-compose.yml up -d

Expand Down
1 change: 0 additions & 1 deletion build/package/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ RUN --mount=target=. \

COPY ./houston/dist/ /build/houston/

RUN mkdir /CSV
# go build mounts code read-only without copying to container,
# so you have to put binary in another folder
CMD ["/output/gcs"]
1 change: 0 additions & 1 deletion deployments/broach-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ services:
- HUB_PATH=/go/src/github.com/tritonuas/gcs
volumes:
- missions:/go/src/github.com/tritonuas/gcs/missions
- ../flight-logs:/CSV
devices:
- /dev/ttyUSB0:/dev/ttyUSB0
extra_hosts:
Expand Down
93 changes: 0 additions & 93 deletions deployments/docker-compose-mac.yml

This file was deleted.

9 changes: 4 additions & 5 deletions deployments/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ version: "3"
services:
gcs:
image: tritonuas/gcs
network_mode: "host"
# ports:
# - 5000:5000
# network_mode: "host"
ports:
- 5000:5000
environment:
- DEBUG_MODE=true
- OBC_ADDR=localhost:5010
- OBC_ADDR=192.168.1.51:5010
- ANTENNA_TRACKER_IP=192.168.1.36
- ANTENNA_TRACKER_PORT=4000
- MAV_DEVICE=tcp:localhost:5760
Expand All @@ -21,7 +21,6 @@ services:
- HUB_PATH=/go/src/github.com/tritonuas/gcs
volumes:
- missions:/go/src/github.com/tritonuas/gcs/missions
- ../flight-logs:/CSV
extra_hosts:
- host.docker.internal:host-gateway

Expand Down
Binary file added gcs.exe
Binary file not shown.
Loading
Loading