Skip to content

Commit

Permalink
Use a different tool to replay traces
Browse files Browse the repository at this point in the history
  • Loading branch information
ofek committed Apr 1, 2023
1 parent 7eda1f6 commit cc90a11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/submit-traces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
path: captured-traces

- name: Set up trace replaying
run: pipx install mitmproxy
run: go install github.com/google/go-replayers/httpreplay/cmd/httpr@latest

- name: Replay
run: |-
Expand All @@ -49,7 +49,7 @@ jobs:
# check classes like when testing ddev or the downloader
if [[ -s "$request" ]]; then
echo "/// Replaying: $request"
mitmdump -C "$request"
httpr -replay "$request"
fi
done
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -160,9 +160,9 @@ jobs:
- name: Set up trace capturing
if: inputs.repo == 'core'
run: |-
pipx install mitmproxy
go install github.com/google/go-replayers/httpreplay/cmd/httpr@latest
mkdir .trace-captures
mitmdump -p "${{ inputs.trace-agent-port }}" -w "${{ env.TRACE_CAPTURE_FILE }}" > "${{ env.TRACE_CAPTURE_LOG }}" 2>&1 &
httpr -port "${{ inputs.trace-agent-port }}" -record "${{ env.TRACE_CAPTURE_FILE }}" > "${{ env.TRACE_CAPTURE_LOG }}" 2>&1 &
- name: Run Unit & Integration tests
if: inputs.standard && !inputs.minimum-base-package
Expand Down Expand Up @@ -204,8 +204,8 @@ jobs:
- name: Save trace captures
if: inputs.repo == 'core' && always()
run: |-
Stop-Process -Name "*mitmdump*"
cat "${{ env.TRACE_CAPTURE_LOG }}"
Stop-Process -Name "*httpr*"
shell: "pwsh"

- name: Upload captured traces
Expand Down
1 change: 1 addition & 0 deletions disk/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ requires = [
]
build-backend = "hatchling.build"


[project]
name = "datadog-disk"
description = "The Disk check"
Expand Down

0 comments on commit cc90a11

Please sign in to comment.