Skip to content

Commit

Permalink
refactor: massive jump toward a legit homestar runtime (#133)
Browse files Browse the repository at this point in the history
* Adds runtime for singular workflows (multiple workflows incoming).
Incldues:
  - workflow => Dag for sequential/promised and parallel compute
  - task scheduler (within workflow)
  - worker
  - integration between libp2p and workers for receipts and more
  - feature-gating ipfs for resources
  - adds retry/backoff for fetching resources
* moves us toward tracing's logging and adds logfmt-formatted logs
* removes much of early-early demo code

Issues closed:

- #76
- #79
- #86 (enough for now)
  • Loading branch information
Zeeshan Lakhani committed May 19, 2023
1 parent b60da1d commit 55ddb91
Show file tree
Hide file tree
Showing 73 changed files with 5,876 additions and 2,459 deletions.
4 changes: 2 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use_flake

export RUST_LOG=homestar=debug,sqlx=warn,atuin_client=warn,libp2p=debug
export RUST_BACKTRACE=1
export RUST_LOG=homestar_runtime=debug,atuin_client=warn,libp2p=info
export RUST_BACKTRACE=full
39 changes: 38 additions & 1 deletion .github/workflows/tests_and_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
if: ${{ matrix.rust-toolchain == 'stable' && github.event_name == 'push' }}
run: cargo build --release

run-tests:
run-tests-all-features:
runs-on: ubuntu-latest
strategy:
fail-fast: false
Expand Down Expand Up @@ -112,3 +112,40 @@ jobs:

- name: Run Tests
run: cargo test --all-features

- name: Run Tests
run: cargo test --no-default-features

run-tests-no-default-features:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
rust-toolchain:
- stable
- nightly
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout Repository
uses: actions/checkout@v3

- name: Install Environment Packages
run: |
sudo apt-get update -qqy
sudo apt-get install jq
- name: Cache Project
uses: Swatinem/rust-cache@v2

- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
override: true
toolchain: ${{ matrix.rust-toolchain }}

- name: Run Tests
run: cargo test --no-default-features
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ private
*.temp
*.db
*.tmp
*.png
*.dot
.history
.DS_Store
homestar-guest-wasm/out
homestar-wasm/out

# locks
homestar-wasm/Cargo.lock
Loading

0 comments on commit 55ddb91

Please sign in to comment.