Skip to content

Commit

Permalink
Merge pull request #188 from Ackee-Blockchain/develop
Browse files Browse the repository at this point in the history
Release 0.7.0
  • Loading branch information
lukacan committed Aug 14, 2024
2 parents 81c7b43 + 8ae4450 commit d7d555e
Show file tree
Hide file tree
Showing 203 changed files with 22,746 additions and 9,071 deletions.
23 changes: 23 additions & 0 deletions .github/actions/setup-honggfuzz/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: "Setup Honggfuzz"
description: "Setup Honggfuzz"

runs:
using: "composite"
steps:
- uses: actions/cache@v3
name: Cache Honggfuzz
id: cache-honggfuzz
with:
path: |
~/.cache/honggfuzz/
~/.local/share/honggfuzz/
key: honggfuzz-${{ runner.os }}-v0000-${{ env.HONGGFUZZ_VERSION }}
- name: Install honggfuzz
run: cargo install honggfuzz --version ${{ env.HONGGFUZZ_VERSION }}
shell: bash
- name: Install binutils-dev
run: sudo apt-get install binutils-dev
shell: bash
- name: Install libunwind-dev
run: sudo apt-get install libunwind-dev
shell: bash
17 changes: 17 additions & 0 deletions .github/actions/setup-trident/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: "Setup Trident"
description: "Setup Trident"

runs:
using: "composite"
steps:
- uses: actions/cache@v3
name: Cache Trident
id: cache-trident
with:
path: |
~/.cache/trident/
~/.local/share/trident/
key: trident-${{ runner.os }}-v0000
- name: Install Trident
run: cargo install --path crates/cli
shell: bash
22 changes: 0 additions & 22 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,33 +10,11 @@ jobs:
checks:
runs-on: ubuntu-20.04
needs:
- explorer
- cli
- client
- test
steps:
- run: echo "Done"

explorer:
runs-on: ubuntu-20.04
defaults:
run:
working-directory: crates/explorer
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Cargo build
run: cargo build
- name: Cargo fmt
run: cargo fmt -- --check
- name: Cargo clippy
run: cargo clippy -- -D warnings
- name: Cargo test
run: cargo test

cli:
runs-on: ubuntu-20.04
defaults:
Expand Down
18 changes: 1 addition & 17 deletions .github/workflows/run_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [master]

name: Test Escrow and Turnstile
name: Test Escrow

env:
SOLANA_CLI_VERSION: 1.18.12
Expand All @@ -27,19 +27,3 @@ jobs:
- name: Test Escrow
working-directory: examples/integration-tests/escrow
run: cargo run --manifest-path ../../../Cargo.toml test
test_turnstile:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-rust/
- uses: ./.github/actions/setup-solana/
- uses: ./.github/actions/setup-anchor/
id: rust-setup
- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages
- name: Build Turnstile
working-directory: examples/integration-tests/turnstile
run: anchor build
- name: Test Turnstile
working-directory: examples/integration-tests/turnstile
run: cargo run --manifest-path ../../../Cargo.toml test
57 changes: 57 additions & 0 deletions .github/workflows/run_fuzz_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Test Fuzz Tests

on:
workflow_dispatch:
pull_request:

env:
SOLANA_CLI_VERSION: 1.18.18
HONGGFUZZ_VERSION: 0.5.56

jobs:
simple-cpi-6:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Set Anchor Version
run: echo "ANCHOR_VERSION=0.30.1" >> $GITHUB_ENV

- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages

- uses: ./.github/actions/setup-rust/

- uses: ./.github/actions/setup-solana/

- uses: ./.github/actions/setup-trident/

- uses: ./.github/actions/setup-honggfuzz/
id: rust-setup

- name: Test Fuzz
working-directory: examples/fuzz-tests/simple-cpi-6
run: trident fuzz run fuzz_0
arbitrary-limit-inputs-5:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3

- name: Set Anchor Version
run: echo "ANCHOR_VERSION=0.30.1" >> $GITHUB_ENV

- uses: Swatinem/rust-cache@v2
name: Cache Rust and it's packages

- uses: ./.github/actions/setup-rust/

- uses: ./.github/actions/setup-solana/

- uses: ./.github/actions/setup-trident/

- uses: ./.github/actions/setup-honggfuzz/
id: rust-setup

- name: Test Fuzz
working-directory: examples/fuzz-tests/arbitrary-limit-inputs-5
run: trident fuzz run fuzz_0
1 change: 0 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// autodiscovery is disabled, must list all crates
"crates/cli/Cargo.toml",
"crates/client/Cargo.toml",
"crates/explorer/Cargo.toml",
"crates/test/Cargo.toml",
],
"rust-analyzer.diagnostics.disabled": [
Expand Down
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,26 @@ incremented upon a breaking change and the patch version will be incremented for

## [dev] - Unreleased


## [0.7.0] - 2024-08-14
### Added
- impr/ add feature flag to the AccountsSnapshots macro ([183](https://github.com/Ackee-Blockchain/trident/pull/183))
- feat/ add Support for CPI ([182](https://github.com/Ackee-Blockchain/trident/pull/182))
- feat/ add option to initialize Trident with Macro/File (for Snapshots) option based on preference ([179](https://github.com/Ackee-Blockchain/trident/pull/179))
- feat/create AccountsSnapshots derive macro for Snapshots creation ([#177](https://github.com/Ackee-Blockchain/trident/pull/177))
- feat/fuzzing moved to separate crate trident-fuzz ([#175](https://github.com/Ackee-Blockchain/trident/pull/175))
- feat/unify dependencies provided by the Trident ([#172](https://github.com/Ackee-Blockchain/trident/pull/172))
- feat/fuzzer-stats-logging, an optional statistics output for fuzzing session ([#144](https://github.com/Ackee-Blockchain/trident/pull/144))

### Fixed
- fix/in case of fuzzing failure throw error instead of only printing message ([#167](https://github.com/Ackee-Blockchain/trident/pull/167))
- fix/snapshot's zeroed account as optional ([#170](https://github.com/Ackee-Blockchain/trident/pull/170))

### Removed
- del/remove localnet subcommand ([178](https://github.com/Ackee-Blockchain/trident/pull/178))
- del/remove unnecessary fuzzing feature as trident is mainly fuzzer ([#176](https://github.com/Ackee-Blockchain/trident/pull/176))
- del/remove Trident explorer ([#171](https://github.com/Ackee-Blockchain/trident/pull/171))

## [0.6.0] - 2024-05-20
### Added
- feat/anchor 0.30.0 support ([#148](https://github.com/Ackee-Blockchain/trident/pull/148))
Expand Down
Loading

0 comments on commit d7d555e

Please sign in to comment.