-
Notifications
You must be signed in to change notification settings - Fork 381
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* [🤖] Update Latest Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/13477718964 * Remove force-executed tests and scenario from system-tests workflow after release 2.11.0 * Add AppSec RestClient instrumentation for SSRF detection * Add type signatures for AppSec RestClient integration * Fix type signatures for excon and faraday AppSec integrations * Add tests for RestClient AppSec instrumentation * Extract rest-client-latest appraisal * [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/13455470094 * [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/13455581146 * Remove unneeded variable from RestClient SSRF integration test * [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/13457056485 * Add rest-client gem to rake edge:update task * [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/13496444973 * Rename RequestPatch to RequestSSRFDetectionPatch * [🤖] Lock Dependency: https://github.com/DataDog/dd-trace-rb/actions/runs/13497053640 * Disable rubocop warning for RequestSSRFDetectionPatch * [PROF-11151] Fix test-memory-leaks flaky behavior **What does this PR do?** This PR will hopefully fix almost [all of the the flakiness](https://github.com/DataDog/dd-trace-rb/pulls?q=is%3Apr+asan) we've seen from the test-memory-leaks GitHub workflow. The previous "asan" builds we were using were built from ruby-head, which means that any instability or early breakage in ruby-head would make test-memory-leaks fail. To fix this, I've worked with upstream to create these 3.4-asan builds: these are Ruby builds that are built **from the latest 3.4 stable Ruby** with asan. Thus any breakages we see in them, should also exist in regular 3.4 builds. **Motivation:** With this change, the test-memory-leaks workflow becomes a lot more valuable, since it's now never expected to fail. Thus, any failures we see in it are worth investigating. **Additional Notes:** For context, asan (or ASan) is the "AddressSanitizer" tool, see https://github.com/google/sanitizers/wiki/AddressSanitizer for more details. **How to test the change?** Validate that the updated workflow is running on ruby-3.4.2 and that it still has the diagnostic output from asan. * DEBUG-3535 use core transport for DI to support unix domain sockets (#4426) * Composite action * Fix publish * Fix doc step with branch * Dependency inject logger (partial) (#4432) * Add 2.12.0 to CHANGELOG.md * Bump version 2.11.0 to 2.12.0 * Update lockfiles for release 2.12.0 --------- Co-authored-by: TonyCTHsu <16049123+TonyCTHsu@users.noreply.github.com> Co-authored-by: Yury Lebedev <yury.lebedev@datadoghq.com> Co-authored-by: y9v <1379701+y9v@users.noreply.github.com> Co-authored-by: Yury Lebedev <lebedev.yurii@gmail.com> Co-authored-by: Ivo Anjo <ivo.anjo@datadoghq.com> Co-authored-by: Oleg Pudeyev <156273877+p-datadog@users.noreply.github.com>
- Loading branch information
1 parent
06f110a
commit 54efa06
Showing
717 changed files
with
4,649 additions
and
1,194 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,60 @@ | ||
name: 'Build and Test' | ||
|
||
# TODO: Improve description | ||
description: 'Configure test suite in batches' | ||
|
||
inputs: | ||
alias: | ||
description: 'Runtime alias' | ||
required: true | ||
container-id: | ||
description: 'Container Identifier' | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Configure Git | ||
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | ||
shell: bash | ||
|
||
- run: bundle exec rake github:run_batch_build | ||
shell: bash | ||
|
||
- name: Configure RSpec | ||
run: ln -s .rspec-local.example .rspec-local | ||
shell: bash | ||
|
||
- run: bundle exec rake github:run_batch_tests | ||
shell: bash | ||
env: | ||
COVERAGE_DIR: coverage/versions/${{ inputs.alias }}/${{ inputs.container-id }} | ||
|
||
- name: Debug with SSH connection | ||
if: ${{ failure() && runner.debug == '1' }} | ||
uses: mxschmitt/action-tmate@e5c7151931ca95bad1c6f4190c730ecf8c7dde48 # v3.19.0 | ||
with: | ||
limit-access-to-actor: true | ||
# This mode will wait at the end of the job for a user to connect and then to terminate the tmate session. | ||
# If no user has connected within 10 minutes after the post-job step started, | ||
# it will terminate the tmate session and quit gracefully. | ||
detached: true | ||
|
||
- name: Validate test agent data | ||
if: ${{ !cancelled() }} | ||
run: ruby .github/scripts/test_agent_check.rb | ||
shell: bash | ||
|
||
- name: Upload junit reports | ||
if: ${{ !cancelled() }} | ||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | ||
with: | ||
name: junit-${{ inputs.alias }}-${{ inputs.container-id }} | ||
path: tmp/rspec/*.xml | ||
|
||
- name: Upload coverage data | ||
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0 | ||
with: | ||
name: coverage-${{ inputs.alias }}-${{ inputs.container-id }} | ||
path: coverage | ||
include-hidden-files: true # Coverage data generated by SimpleCov are hidden |
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,30 @@ | ||
name: 'Restore Bundle from cache' | ||
|
||
# TODO: Improve description | ||
description: 'Restore the bundle from cache' | ||
|
||
inputs: | ||
lockfile-name: | ||
description: 'Name of the lockfile artifact to download' | ||
required: true | ||
cache-key: | ||
description: 'Cache key for bundle' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Download lockfile | ||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 | ||
with: | ||
name: ${{ inputs.lockfile-name }} | ||
|
||
- name: Restore cache | ||
uses: actions/cache/restore@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0 | ||
id: restore-cache | ||
with: | ||
key: "${{ inputs.cache-key }}" | ||
path: "/usr/local/bundle" | ||
|
||
- run: bundle check | ||
shell: bash |
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 |
---|---|---|
@@ -1,13 +1,3 @@ | ||
{ | ||
"AGENT_NOT_SUPPORTING_SPAN_EVENTS": | ||
[ | ||
"tests/test_span_events.py" | ||
], | ||
"PARAMETRIC": | ||
[ | ||
"tests/parametric/test_span_events.py" | ||
], | ||
"DEFAULT": [ | ||
"tests/test_graphql.py" | ||
] | ||
|
||
} |
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
Oops, something went wrong.