Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
ce0f5ad
Use official datadog GH action to monitor CI visibility
AAraKKe Jan 16, 2026
87d8c6d
Add changelog
AAraKKe Jan 16, 2026
fcdf605
Add some debugging for failing tests
AAraKKe Jan 16, 2026
98ac609
Remove action and ensure ddtrace is a depdnency of the default enviro…
AAraKKe Jan 16, 2026
42effc5
Revert changes for debugging in test_agent_packages
AAraKKe Jan 16, 2026
8f70b27
Remove profiling
AAraKKe Jan 16, 2026
9bd010f
Remove trace analytics
AAraKKe Jan 16, 2026
e387451
Disable subprocess tracing
AAraKKe Jan 16, 2026
7753409
Try removing git metadta gathering
AAraKKe Jan 16, 2026
78e6616
Debug messages to understand git issues
AAraKKe Jan 16, 2026
ca0b7b2
Fix formattingh
AAraKKe Jan 16, 2026
d56f2d3
Fix error in debug code
AAraKKe Jan 16, 2026
9971089
Fix formatting
AAraKKe Jan 16, 2026
ba29c6e
Make sure we unshallwo the repo
AAraKKe Jan 16, 2026
f7de5f6
Also unshallwo for windows setup for ddev
AAraKKe Jan 16, 2026
85bf235
Add test environment name to differentiate between e2e and unit tests
AAraKKe Jan 19, 2026
4a1fffe
Update documentation
AAraKKe Jan 19, 2026
8b5083d
Add ci visibility to e2e tests as well
AAraKKe Jan 19, 2026
b453a1e
Try reducing the size of test-target
AAraKKe Jan 19, 2026
9cc3388
Streamline test-target to reduce the object footprint on actions
AAraKKe Jan 19, 2026
c3aaf5b
Ensure python version set to 3.13 when input is an empty string
AAraKKe Jan 19, 2026
d1c3dcd
Ensure python version is updatable through the py upgrade script
AAraKKe Jan 19, 2026
2e61bfc
Merge branch 'master' into aarakke/improve-ci-visibility
AAraKKe Jan 19, 2026
3475c29
Print actual ddev command run when executing tests
AAraKKe Jan 19, 2026
b2593f7
Update ddev env test command to respect trace enabled option
AAraKKe Jan 19, 2026
5d0756a
Fix update_py_config script patterns
AAraKKe Jan 19, 2026
f84772e
Fix AppEnvVar for enable tracing
AAraKKe Jan 19, 2026
7772a4e
[MOPU-207] Testing AI prompt for monitor template message structure q…
vuvkar Jan 19, 2026
6eff818
[MOPU-207] Fix changelog entry
vuvkar Jan 19, 2026
1d87ade
Merge branch 'master' into vahe.karamyan/mopu-207-another-test-branch
vuvkar Jan 19, 2026
bf9208e
Merge branch 'master' into vahe.karamyan/mopu-207-another-test-branch
vuvkar Jan 20, 2026
e2e2ead
Merge branch 'master' into vahe.karamyan/mopu-207-another-test-branch
vuvkar Jan 26, 2026
2bb6d13
Merge branch 'master' into vahe.karamyan/mopu-207-another-test-branch
vuvkar Jan 27, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove action and ensure ddtrace is a depdnency of the default enviro…
…nment
  • Loading branch information
AAraKKe committed Jan 16, 2026
commit 98ac609584670c9b01841773831980f2b3fda038
20 changes: 4 additions & 16 deletions .github/workflows/test-target.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,13 @@ jobs:
DDEV_E2E_AGENT_PY2: "${{ (inputs.platform == 'windows' && inputs.agent-image-windows-py2) || inputs.agent-image-py2 }}"
# Test results for later processing
TEST_RESULTS_BASE_DIR: "test-results"
# Tracing to monitor our test suite
# CI Visibility configuration
DD_ENV: "ci"
DD_SERVICE: "${{ inputs.target }}-integrations-${{ inputs.repo }}"
DD_TRACE_ANALYTICS_ENABLED: "true"
DD_CIVISIBILITY_ENABLED: "true"
DD_CIVISIBILITY_AGENTLESS_ENABLED: "true"
DD_API_KEY: "${{ secrets.DD_API_KEY }}"
# Prefix for artifact names when using minimum base package
MINIMUM_BASE_PACKAGE_PREFIX: "${{ inputs.minimum-base-package && 'minimum-base-package-' || '' }}"

Expand Down Expand Up @@ -227,21 +230,6 @@ jobs:
timeout-minutes: ${{ inputs.step-timeout-minutes }}
run: ddev ci setup ${{ inputs.target-env && format('{0}:{1}', inputs.target, inputs.target-env) || inputs.target }}

- name: Get ddtrace version from datadog_checks_base
# This is used to ensure that the version of ddtrace we use with the ci visibility action is the same one we have in datadog_checks_base
id: get-ddtrace-version
run: |
DDTRACE_VERSION=$(grep 'ddtrace==' datadog_checks_base/pyproject.toml | sed 's/.*ddtrace==\([0-9.]*\).*/\1/')
echo "version=$DDTRACE_VERSION" >> "$GITHUB_OUTPUT"

- name: Set up CI visibility
uses: datadog/test-visibility-github-action@f4b026bb8b8b53f323960cf86a849a0231ff93b9 # v2.5.0
with:
languages: python
api_key: "${{ secrets.DD_API_KEY }}"
print-github-step-summary: false
python-tracer-version: ${{ steps.get-ddtrace-version.outputs.version }}

- name: Run Unit & Integration tests
if: inputs.latest != true && inputs.minimum-base-package != true
timeout-minutes: ${{ inputs.step-timeout-minutes }}
Expand Down
2 changes: 2 additions & 0 deletions datadog_checks_base/tests/base/utils/test_agent_packages.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ def test_get_datadog_wheels():
# Verify all package names have underscores (dashes should be converted)
for pkg in packages:
assert "-" not in pkg

assert False
20 changes: 20 additions & 0 deletions ddev/src/ddev/plugin/external/hatch/environment_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ def pip_install_command(*args):

def finalize_config(self, config):
for env_name, env_config in config.items():
if env_name == 'default':
# Always add ddtrace as a dependency for the default environment
# This ensures we have it available when running tests to emit CI visibility data
# For those integrations that already have ddtrace as a dependency, either directly
# or through datadog_checks_base, this will have no effect.
self.inject_ddtrace_dependency(env_config)

is_template_env = env_name == 'default'
is_test_env = env_config.setdefault('test-env', is_template_env)
is_e2e_env = env_config.setdefault('e2e-env', is_template_env)
Expand Down Expand Up @@ -154,6 +161,19 @@ def formatter_command(self, options: str, settings_dir: str) -> str:
f'ruff format {options} --config {settings_dir}/pyproject.toml .',
)

def inject_ddtrace_dependency(self, env_config):
if not self.in_core_repo:
return

agent_requirements = self.root.parent / 'agent_requirements.in'
if not agent_requirements.exists():
return

for line in agent_requirements.read_text().splitlines():
if line.startswith('ddtrace=='):
env_config.setdefault('dependencies', []).append(line.strip())
return

def ruff_settings_dir(self):
# If the local pyproject.toml exists and has ruff configuration, use it
local_pyproject = Path("./pyproject.toml")
Expand Down
Loading