Skip to content
Closed
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
7 changes: 3 additions & 4 deletions .github/actions/build-test-wasm/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,12 @@ runs:
wasm-pack build --target nodejs ./crates/${{ inputs.crate }} --out-dir ../../prebuilds/${{ inputs.crate }}
shell: bash
- name: Test WASM
# pipeline and remote_config have top-level node:test suites; the other wasm crates use
# plain test/wasm/<crate>/ scripts. pipeline additionally needs --test-force-exit, since its
# wasm exporter keeps the event loop alive after a flush.
# pipeline has a top-level node:test suite that needs --test-force-exit, since its WASM
# exporter keeps the event loop alive after a flush. The other WASM crates use plain
# test/wasm/<crate>/ scripts.
run: |
case "${{ inputs.crate }}" in
pipeline) node --test --test-force-exit test/pipeline.js ;;
remote_config) node --test test/remote-config.js ;;
*) node test-wasm.js ${{ inputs.crate }} ;;
esac
shell: bash
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ jobs:
run: rustup target add wasm32-unknown-unknown
- name: Validate artifact dependencies
run: npm run check:dependencies
- name: Test remote config adapter
run: >-
cargo test --locked --package libdatadog-remote-config
--features agentless,regex-lite
- run: npm ci --prefix packages/libdatadog
- run: cargo install cargo-bloat --version 0.12.1 --locked
- run: npm run build --prefix packages/libdatadog
Expand Down Expand Up @@ -259,7 +263,6 @@ jobs:
crate:
- library_config
- pipeline
- remote_config
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: 'Use composite action'
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ jobs:
crate:
- library_config
- pipeline
- remote_config
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: 'Use composite action'
Expand Down
130 changes: 70 additions & 60 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ published as two packages with different availability guarantees.

The universal package is maintained under
[`packages/libdatadog`](packages/libdatadog). Its matching native and WASM
backends expose the agentless data pipeline, Zstandard compression, and
DDSketch from a single native or WASM artifact.
backends expose remote configuration, the agentless data pipeline, Zstandard
compression, and DDSketch from a single native or WASM artifact.

The package uses one napi-rs binding crate for both native and WASM artifacts.
Native artifacts are published as optional dependencies using napi-rs-compatible
Expand Down
Loading
Loading