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

New instrumentation system #540

Draft
wants to merge 7 commits into
base: main
Choose a base branch
from
Draft
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
5 changes: 5 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ jobs:
run: |
sudo apt-get update
sudo apt-get install -y wrk
- name: Set up Rust
run: |
rustup toolchain install stable
rustup default stable
cargo install wasm-pack
- run: npm install
- run: npm run build
- name: Run NoSQL Injection Benchmark
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ jobs:
node-version: "18.x"
registry-url: "https://registry.npmjs.org"
scope: "@aikidosec"
- name: Set up Rust
run: |
rustup toolchain install stable
rustup default stable
cargo install wasm-pack
- name: Install dependencies
run: npm run install-lib-only
- name: Get the version
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/end-to-end-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
"CLICKHOUSE_DEFAULT_ACCESS": "MANAGEMENT=1"
ports:
- "27019:8123"
timeout-minutes: 10
timeout-minutes: 15
strategy:
matrix:
node-version: [18.x]
Expand All @@ -63,6 +63,11 @@ jobs:
- name: Build and run server
run: |
cd end2end/server && docker build -t server . && docker run -d -p 5874:3000 server
- name: Set up Rust
run: |
rustup toolchain install stable
rustup default stable
cargo install wasm-pack
- run: npm install
- run: npm run build
- run: npm run end2end
10 changes: 10 additions & 0 deletions .github/workflows/lint-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ jobs:
node-version: ${{ matrix.node-version }}
cache: "npm"
cache-dependency-path: "**/package-lock.json"
- name: Set up Rust
run: |
rustup toolchain install stable
rustup default stable
rustup component add rustfmt clippy
cargo install wasm-pack
- run: npm run install-lib-only
- run: npm run build
- run: npm run lint
- name: Check Rust formatting
run: cd instrumentation-wasm && cargo fmt --check
- name: Run Rust Linter
run: cd instrumentation-wasm && cargo clippy
7 changes: 6 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
fail-fast: false
matrix:
node-version: [16.x, 18.x, 20.x, 22.x, 23.x]
timeout-minutes: 10
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
Expand All @@ -77,6 +77,11 @@ jobs:
- name: Add local.aikido.io to /etc/hosts
run: |
sudo echo "127.0.0.1 local.aikido.io" | sudo tee -a /etc/hosts
- name: Set up Rust
run: |
rustup toolchain install stable
rustup default stable
cargo install wasm-pack
- run: npm run install-lib-only
- run: npm run build
- run: npm run test:ci
Expand Down
1 change: 1 addition & 0 deletions instrumentation-wasm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target/
Loading
Loading