Skip to content

Commit

Permalink
resolve oracledb plugin step failing (#3216)
Browse files Browse the repository at this point in the history
* Fix OracleDB plugin job on CI to use Github Actions services container for Test-Agent instead of docker-compose
  • Loading branch information
wconti27 authored Jun 6, 2023
1 parent 5082455 commit f0c974a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
11 changes: 10 additions & 1 deletion .github/actions/testagent/logs/action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
name: "Get APM Test Agent Logs"
description: "Get the APM Test Agent logs from the test run."
inputs:
container-id:
description: "ID of the Docker Container to get logs from (optional)"
required: false
runs:
using: composite
steps:
- uses: actions/checkout@v2
- run: docker-compose logs testagent
- run: |
if [ -n "${{inputs.container-id}}" ]; then
docker logs ${{inputs.container-id}}
else
docker-compose logs testagent
fi
shell: bash
11 changes: 9 additions & 2 deletions .github/workflows/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -800,18 +800,25 @@ jobs:
ports:
- 1521:1521
- 5500:5500
testagent:
image: ghcr.io/datadog/dd-apm-test-agent/ddapm-test-agent:latest
env:
LOG_LEVEL: DEBUG
TRACE_LANGUAGE: javascript
DISABLED_CHECKS: trace_content_length
PORT: 9126
ports:
- 9126:9126
env:
PLUGINS: oracledb
SERVICES: oracledb
DD_TEST_AGENT_URL: http://testagent:9126
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/testagent/start
- uses: ./.github/actions/node/setup
- run: yarn install --ignore-engine
- run: yarn services
- run: yarn test:plugins
- uses: ./.github/actions/testagent/logs
- uses: codecov/codecov-action@v2

paperplane:
Expand Down

0 comments on commit f0c974a

Please sign in to comment.