Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 commits
Select commit Hold shift + click to select a range
62876bd
Logger structure
Nov 8, 2023
1797416
Define session basic structs
jmaralo Nov 8, 2023
b6aab84
Add SnifferDemux ReadPackets method
jmaralo Nov 8, 2023
4a45e05
Implement SocketReader Read and Write methods
jmaralo Nov 8, 2023
34f4f9a
Remove SocketReader
jmaralo Nov 8, 2023
7445b39
SnifferDemux Constructor
jmaralo Nov 8, 2023
c892524
Add documentation
jmaralo Nov 8, 2023
2c2c8a6
Add SnifferDemux test
jmaralo Nov 8, 2023
abb976c
Fix transport struct
jmaralo Nov 8, 2023
026c130
Adaptation to abstraction
Nov 8, 2023
aca5c1b
Adaptation to abstraction
Nov 8, 2023
c292f59
Merge pull request #25 from HyperloopUPV-H8/backend/socket-reader
jmaralo Nov 9, 2023
34a2d06
Add packet decoder basic implementation
jmaralo Nov 9, 2023
3707878
Basic Subloggers
Nov 10, 2023
c70106a
Add data decoder
jmaralo Nov 10, 2023
c1507b5
Add error docs and assertions
jmaralo Nov 10, 2023
c23baf8
Add packet decoder documentation
jmaralo Nov 10, 2023
100cde8
Add data decoder documentation
jmaralo Nov 10, 2023
d2b8336
Document packet
jmaralo Nov 10, 2023
e4eaa7d
logger-structure-v2
Nov 10, 2023
f1401d7
Merge pull request #31 from HyperloopUPV-H8/backend/packet-decoder
jmaralo Nov 13, 2023
2cc3291
Move data decoder to packet/data
jmaralo Nov 13, 2023
5e464ea
Add protection model
jmaralo Nov 13, 2023
63d5b19
Add protection decoding
jmaralo Nov 13, 2023
c2010c3
Add blcuAck decoder
jmaralo Nov 14, 2023
d2c22e9
Add stateSpace decoder
jmaralo Nov 14, 2023
163f6e9
Change stateSpacke packet name
jmaralo Nov 14, 2023
194b8a3
Add state orders decoder implementation
jmaralo Nov 14, 2023
61015b0
Add info packet decoder
jmaralo Nov 14, 2023
87b6c2f
Data Sublogger
Nov 14, 2023
76e5ec1
Merge pull request #33 from HyperloopUPV-H8/backend/packet-decoder
jmaralo Nov 14, 2023
a48f426
Add protection model
jmaralo Nov 13, 2023
cfebfe8
Add protection decoding
jmaralo Nov 13, 2023
842521e
Merge pull request #36 from HyperloopUPV-H8/backend/packet-decoder-2
jmaralo Nov 14, 2023
a979867
Merge branch 'develop' into backend/packet-decoder-3
jmaralo Nov 14, 2023
8c0d03a
Merge pull request #37 from HyperloopUPV-H8/backend/packet-decoder-3
jmaralo Nov 14, 2023
7b0edf4
some changes in gitignores
andresdlt03 Nov 15, 2023
d17c4ee
Merge pull request #38 from HyperloopUPV-H8/backend/gitignore-changes
andresdlt03 Nov 15, 2023
70d62a1
Move decoder to parent folder
jmaralo Nov 15, 2023
cc3f3ef
Update Decoder docs and type assertions
jmaralo Nov 15, 2023
3da97dd
Add blcu ack docs
jmaralo Nov 15, 2023
e939b07
Add missing data packet documentation
jmaralo Nov 15, 2023
d851bbc
Add docs to state space and info decoders
jmaralo Nov 15, 2023
0da0fbb
Add state orders actions documentation
jmaralo Nov 15, 2023
5f9bb37
Add protection documentation
jmaralo Nov 15, 2023
7104d3c
Add basic decoder constructors
jmaralo Nov 15, 2023
b872f93
Add decoder test
jmaralo Nov 15, 2023
da1453f
logger-structure-v3
msanlli Nov 15, 2023
7270516
cleanup
msanlli Nov 15, 2023
8318ebb
Update backend/pkg/transport/packet/data/packet.go
jmaralo Nov 15, 2023
75ab8de
Merge branch 'main' into backend/logger-structure
msanlli Nov 16, 2023
a313522
Merge branch 'develop' into backend/logger-structure
msanlli Nov 16, 2023
31790f7
useCharts hook simplified
andresdlt03 Nov 9, 2023
1407552
render new charts and receive data
andresdlt03 Nov 11, 2023
8526b73
add remove chart button
andresdlt03 Nov 12, 2023
f90e78a
add functionality to show multiseries chart
andresdlt03 Nov 12, 2023
5928f35
multiseries chart data structure done
andresdlt03 Nov 12, 2023
fd99a20
update interval of chart points
andresdlt03 Nov 14, 2023
55cc8fc
charts rendering optimization
andresdlt03 Nov 14, 2023
dcf007a
height chart value as prop
andresdlt03 Nov 14, 2023
dff2b9c
useCharts hook removed
andresdlt03 Nov 14, 2023
ac4b314
add type aliases
andresdlt03 Nov 14, 2023
93a2a2c
change chartRef type
andresdlt03 Nov 14, 2023
3e7de8f
avoid re-renders of charts when add measurements
andresdlt03 Nov 15, 2023
9e3a7f7
add chart refresh rate as prop
andresdlt03 Nov 15, 2023
09f5b58
fix chart re-rendering bug
andresdlt03 Nov 16, 2023
531e311
Merge pull request #39 from HyperloopUPV-H8/backend/decoder-testing
jmaralo Nov 16, 2023
a469458
Merge pull request #32 from HyperloopUPV-H8/ethernet-view/swap-chart-…
andresdlt03 Nov 16, 2023
6852a1f
Merge branch 'develop' into backend/logger-structure
msanlli Nov 16, 2023
c06c218
resolve pr comments
msanlli Nov 16, 2023
2f3ed77
add units to measurements in legend
andresdlt03 Nov 16, 2023
882b875
remove files we no longer need
andresdlt03 Nov 16, 2023
9284072
add util function to create DataSeries
andresdlt03 Nov 16, 2023
6a9e569
data-sublogger
msanlli Nov 17, 2023
2484d63
errors and name fixes
msanlli Nov 21, 2023
924fc8a
Add data value encoders
jmaralo Nov 21, 2023
dbc798a
Include encoders in packet descriptors
jmaralo Nov 21, 2023
31804a7
Add data encoder
jmaralo Nov 21, 2023
2c34eca
Add overall encoder
jmaralo Nov 21, 2023
0cb0d9a
Add encoder test
jmaralo Nov 21, 2023
954d8d8
Improve some encoder doc comments
jmaralo Nov 21, 2023
555c70e
remove types file on ChartMenu
andresdlt03 Nov 21, 2023
c6058ec
remove utils file on ChartMenu
andresdlt03 Nov 21, 2023
7307a29
Merge pull request #41 from HyperloopUPV-H8/ethernet-view/swap-chart-…
andresdlt03 Nov 21, 2023
5b7f470
Change map to list
msanlli Nov 22, 2023
e1a948e
Merge pull request #42 from HyperloopUPV-H8/backend/packet-encoder
jmaralo Nov 22, 2023
6a5388c
update to h9-common-front develop branch
andresdlt03 Nov 22, 2023
181953c
names and logic fixes
msanlli Nov 22, 2023
bf7cd85
use ok instead of exists
msanlli Nov 22, 2023
058b4d8
add ErrLoggerNotRunning
msanlli Nov 22, 2023
dd8fe9f
Merge pull request #44 from HyperloopUPV-H8/common-front/update-devel…
jmaralo Nov 22, 2023
ccff727
installed zustand on common-front
andresdlt03 Nov 22, 2023
03f0a87
installed zustand on ethernet-view
andresdlt03 Nov 22, 2023
bf1ec72
updated App.tsx
andresdlt03 Nov 22, 2023
1bd77cb
updated ChartMenu.tsx
andresdlt03 Nov 22, 2023
cfde0c8
updated Messages.tsx
andresdlt03 Nov 22, 2023
71a7344
updated useMessages.ts
andresdlt03 Nov 22, 2023
8f1b056
updated OrdersContainer.tsx
andresdlt03 Nov 22, 2023
26d835d
updated TableUpdater.tsx
andresdlt03 Nov 22, 2023
55c0e7e
updated main.tsx
andresdlt03 Nov 22, 2023
438576d
updated ReceiveColumn.tsx
andresdlt03 Nov 22, 2023
961ba47
remove redux slices and store
andresdlt03 Nov 22, 2023
b984bab
update nanoid dependency
andresdlt03 Nov 22, 2023
46bdb1d
update columnsSlice from redux to columnsStore with zustand
andresdlt03 Nov 22, 2023
7d266e8
fix useMessages hook error
andresdlt03 Nov 22, 2023
a4c7173
add ErrWrongRecordType
msanlli Nov 22, 2023
cc21b38
add csv push logic
msanlli Nov 22, 2023
f75c2b9
CompareAndSwap implementation
msanlli Nov 22, 2023
a9968ab
fix constants
msanlli Nov 22, 2023
cf77e87
Merge branch 'develop' into backend/logger-structure
msanlli Nov 22, 2023
1186d87
add comments
msanlli Nov 23, 2023
9f387be
Fix divergent branches
msanlli Nov 23, 2023
7df6ae7
correct path joining
msanlli Nov 24, 2023
910c489
Simplify TCP connections
jmaralo Nov 24, 2023
be0cf10
Merge pull request #45 from HyperloopUPV-H8/ethernet-view/update-deve…
jmaralo Nov 24, 2023
96ed3b0
error printing fix
msanlli Nov 24, 2023
baa7b7c
ensure abstraction following
msanlli Nov 24, 2023
4574a29
fix locking logic
msanlli Nov 24, 2023
74163d5
prevent concurrency-related errors
msanlli Nov 24, 2023
c98d7df
Merge branch 'develop' into backend/logger-structure
msanlli Nov 24, 2023
06212b7
two silly pointers fix
msanlli Nov 24, 2023
36ff080
fix divergent branches
msanlli Nov 24, 2023
4d2793e
ecj fixes
msanlli Nov 24, 2023
569d2ae
Merge pull request #40 from HyperloopUPV-H8/backend/logger-structure
msanlli Nov 24, 2023
5d6e959
Merge pull request #47 from HyperloopUPV-H8/backend/tcp-connection-re…
jmaralo Nov 24, 2023
e7b15d5
Handle TCP connection and read
jmaralo Nov 24, 2023
5464a37
Handle TCP write
jmaralo Nov 24, 2023
d04bc2e
Handle sniffer packets
jmaralo Nov 25, 2023
89552a4
Handle tftp read and write
jmaralo Nov 25, 2023
f2c0335
Use struct embedding to simplify structs
jmaralo Nov 25, 2023
728d36d
Add some docs to the transport module
jmaralo Nov 25, 2023
d471ffb
Add basic constructor to the transport module
jmaralo Nov 25, 2023
966a8a0
Merge pull request #51 from HyperloopUPV-H8/backend/implement-transport
jmaralo Nov 27, 2023
53399b9
Add missing vehicle method
jmaralo Nov 27, 2023
6053c95
Add option to set what values are enabled on data packets
jmaralo Nov 27, 2023
430a3a6
Moddify message logger to accept transport packets
jmaralo Nov 27, 2023
ee7d2ed
Update data packet model to hold timestamp
jmaralo Nov 27, 2023
bcf34f0
Small TCP and sniffer tweaks
jmaralo Nov 27, 2023
d36d8bc
Use transport packets on update factory
jmaralo Nov 27, 2023
3f727ab
Update loggers
jmaralo Nov 27, 2023
e08f0a5
Update BLCU to use new packets
jmaralo Nov 27, 2023
d324d44
Remove obsolete code
jmaralo Nov 27, 2023
6cd7570
Update order transfer to use new structs
jmaralo Nov 27, 2023
9a4d953
Swap previous model on order logger
jmaralo Nov 27, 2023
d3edafd
Update value logger to use new structs
jmaralo Nov 27, 2023
e698602
Add needed order model
jmaralo Nov 27, 2023
277e000
Actually log values
jmaralo Nov 27, 2023
9211e52
Integrate transport in main
jmaralo Nov 27, 2023
d1ed07c
fix Zustand hook error with useGlobalTicker
andresdlt03 Nov 22, 2023
aa2b3a4
change set store functions
andresdlt03 Nov 25, 2023
b6c213c
update measurements with GlobalTicker
andresdlt03 Nov 26, 2023
ef7c42d
return undefined when measurement or board not found
andresdlt03 Nov 26, 2023
6794051
fix chartDataSeries bug
andresdlt03 Nov 26, 2023
51874d3
fix type errors on messageViews
andresdlt03 Nov 26, 2023
7f29801
avoid duplicate measurement in the same chart
andresdlt03 Nov 26, 2023
545d4a1
naming drafts in state
andresdlt03 Nov 27, 2023
e4b3a53
Update ethernet-view/src/components/ChartMenu/ChartList/ChartElement/…
andresdlt03 Nov 27, 2023
e6ba301
Merge pull request #52 from HyperloopUPV-H8/ethernet-view/update-deve…
andresdlt03 Nov 27, 2023
bf14c2c
Merge remote-tracking branch 'origin/develop' into backend/integrate-…
jmaralo Nov 27, 2023
76ffa08
add GetTimestamp to info packet
msanlli Nov 27, 2023
157b330
Fix naming and buffering bugs
jmaralo Nov 28, 2023
17c8788
message sublogger
msanlli Nov 28, 2023
19814d0
comment info sublogger
msanlli Nov 28, 2023
8253036
Merge branch 'develop' into backend/logger-structure
msanlli Nov 28, 2023
72e6a09
delete wrong branch files
msanlli Nov 28, 2023
b09a193
restore board.go name
msanlli Nov 28, 2023
f5d2f32
use more descriptive names
msanlli Nov 28, 2023
7a30ddb
change timestamp formating logic
msanlli Nov 28, 2023
4157193
fix GetBoardId and import names
msanlli Nov 28, 2023
3bf13dc
add boardNames map
msanlli Nov 28, 2023
9def8fc
fix divergent branch
msanlli Nov 28, 2023
231db2e
fix packet struct access
msanlli Nov 29, 2023
719c619
move BoardNames map into struct
msanlli Nov 29, 2023
f2af673
change BoardName to private
msanlli Nov 29, 2023
b41fb99
move timestamp formatting method
msanlli Nov 29, 2023
18a7d0c
fix packet struct access
msanlli Nov 29, 2023
165de56
fix timestamp formatting
msanlli Nov 29, 2023
af26d47
handle BoardName not existing
msanlli Nov 29, 2023
9f65836
Merge pull request #57 from HyperloopUPV-H8/backend/logger-structure
msanlli Nov 29, 2023
197d6a5
order sublogger base
msanlli Nov 29, 2023
911648a
order push logic
msanlli Nov 29, 2023
05ce293
Merge branch 'develop' into backend/logger-structure
msanlli Nov 29, 2023
4b41193
fix errors
msanlli Nov 29, 2023
2b99092
fix divergent branch
msanlli Nov 29, 2023
cf94309
state sublogger
msanlli Nov 29, 2023
4d6fc86
Update linux build script to new folder structure
jmaralo Nov 30, 2023
ae0805d
Make build action run manually
jmaralo Nov 30, 2023
d26a6d4
Make load-secret executable
jmaralo Nov 30, 2023
44cbad7
Bump upload artifacts version to 3
jmaralo Nov 30, 2023
9832437
Update windows build workflow to use new file structure
jmaralo Nov 30, 2023
7bee997
Fix load-secret path typo on windows
jmaralo Nov 30, 2023
45e23ee
Fix wrong path for windows load-secret
jmaralo Nov 30, 2023
fcddd1a
Return to old load secret for windows
jmaralo Nov 30, 2023
df32fa0
Fix path naming again
jmaralo Nov 30, 2023
a6a73d2
Add backend build workflow for macos
jmaralo Nov 30, 2023
c2228fe
fix writing logic
msanlli Nov 30, 2023
d89f788
Set correct os for mac build
jmaralo Nov 30, 2023
42bdef2
add timestamp to log
msanlli Nov 30, 2023
1714cb6
Make windows and mac compilation not static
jmaralo Nov 30, 2023
fd1548f
fix flushing
msanlli Nov 30, 2023
8b5966e
Fix macOS output naming
jmaralo Nov 30, 2023
2f2a519
Add build for apple silicon
jmaralo Nov 30, 2023
698c36d
fix slice logic
msanlli Nov 30, 2023
00c4e0b
fix sprint logic
msanlli Nov 30, 2023
df91913
Merge pull request #53 from HyperloopUPV-H8/backend/integrate-transport
jmaralo Nov 30, 2023
872d8a6
Merge commit 'df91913d44331ec4fb773775cb2155e67e2bb55a' into features…
jmaralo Nov 30, 2023
0a87763
finish state base
msanlli Nov 30, 2023
832efb8
Add new lines at the end of file
jmaralo Nov 30, 2023
1f18256
change log order
msanlli Nov 30, 2023
2a30ff9
Revert change to vehicle constructor
jmaralo Nov 30, 2023
140c1f6
Merge pull request #59 and #60 from HyperloopUPV-H8/backend/logger-st…
msanlli Nov 30, 2023
d3f696b
Merge branch 'develop' into backend/logger-structure-state
msanlli Nov 30, 2023
74d2d09
Merge pull request #60 from HyperloopUPV-H8/backend/logger-structure-…
msanlli Nov 30, 2023
f4f6ada
Merge pull request #61 from HyperloopUPV-H8/features/build-action
jmaralo Dec 1, 2023
df9fabb
return to old charts
andresdlt03 Dec 2, 2023
80d2042
Merge pull request #65 from HyperloopUPV-H8/ethernet-view/old-charts
jmaralo Dec 5, 2023
94fe123
Rename backend build workflow
jmaralo Dec 1, 2023
4900f69
Add ethernet view build workflow
jmaralo Dec 1, 2023
af90306
Fix build ethernet view workflow name
jmaralo Dec 1, 2023
bcf1ac7
Add newline at the end of file
jmaralo Dec 4, 2023
59c1c7a
Remove release workflow
jmaralo Dec 4, 2023
4e841cd
Merge pull request #66 from HyperloopUPV-H8/features/build-frontend
jmaralo Dec 6, 2023
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
148 changes: 148 additions & 0 deletions .github/workflows/build-backend.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
name: Build backend

on:
workflow_call:
secrets:
SECRET:
required: true
workflow_dispatch:

env:
SECRET: ${{ secrets.SECRET }}

jobs:
build-backend-linux:
name: "Build backend for linux"
runs-on: ubuntu-latest

# Runs on alpine because it is easier to staticly link the library
container:
image: golang:alpine

env:
BACKEND_DIR: ./backend

steps:
- name: "Install packages"
run: apk update && apk add --no-cache libpcap-dev musl-dev gcc go

- uses: actions/checkout@v3

- name: "Create output path"
working-directory: "${{env.BACKEND_DIR}}"
run: mkdir ./output

- name: "Load secret"
working-directory: "${{env.BACKEND_DIR}}"
run: |
./load-secret.sh "$SECRET"

- name: "Build (64 bit)"
working-directory: "${{env.BACKEND_DIR}}/cmd"
env:
CGO_ENABLED: 1
GOARCH: amd64
GOOS: linux
run: |
go build -ldflags '-linkmode external -extldflags "-static"' -o ../output/backend-linux-64

- name: "Upload build"
uses: actions/upload-artifact@v3
with:
name: backend-linux
path: "${{env.BACKEND_DIR}}/output/*"

build-backend-windows:
name: "Build backend for windows"
runs-on: windows-latest

env:
BACKEND_DIR: ".\\backend"

steps:
- uses: actions/checkout@v3

- name: "Setup Go"
uses: actions/setup-go@v4
with:
go-version: "1.19"
cache-dependency-path: "${{env.BACKEND_DIR}}\\go.sum"

- name: "Load secret"
working-directory: "${{env.BACKEND_DIR}}"
run: |
echo "${{env.SECRET}}" > ".\internal\excel\secret.json" &&
echo "${{env.SECRET}}" > ".\internal\excel_adapter\internals\secret.json" &&
echo "${{env.SECRET}}" > ".\pkg\excel\secret.json" &&
echo "${{env.SECRET}}" > ".\pkg\excel_adapter\internals\secret.json"

- name: "Create output path"
working-directory: "${{env.BACKEND_DIR}}"
run: mkdir .\output

- name: "Build (64 bit)"
working-directory: "${{env.BACKEND_DIR}}\\cmd"
env:
CGO_ENABLED: 1
GOARCH: amd64
GOOS: windows
run: |
go build -o ..\output\backend-windows-64.exe

- name: "Upload build"
uses: actions/upload-artifact@v3
with:
name: backend-windows
path: "${{env.BACKEND_DIR}}\\output\\*"

build-backend-mac:
name: "Build backend for macOS"
runs-on: macos-latest

env:
BACKEND_DIR: ./backend

steps:
- name: "Install packages"
run: brew install libpcap

- name: "Setup Go"
uses: actions/setup-go@v4
with:
go-version: "1.19"
cache-dependency-path: "${{env.BACKEND_DIR}}/go.sum"

- uses: actions/checkout@v3

- name: "Create output path"
working-directory: "${{env.BACKEND_DIR}}"
run: mkdir ./output

- name: "Load secret"
working-directory: "${{env.BACKEND_DIR}}"
run: |
./load-secret.sh "$SECRET"

- name: "Build (64 bit)"
working-directory: "${{env.BACKEND_DIR}}/cmd"
env:
CGO_ENABLED: 1
GOARCH: amd64
GOOS: darwin
run: |
go build -o ../output/backend-macos-64

- name: "Build (apple 64 bit)"
working-directory: "${{env.BACKEND_DIR}}/cmd"
env:
CGO_ENABLED: 1
GOARCH: arm64
GOOS: darwin
run: |
go build -o ../output/backend-macos-m1-64

- name: "Upload build"
uses: actions/upload-artifact@v3
with:
name: backend-macos
path: "${{env.BACKEND_DIR}}/output/*"
42 changes: 42 additions & 0 deletions .github/workflows/build-ethernet-view.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build ethernet view

on:
workflow_call:
workflow_dispatch:

jobs:
build-ethernet-view:
name: "Build ethernet view"
runs-on: ubuntu-latest

env:
FRONTEND_DIR: ./ethernet-view
COMMON_DIR: ./common-front

steps:
- uses: actions/checkout@v3

- name: "Install common front dependencies"
working-directory: "${{env.COMMON_DIR}}"
run: npm install


- name: "Build common front"
working-directory: "${{env.COMMON_DIR}}"
run: npm run build

- name: "Install ethernet view dependencies"
working-directory: "${{env.FRONTEND_DIR}}"
run: npm install


- name: "Build ethernet view"
working-directory: "${{env.FRONTEND_DIR}}"
run: npm run build


- name: "Upload build"
uses: actions/upload-artifact@v3
with:
name: ethernet-view
path: "${{env.FRONTEND_DIR}}/static/*"
84 changes: 0 additions & 84 deletions .github/workflows/build.yaml

This file was deleted.

47 changes: 0 additions & 47 deletions .github/workflows/pre-release.yaml

This file was deleted.

44 changes: 0 additions & 44 deletions .github/workflows/release.yaml

This file was deleted.

7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
build
secret.json

# GOOGLE API KEY
secret.json

# MacOS Files
.DS_Store
4 changes: 3 additions & 1 deletion backend/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ trace.json
Backend-H8
backend
!build
# MacOS build
cmd

# EXCEL
*.xlsx
Expand All @@ -20,4 +22,4 @@ static

downloads

audience_static
audience_static
Loading