forked from DataDog/dd-trace-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into HEAD
* origin/master: (51 commits) DEBUG-2334 duplicate mutable values when serializing for dynamic inst… (DataDog#4009) DEBUG-2334 enforce probe type validity (DataDog#4013) [🤖] Update Latest Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/11421728295 Fix the argument to the telemetry forwarder command [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/11460992004 Add datadog gem to gemspec and remove from Gemfile Replace debase with datadog, and comment out gemspec tests Add datadog gem to Gemfile Remove debase gem from gemspec Use nix develop Use Ubuntu 24.04 by Arm Limited Fix vendored dependency case revert system-tests branch to main Changed RuleSampler initialization with ASM Standalone to Tracing::Component.build_sampler Rename AppSec::Event.add_tags to AppSec::Event.tag_and_keep! and move trace.keep in it Move appsec_standalone_reject? to AppSec namespace Replaced set_tag by set_metric for _dd.appsec.enabled and _dd.apm.enabled metrics Add correct sig to Datadog::AppSec::Event.add_tags and add_distributed_tags Update Unreleased Changelog Fix typo in AppSec::Event.add_tags spec ...
- Loading branch information
Showing
606 changed files
with
2,366 additions
and
1,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Test Nix | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- os: darwin | ||
cpu: x86_64 | ||
base: macos-13 # always x86_64-darwin | ||
- os: darwin | ||
cpu: arm64 | ||
base: macos-14 # always arm64-darwin | ||
- os: linux | ||
cpu: x86_64 | ||
base: ubuntu-24.04 # always x86_64-linux-gnu | ||
- os: linux | ||
cpu: aarch64 | ||
base: arm-4core-linux-ubuntu24.04 # always aarch64-linux-gnu | ||
nix: | ||
- 24.05 | ||
|
||
name: Test Nix (${{ matrix.platform.cpu }}-${{ matrix.platform.os }}, ${{ matrix.nix }}) | ||
runs-on: ${{ matrix.platform.base }} | ||
|
||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
env: | ||
SKIP_SIMPLECOV: 1 | ||
DD_INSTRUMENTATION_TELEMETRY_ENABLED: false | ||
DD_REMOTE_CONFIGURATION_ENABLED: false | ||
|
||
steps: | ||
- name: Check CPU arch | ||
run: | | ||
test "$(uname -m)" = "${{ matrix.platform.cpu }}" | ||
- uses: actions/checkout@v4 | ||
- uses: DeterminateSystems/nix-installer-action@main | ||
- uses: DeterminateSystems/magic-nix-cache-action@main | ||
- name: Print ruby version | ||
run: | | ||
nix develop --command which ruby | ||
nix develop --command ruby --version | ||
- name: Bundle install | ||
run: nix develop --command bundle install | ||
- name: Run spec:main | ||
run: nix develop --command bundle exec rake spec:main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,7 +70,7 @@ | |
} | ||
|
||
[ | ||
'debase-ruby_core_source', | ||
'datadog-ruby_core_source', | ||
'ffi', | ||
'libddwaf', | ||
'msgpack', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# flake-compat shim for usage without flakes | ||
(import | ||
( | ||
let lock = builtins.fromJSON (builtins.readFile ./flake.lock); in | ||
fetchTarball { | ||
url = lock.nodes.flake-compat.locked.url or "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz"; | ||
sha256 = lock.nodes.flake-compat.locked.narHash; | ||
} | ||
) | ||
{ src = ./.; } | ||
).defaultNix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
{ | ||
inputs = { | ||
nixpkgs.url = "github:nixos/nixpkgs/master"; | ||
|
||
# cross-platform convenience | ||
flake-utils.url = "github:numtide/flake-utils"; | ||
|
||
# backwards compatibility with nix-build and nix-shell | ||
flake-compat.url = "https://flakehub.com/f/edolstra/flake-compat/1.tar.gz"; | ||
}; | ||
|
||
outputs = { self, nixpkgs, flake-utils, flake-compat }: | ||
# resolve for all platforms in turn | ||
flake-utils.lib.eachDefaultSystem (system: | ||
let | ||
# packages for this system platform | ||
pkgs = nixpkgs.legacyPackages.${system}; | ||
|
||
# control versions | ||
ruby = pkgs.ruby_3_3; | ||
llvm = pkgs.llvmPackages_16; | ||
gcc = pkgs.gcc13; | ||
in { | ||
devShell = pkgs.llvm.stdenv.mkDerivation { | ||
name = "devshell"; | ||
|
||
buildInputs = with pkgs; [ | ||
ruby | ||
libyaml.dev | ||
|
||
# TODO: some gems insist on using `gcc` on Linux, satisfy them for now: | ||
# - json | ||
# - protobuf | ||
# - ruby-prof | ||
gcc | ||
]; | ||
|
||
shellHook = '' | ||
# get major.minor.0 ruby version | ||
export RUBY_VERSION="$(ruby -e 'puts RUBY_VERSION.gsub(/\d+$/, "0")')" | ||
# make gem install work in-project, compatibly with bundler | ||
export GEM_HOME="$(pwd)/vendor/bundle/ruby/$RUBY_VERSION" | ||
# make bundle work in-project | ||
export BUNDLE_PATH="$(pwd)/vendor/bundle" | ||
# enable calling gem scripts without bundle exec | ||
export PATH="$GEM_HOME/bin:$PATH" | ||
# enable implicitly resolving gems to bundled version | ||
export RUBYGEMS_GEMDEPS="$(pwd)/Gemfile" | ||
''; | ||
}; | ||
} | ||
); | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.