Fix go tests to maintain order of the log output#38
Merged
Conversation
nhinsch
reviewed
Nov 9, 2021
nhinsch
reviewed
Nov 9, 2021
Contributor
|
Looks like the tests are failing in CI (could be related to this PR, might be a pre-existing issue). What is causing those failures and is it possible to fix them in this PR? |
nhinsch
approved these changes
Nov 22, 2021
nhinsch
left a comment
Contributor
There was a problem hiding this comment.
Per Slack message, I think this is now in a place where it's ready to be merged (we will then move the tests to the agent repo).
nhinsch
reviewed
Nov 22, 2021
|
|
||
| now=$(date +"%r") | ||
| echo "Sleeping $LOGS_WAIT_SECONDS seconds to wait for logs to appear in CloudWatch..." | ||
| echo "This should be done in 10 minutes from $now" |
Contributor
There was a problem hiding this comment.
This message is a nice touch, I think it improves the user experience of running the tests.
jchrostek-dd
added a commit
that referenced
this pull request
Apr 15, 2026
## Summary Resolves all **24 open Dependabot security alerts** (2 critical, 6 high, 14 medium, 2 low) across three ecosystems by updating vulnerable dependencies in test infrastructure. **Note:** All affected dependencies are in test infrastructure (`integration-tests/`, `local_tests/`), not the production Rust extension (`bottlecap/`). ## Changes ### npm (`integration-tests/`) - **axios** `^1.6.7` → `^1.15.0` — fixes SSRF bypass via NO_PROXY hostname normalization (CVE-2025-62718, critical) ### Go (`local_tests/golang/`) - **golang.org/x/net** `v0.2.0` → `v0.52.0` — fixes 8 alerts: HTTP/2 rapid reset, uncontrolled resource consumption, XSS, IPv6 zone ID proxy bypass, excessive memory growth, stream cancellation, improper text rendering - **google.golang.org/grpc** `v1.50.1` → `v1.80.0` — fixes 2 alerts: authorization bypass via missing leading slash (CVE-2026-33186, critical), HTTP/2 rapid reset - **google.golang.org/protobuf** `v1.28.1` → `v1.36.11` — fixes infinite loop in protojson.Unmarshal - **github.com/golang/glog** `v1.0.0` → `v1.2.5` — fixes insecure temporary file usage ### Python (`local_tests/serverless-init/`) - **Flask** `2.1.2` → `3.1.3` — fixes session cookie disclosure, missing Vary:Cookie header - **Werkzeug** `2.2.2` → `3.1.8` — fixes 9 alerts: debugger RCE, safe_join Windows device name bypasses, multipart form DoS, resource exhaustion, nameless cookie bypass ## Reviewer Notes⚠️ **Go minimum version**: The `go` directive in `local_tests/golang/go.mod` was auto-upgraded from `go 1.22` to `go 1.25.0` (required by `golang.org/x/net v0.52.0`). This only affects the test Lambda function, not CI build toolchains for the main extension.⚠️ **Flask/Werkzeug major version jump**: Flask 2.x → 3.x and Werkzeug 2.x → 3.x are major version bumps. The test app (`app.py`) uses minimal Flask APIs and was reviewed for compatibility. However, `ddtrace==1.4.1` compatibility with Flask 3.x should be verified in CI. ## Alert Breakdown | Severity | Count | Alerts | |----------|-------|--------| | Critical | 2 | #128 (axios SSRF), #104 (gRPC auth bypass) | | High | 6 | #52, #43, #40, #38, #37, #20 | | Medium | 14 | #88, #74, #73, #70, #68, #65, #60, #59, #53, #51, #49, #45, #41, #36 | | Low | 2 | #89, #39 | Co-authored-by: Claude Opus 4.6 (1M context) <[email protected]>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Originally the handler contained logs and metrics leading to a single binary, but we did not sort the log output of the integration test. This led to constant changes in the integration test output. Trying to use sort when normalizing the logs resulted in unordered log lines. I went back to a separated metric and log binary which is also in line with the other tests.