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

Bugfixes and cleanups #14

Merged
merged 60 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
809a6ad
info log
gd-0 Jan 30, 2024
34f59b9
bump housekeeper lock expiry
gd-0 Jan 30, 2024
0bad955
bumped hyper / http / reqwest to latest versions, added timeout const…
DomAtGattaca Jan 30, 2024
31e7408
leadership enforced with uuid
0w3n-d Jan 30, 2024
b2d181d
added consts for Request timeouts, adjusted timeout test
DomAtGattaca Jan 31, 2024
6c6da62
bugfix: validate_proposal_coordinate
gd-0 Jan 31, 2024
11fed9f
better error
gd-0 Jan 31, 2024
7c6b99a
single uuid in workspace
gd-0 Jan 31, 2024
72b41c7
Merge pull request #18 from gattaca-com/housekeeper_uuid
gd-0 Jan 31, 2024
59ba326
import fix
gd-0 Jan 31, 2024
aa85168
quick clippy fixes
gd-0 Jan 31, 2024
1851256
Merge branch 'develop' into request_timeouts
DomAtGattaca Jan 31, 2024
7a54358
Merge pull request #19 from gattaca-com/request_timeouts
DomAtGattaca Jan 31, 2024
81226cd
Merge pull request #20 from gattaca-com/develop
DomAtGattaca Jan 31, 2024
3cca2a6
clean up payload attributes 2 slots old
gd-0 Jan 31, 2024
70db328
Merge pull request #21 from gattaca-com/develop
gd-0 Jan 31, 2024
ed80244
bugfix
gd-0 Jan 31, 2024
7a9f8ab
Merge pull request #22 from gattaca-com/develop
gd-0 Jan 31, 2024
c1030b1
Discard payload attributes if already known
gd-0 Jan 31, 2024
8fae4b1
Merge pull request #23 from gattaca-com/develop
gd-0 Jan 31, 2024
f90f6c8
develop gh build workflow
gd-0 Jan 31, 2024
1d69474
tidy build workflow + lint workflow
gd-0 Jan 31, 2024
d3f1db1
only lint on PR
gd-0 Jan 31, 2024
c8d1b1e
workign dir
gd-0 Jan 31, 2024
a76d7b9
handling of missing trie node sim errors to not demote a builder for …
DomAtGattaca Jan 31, 2024
f8c2374
Merge pull request #26 from gattaca-com/missing_trie_node_error_handling
DomAtGattaca Jan 31, 2024
54e390d
install proto comp
gd-0 Jan 31, 2024
8bb4bff
wip
gd-0 Jan 31, 2024
6ce5709
re-run when branch that is PRing changes
gd-0 Jan 31, 2024
0147fba
cargo fmt
gd-0 Jan 31, 2024
27ab41f
Merge pull request #25 from gattaca-com/test-workflows
gd-0 Jan 31, 2024
cc37409
Merge branch 'main' into develop
gd-0 Jan 31, 2024
63315df
beacon-client clippy
gd-0 Jan 31, 2024
871e8d3
database clippy
gd-0 Jan 31, 2024
4eab927
api clippy
gd-0 Jan 31, 2024
e4e9745
final clippy fix
gd-0 Jan 31, 2024
5c4a744
only run clippy for local crates
gd-0 Jan 31, 2024
c26869d
revert local crate clippy change
gd-0 Jan 31, 2024
029d54c
remove tests from lint
gd-0 Jan 31, 2024
b6ee0c1
actually remove tests
gd-0 Jan 31, 2024
14a8051
Install rustfmt
gd-0 Jan 31, 2024
444aaeb
Install nightly toolchain and rustfmt
gd-0 Jan 31, 2024
d0d1df0
cargo fmt --all
gd-0 Jan 31, 2024
3a5933d
not crashing on fiber broadcaster initialization error + added a gene…
DomAtGattaca Jan 31, 2024
865a946
cleanup
DomAtGattaca Jan 31, 2024
92996de
Merge pull request #27 from gattaca-com/init_broadcaster_error_handling
DomAtGattaca Jan 31, 2024
d58a2ff
cargo doc fixes
gd-0 Jan 31, 2024
9394b03
lint wip
gd-0 Jan 31, 2024
eea29ae
do not demote if payload is for a past slot
gd-0 Jan 31, 2024
9d0c875
lint
gd-0 Jan 31, 2024
b4fb0a9
Merge branch 'main' into develop
gd-0 Jan 31, 2024
c43458c
Merge pull request #28 from gattaca-com/develop
gd-0 Jan 31, 2024
ebb5def
make clippy happy
gd-0 Jan 31, 2024
b827897
make fmt happy
gd-0 Jan 31, 2024
544dc5e
nightly fmt in lint workflow
gd-0 Jan 31, 2024
1faccb3
lint workflow doc fix
gd-0 Jan 31, 2024
6ff13da
Merge pull request #29 from gattaca-com/develop
gd-0 Jan 31, 2024
a6c437a
bumped timeout duration for broadcasters from 5 to 30 secs
DomAtGattaca Feb 1, 2024
5c5b275
Merge pull request #31 from gattaca-com/bump_broadcaster_init_timeout
DomAtGattaca Feb 1, 2024
523f926
Merge branch 'main' into bugfixes_and_cleanups
DomAtGattaca Feb 1, 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
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Rust

on:
push:
branches: [ main ]
branches: [ main, develop ]

env:
CARGO_TERM_COLOR: always
Expand All @@ -18,6 +18,10 @@ jobs:
with:
fetch-depth: '0'
path: ./repos/${{ secrets.REPO_NAME }}
ref: ${{ github.ref }}

- name: Set Image Name
run: echo "IMAGE_NAME=$(if [ ${{ github.ref }} == 'refs/heads/main' ]; then echo 'latest'; else echo 'develop'; fi)" >> $GITHUB_ENV

- name: Run Dockerfile
env:
Expand All @@ -28,8 +32,7 @@ jobs:
REGISTRY_URL: ${{ secrets.REGISTRY_URL }}
REPO_NAME: ${{ secrets.REPO_NAME }}
run: |
IMAGE_NAME=latest
DOCKER_BUILDKIT=1 docker build -t helix:$IMAGE_NAME --build-arg AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID --build-arg AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY --build-arg REPO_NAME=$REPO_NAME -f ./repos/$REPO_NAME/Dockerfile .
DOCKER_BUILDKIT=1 docker tag helix:$IMAGE_NAME $REGISTRY_URL/helix:$IMAGE_NAME
DOCKER_BUILDKIT=1 docker build -t helix:${{ env.IMAGE_NAME }} --build-arg AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID --build-arg AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY --build-arg REPO_NAME=$REPO_NAME -f ./repos/$REPO_NAME/Dockerfile .
DOCKER_BUILDKIT=1 docker tag helix:${{ env.IMAGE_NAME }} $REGISTRY_URL/helix:${{ env.IMAGE_NAME }}
DOCKER_BUILDKIT=1 docker login https://$REGISTRY_URL/ -u "$DOCKER_REG_USR" -p "$DOCKER_REG_PW"
DOCKER_BUILDKIT=1 docker push $REGISTRY_URL/helix:$IMAGE_NAME
DOCKER_BUILDKIT=1 docker push $REGISTRY_URL/helix:${{ env.IMAGE_NAME }}
59 changes: 59 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
name: Rust Linting

on:
pull_request:
branches: [ main, develop ]
types: [opened, synchronize, reopened]

env:
CARGO_TERM_COLOR: always

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v4
with:
fetch-depth: '0'
path: ./repos/${{ secrets.REPO_NAME }}
ref: ${{ github.ref }}

# Install Protocol Buffers Compiler
- name: Install Protobuf Compiler (protoc)
run: sudo apt-get install -y protobuf-compiler

- name: Change to project directory
run: cd ./repos/${{ secrets.REPO_NAME }}

# Install nightly toolchain and rustfmt
- name: Install nightly toolchain and rustfmt
run: |
rustup toolchain install nightly
rustup component add rustfmt --toolchain nightly

# Rust Linting with Clippy
- uses: dtolnay/rust-toolchain@clippy
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true

# Run General Clippy Linting
- name: Clippy
run: cargo clippy --all-features
env:
RUSTFLAGS: -D warnings
working-directory: ./repos/${{ secrets.REPO_NAME }}

# Check Code Formatting
- name: Rustfmt
run: cargo +nightly fmt --all --check
working-directory: ./repos/${{ secrets.REPO_NAME }}

# Check Documentation
- name: Docs
run: cargo doc --workspace --all-features --no-deps
env:
RUSTDOCFLAGS: --cfg docsrs --show-type-layout --generate-link-to-definition --enable-index-page -Zunstable-options -D warnings
working-directory: ./repos/${{ secrets.REPO_NAME }}
55 changes: 45 additions & 10 deletions Cargo.lock

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

8 changes: 5 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,10 @@ async-trait = "0.1"
axum = "0.7.4"
dashmap = { version = "5.5.3", features = [] }
futures = "0.3"
hyper = "0.14.27"
http = "0.2.9"
reqwest = { version = "0.11", features = ["json", "native-tls-vendored"] }
hyper = "1.1.0"
http = "1.0.0"
tower = { version = "0.4.13", features = ["full"] }
reqwest = { version = "0.11.23", features = ["json", "native-tls-vendored", "stream"] }
tokio = { version = "1.33.0", features = ["full"] }
tokio-stream = "0.1"
tower-http = { version = "0.5.1", features = ["limit"] }
Expand Down Expand Up @@ -72,6 +73,7 @@ env_logger = "0.9"
# Misc
auto_impl = "1.0.1"
thiserror = "1.0.49"
uuid = { version = "1.5", features = ["fast-rng", "v4"] }

# Broadcasting
fiber = { git = "https://github.com/chainbound/fiber-rs.git", tag = "v0.5.1" }
3 changes: 2 additions & 1 deletion crates/api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ helix-housekeeper.workspace = true
# Async and Networking
async-trait = { workspace = true }
axum = { workspace = true }
tower = { workspace = true }
dashmap = { workspace = true }
futures = { workspace = true }
hyper = { workspace = true }
Expand Down Expand Up @@ -49,7 +50,7 @@ auto_impl.workspace = true
rand = "0.8"
thiserror = { workspace = true }
tracing = { workspace = true }
uuid = { version = "1.5", features = ["fast-rng", "v4"] }
uuid = { workspace = true }
bytes = "1.5"

[build-dependencies]
Expand Down
8 changes: 3 additions & 5 deletions crates/api/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ fn main() {
tonic_build::configure()
.build_client(true)
.build_server(true)
.compile(
&["src/gossiper/proto/gossipclient.proto"],
&["src/gossiper/proto"],
).unwrap();
}
.compile(&["src/gossiper/proto/gossipclient.proto"], &["src/gossiper/proto"])
.unwrap();
}
Loading