Skip to content

Commit 74aaac3

Browse files
TimPansinodependabot[bot]mergify[bot]lrafeeihmstepanek
authored
Merge main into develop-windows (#1527)
* Bump the github_actions group with 2 updates (#1466) Bumps the github_actions group with 2 updates: [codecov/codecov-action](https://github.com/codecov/codecov-action) and [github/codeql-action](https://github.com/github/codeql-action). Updates `codecov/codecov-action` from 5.4.3 to 5.5.0 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@18283e0...fdcc847) Updates `github/codeql-action` from 3.29.10 to 3.29.11 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@96f518a...3c3833e) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: 5.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github_actions - dependency-name: github/codeql-action dependency-version: 3.29.11 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github_actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Safeguards for deepest unique path (#1450) * Safeguards for deepest unique path * Remove breakpoint --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Add try-except to web request parsing (#1449) * Add try-except to web request parsing * Fix parsing logic * Add clarifying comment --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Use legacy bitnami for now (#1471) * Use legacy bitnami for now * Revert solr change * Revert zookeeper change * Add graphene-django instrumentation (#1451) * Add graphene-django instrumentation * Increase naming priority * Remove unused import * Add sychronous schema tests * Clean up test files * Remove commented out code * Megalinter fixes * Add operation & resolver tests * Refine tests * MegaLinter fixes * Suggested reviewer changes * Megalinter fixes * Django middleware filtering settings (#1444) * Reduce number of spans in django framework (#779) * Do not wrap useless middlewares * Fixup: use frozenset * Add config settings * Add middleware enable/disable options * Add testing * Testing exclude/include settings * Add optional fixture scope argument * Rewrite tests to use fixtures * Add new fixture * Fix tests * Fix ruff errors * MegaLinter Fixes * Add config file tests * MegaLinter fixes * Reviewer changes * MegaLinter fixes * Add InstrumentationMiddlewareSettings * More exclude/include filter tests * Megalinter fixes * Tests to increase coverage * Megalinter fixes * More coverage tests * ANOTHER TEST: --------- Co-authored-by: Hannah Stepanek <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Pin bitnami images to bitnamilegacy (#1475) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Distributed CI Image Build (#1478) * Distribute build of CI image across runners * Add weekly CI image rebuild * Add rust to toolchain * Add human readable job names * Linting * Remove old apis (#1479) * Remove add_custom_parameter(s) * Remove get_browser_timing_footer * Remove ignore_errors arg from error_trace * Remove record_exception * Remove accept_distributed_trace_payload * Remove create_distributed_trace_payload * Remove lambda handler * Remove ObjectWrapper * Remove in_function API * Remove out_function API * Remove pre_function API * Remove post_function API * Remove NewRelicLogHandler * Fix Megalinter errors --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Bump the github_actions group with 3 updates (#1473) Bumps the github_actions group with 3 updates: [actions/attest-build-provenance](https://github.com/actions/attest-build-provenance), [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) and [github/codeql-action](https://github.com/github/codeql-action). Updates `actions/attest-build-provenance` from 2.4.0 to 3.0.0 - [Release notes](https://github.com/actions/attest-build-provenance/releases) - [Changelog](https://github.com/actions/attest-build-provenance/blob/main/RELEASE.md) - [Commits](actions/attest-build-provenance@e8998f9...977bb37) Updates `aquasecurity/trivy-action` from 0.32.0 to 0.33.0 - [Release notes](https://github.com/aquasecurity/trivy-action/releases) - [Commits](aquasecurity/trivy-action@dc5a429...f9424c1) Updates `github/codeql-action` from 3.29.11 to 3.30.0 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@3c3833e...2d92b76) --- updated-dependencies: - dependency-name: actions/attest-build-provenance dependency-version: 3.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github_actions - dependency-name: aquasecurity/trivy-action dependency-version: 0.33.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github_actions - dependency-name: github/codeql-action dependency-version: 3.30.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github_actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Remove attestations for attestation files by specifying extensions (#1476) Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Add w3c traceparent header support (#1448) * Add config settings * Add traceparent logic * Log warning if value is not recognized * Move & rename function_not_called * Use existing function called validators * Fixup: lint log message * Fixup: validator import paths * Fixup: validator import path * Fixup: validator import path * Reformat w/ ruff * Use legacy bitnami for now (#1471) * Use legacy bitnami for now * Revert solr change * Revert zookeeper change * Add graphene-django instrumentation (#1451) * Add graphene-django instrumentation * Increase naming priority * Remove unused import * Add sychronous schema tests * Clean up test files * Remove commented out code * Megalinter fixes * Add operation & resolver tests * Refine tests * MegaLinter fixes * Suggested reviewer changes * Megalinter fixes * Fixup: paths * Fixup: reformat lint changes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Lalleh Rafeei <[email protected]> * Add global_settings fallback in ES instrumentation (#1454) * Fallback to global_settings in elasticsearch * Fallback to global_settings in graphql * Fixup: ruff lint --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Remove instrumentation for options method on async ElasticSearch client. (#1477) * Remove instrumentation for options method on async ES client. * Add skip if lower than v8. * Ignore options method in instrumented methods test. * Lint --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Tim Pansino <[email protected]> * Add Converse API non-streaming support. (#1428) * Add Converse API support. * Update aiobotocore instrumentation. * Add support for converse calls made with aioboto3 clients. * Linting fixes. * Review comments. * Remove comment from get call * Trigger tests * Lint --------- Co-authored-by: Hannah Stepanek <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Tim Pansino <[email protected]> * Remove old settings (#1482) * Remove transaction_tracer.capture_attributes * Remove error_collector.capture_attributes * Remove browser_monitoring.capture_attributes * Remove analytic_events.capture_attributes * Remove analytics_events.enabled * Remove error_collector.ignore_errors * Remove strip_exception_messages.whitelist * Remove ssl as a setting * Remove agent_limits.merge_stats_maximum setting * Remove ignore_params setting * ignore_errors removed from test * Fix megalinter errors * Fix falcon tests for master branch (#1484) * Bump the github_actions group with 5 updates (#1483) Bumps the github_actions group with 5 updates: | Package | From | To | | --- | --- | --- | | [actions/setup-python](https://github.com/actions/setup-python) | `5.6.0` | `6.0.0` | | [pypa/gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish) | `1.12.4` | `1.13.0` | | [codecov/codecov-action](https://github.com/codecov/codecov-action) | `5.5.0` | `5.5.1` | | [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action) | `0.33.0` | `0.33.1` | | [github/codeql-action](https://github.com/github/codeql-action) | `3.30.0` | `3.30.1` | Updates `actions/setup-python` from 5.6.0 to 6.0.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@a26af69...e797f83) Updates `pypa/gh-action-pypi-publish` from 1.12.4 to 1.13.0 - [Release notes](https://github.com/pypa/gh-action-pypi-publish/releases) - [Commits](pypa/gh-action-pypi-publish@76f52bc...ed0c539) Updates `codecov/codecov-action` from 5.5.0 to 5.5.1 - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@fdcc847...5a10915) Updates `aquasecurity/trivy-action` from 0.33.0 to 0.33.1 - [Release notes](https://github.com/aquasecurity/trivy-action/releases) - [Commits](aquasecurity/trivy-action@f9424c1...b6643a2) Updates `github/codeql-action` from 3.30.0 to 3.30.1 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@2d92b76...f1f6e5f) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: 6.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github_actions - dependency-name: pypa/gh-action-pypi-publish dependency-version: 1.13.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github_actions - dependency-name: codecov/codecov-action dependency-version: 5.5.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github_actions - dependency-name: aquasecurity/trivy-action dependency-version: 0.33.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github_actions - dependency-name: github/codeql-action dependency-version: 3.30.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github_actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Updated Packaging (#1480) * Remove unused linters from pyproject.toml * Move packaging config to pyproject.toml * Update setuptools_scm requirement * Add exclude for version file --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Enable coverage for motor instrumentation (#1487) * Drop CI Image Build Caching (#1493) * Add deprecation warning for modules (#1490) * Add deprecation warning for modules * Megalinter fixes * Bump github/codeql-action in the github_actions group (#1492) Bumps the github_actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action). Updates `github/codeql-action` from 3.30.1 to 3.30.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@f1f6e5f...192325c) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 3.30.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github_actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Add Additional Delay to Test Startup Fixture (#1494) * Add additional delay to test startup fixture * Fix assertion error message --------- Co-authored-by: Uma Annamalai <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Temporarily remove pypy310 test from pymysql and aiomysql (#1501) * Remove pymysql pypy310 test * Remove aiomysql pypy310 test * Falcon sanic testing fix (#1495) * Remove unsupported Sanic from tests * Remove unsupported Falcon from tests --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Camunda Pyzeebe Instrumentation (#1385) * add initial pyzeebe instrumentation/tests * second attempt at tests (failing) * updated tests - 1/2 passing locally * combine function_trace client tests * fix: py agent team feedback #1 * fix: pyzeebe tests * chore: ruff formatting * fix: review updates #2 * fix: next round of updates * fix: more updates based on feedback * fix: resource parameter capture * chore: ruff lint fixes * fix: no txn tests;add resourceCount attr back --------- Co-authored-by: Uma Annamalai <[email protected]> * Format with ruff (#1505) * Update deprecated urllib APIs (#1499) * Update deprecated urllib APIs * Megalinter fixes * Megalinter fixes * Add skipif and revert urllib tests * Megalinter fixes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Add deprecation warning to WSGI environ dict settings (#1496) * WSGI environ dict deprecation warning * Megalinter fixes * Megalinter fixes * Change name of deprecated WSGI settings list * Megalinter fixes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Merge main into develop-11.0.0 (#1503) * Enable coverage for motor instrumentation (#1487) * Drop CI Image Build Caching (#1493) * Add deprecation warning for modules (#1490) * Add deprecation warning for modules * Megalinter fixes * Bump github/codeql-action in the github_actions group (#1492) Bumps the github_actions group with 1 update: [github/codeql-action](https://github.com/github/codeql-action). Updates `github/codeql-action` from 3.30.1 to 3.30.3 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@f1f6e5f...192325c) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 3.30.3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github_actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Add Additional Delay to Test Startup Fixture (#1494) * Add additional delay to test startup fixture * Fix assertion error message --------- Co-authored-by: Uma Annamalai <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Temporarily remove pypy310 test from pymysql and aiomysql (#1501) * Remove pymysql pypy310 test * Remove aiomysql pypy310 test * Falcon sanic testing fix (#1495) * Remove unsupported Sanic from tests * Remove unsupported Falcon from tests --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Camunda Pyzeebe Instrumentation (#1385) * add initial pyzeebe instrumentation/tests * second attempt at tests (failing) * updated tests - 1/2 passing locally * combine function_trace client tests * fix: py agent team feedback #1 * fix: pyzeebe tests * chore: ruff formatting * fix: review updates #2 * fix: next round of updates * fix: more updates based on feedback * fix: resource parameter capture * chore: ruff lint fixes * fix: no txn tests;add resourceCount attr back --------- Co-authored-by: Uma Annamalai <[email protected]> * Format with ruff (#1505) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Timothy Pansino <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Uma Annamalai <[email protected]> Co-authored-by: Keagan Peet <[email protected]> * Swap setting deprecations (#1497) * Deprecate analytics_events.max_samples_stored * Deprecate transaction_events.max_samples_stored * Deprecate span_events.max_samples_stored * Deprecate event_harvest_config.harvest_limits.error_event_data * Deprecate custom_insights_events.max_samples_stored * Deprecate application_logging.forwarding.max_samples_stored * Add settings to core/config * Megalinter fixes * Revert env var to previous value * Add variable for default value * Use preferred settings in agent * Megalinter fixes * Reviewer changes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Drop Python 3.7 Support (#1491) * Drop monotonic C extension * Add warning in setup.py * Format and lint setup.py * Fix 3.7 specific logic for Flask tests * Removing all logic related to Python 3.7 * Format with ruff * Remove py37 tests from tox * Remove Python 2 syntax checks * Sort agent.py file * Fix merge commits * Remove unsupported Sanic from tests * Remove unsupported Falcon from tests * Megalinter fixes * Redo changes to setup.py --------- Co-authored-by: Tim Pansino <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Merge pull request #1508 from newrelic/fix-psycopg-as-string Fix psycopg as_string() * Merge pull request #1513 from newrelic/fix-pyzeebe-pypy Remove PyPy From PyZeebe Tests * Fix merge conflict leftovers from removing Python 3.7 (#1515) * Move codecov.yml file to .github folder (#1516) * Update Megalinter (#1510) * Update megalinter workflow * Update megalinter version * Fix RUF059: unused-unpacked-variable * Fix PLW1641: eq-without-hash --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Add autogen instrumentation and MCP updates (#1520) * Add instrumentation for autogen MCP tool adapter. (#1409) * Add instrumentation for MCP tool adapter. * [MegaLinter] Apply linters fixes * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Autogen Agent Instrumentation (#1412) * Add autogen agent instrumentation. * Address review feedback. * [MegaLinter] Apply linters fixes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Sync autogen feature branch (#1472) * Add instrumentation for autogen MCP tool adapter. (#1409) * Add instrumentation for MCP tool adapter. * [MegaLinter] Apply linters fixes * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Autogen Agent Instrumentation (#1412) * Add autogen agent instrumentation. * Address review feedback. * [MegaLinter] Apply linters fixes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Add instrumentation for autogen MCP tool adapter. (#1409) * Add instrumentation for MCP tool adapter. * [MegaLinter] Apply linters fixes * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Autogen Agent Instrumentation (#1412) * Add autogen agent instrumentation. * Address review feedback. * [MegaLinter] Apply linters fixes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Save linking metadata on generator proxy. * Add comments to changes in instrumentation. * Add LLMAgent events to autogen instrumentation. (#1455) --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * MCP Streamable HTTP Spans (DO NOT MERGE YET) (#1462) * Add tool manager span. * Add tool manager spans to MCP instrumentation to support streaming. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Update MCP instrumentation to check if AIM is enabled. (#1456) * Update MCP instrumentation to check if AIM is enabled. * Linting --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Tim Pansino <[email protected]> * Add clause to avoid reporting empty content in openai. (#1517) * Add instrumentation for autogen MCP tool adapter. (#1409) * Add instrumentation for MCP tool adapter. * [MegaLinter] Apply linters fixes * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Autogen Agent Instrumentation (#1412) * Add autogen agent instrumentation. * Address review feedback. * [MegaLinter] Apply linters fixes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Sync autogen feature branch (#1472) * Add instrumentation for autogen MCP tool adapter. (#1409) * Add instrumentation for MCP tool adapter. * [MegaLinter] Apply linters fixes * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Autogen Agent Instrumentation (#1412) * Add autogen agent instrumentation. * Address review feedback. * [MegaLinter] Apply linters fixes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Add instrumentation for autogen MCP tool adapter. (#1409) * Add instrumentation for MCP tool adapter. * [MegaLinter] Apply linters fixes * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Add autogen agent instrumentation. * Revert "Add autogen agent instrumentation." This reverts commit a26766a. * Autogen Agent Instrumentation (#1412) * Add autogen agent instrumentation. * Address review feedback. * [MegaLinter] Apply linters fixes --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Save linking metadata on generator proxy. * Add comments to changes in instrumentation. * Add LLMAgent events to autogen instrumentation. (#1455) --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * MCP Streamable HTTP Spans (DO NOT MERGE YET) (#1462) * Add tool manager span. * Add tool manager spans to MCP instrumentation to support streaming. --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Update MCP instrumentation to check if AIM is enabled. (#1456) * Update MCP instrumentation to check if AIM is enabled. * Linting --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Tim Pansino <[email protected]> * Add clause to avoid reporting empty content in openai. (#1517) * Update validator path. * Add MCP adapter test for no transaction. * Linting fixups. * Linting --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Tim Pansino <[email protected]> * Switch to Using uv in CI (#1514) * Switch infra to uv * Update Dockerfile for uv * Configure uv with pinned python and shims * Use uv in pre-commit * Move uv download manual setting * Add asv tool for the future * Benchmarking Infrastructure (#1506) * Use asv for benchmarking * Linting --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Fix CI Image (#1523) * Restore all ubuntu packages * Remove pycurl options * Reconfigure uv installation process * Fix for azure_functions_worker venvs --------- Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> * Bump the github_actions group with 2 updates (#1522) Bumps the github_actions group with 2 updates: [docker/login-action](https://github.com/docker/login-action) and [github/codeql-action](https://github.com/github/codeql-action). Updates `docker/login-action` from 3.5.0 to 3.6.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](docker/login-action@184bdaa...5e57cd1) Updates `github/codeql-action` from 3.30.3 to 3.30.5 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](github/codeql-action@192325c...3599b3b) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: 3.6.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github_actions - dependency-name: github/codeql-action dependency-version: 3.30.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github_actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> Co-authored-by: Lalleh Rafeei <[email protected]> Co-authored-by: Hannah Stepanek <[email protected]> Co-authored-by: Uma Annamalai <[email protected]> Co-authored-by: Keagan Peet <[email protected]>
1 parent f49aab6 commit 74aaac3

File tree

157 files changed

+4800
-2167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+4800
-2167
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,8 @@ RUN mkdir -p ${HOME} && \
2626
useradd --uid ${UID} --gid ${GID} --home ${HOME} vscode && \
2727
chown -R ${UID}:${GID} /home/vscode
2828

29-
# Fix pyenv installation
30-
RUN echo 'eval "$(pyenv init -)"' >>${HOME}/.bashrc && \
31-
chown -R vscode:vscode "${PYENV_ROOT}" && \
32-
chown -R vscode:vscode "${PIPX_HOME}"
29+
# Allow uv to download Python versions manually
30+
ENV UV_PYTHON_DOWNLOADS=manual
3331

3432
# Set user
3533
USER ${UID}:${GID}

.github/.trivyignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Ignored Vulnerabilities
33
# =======================
44

5-
# Accepting risk due to Python 3.7 and 3.8 support.
5+
# Accepting risk due to Python 3.8 support.
66
CVE-2025-50181
77

88
# Not relevant, only affects Pyodide

codecov.yml renamed to .github/codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ ignore:
2323
- "newrelic/hooks/database_psycopg2ct.py"
2424
- "newrelic/hooks/datastore_aioredis.py"
2525
- "newrelic/hooks/datastore_aredis.py"
26-
- "newrelic/hooks/datastore_motor.py"
2726
- "newrelic/hooks/datastore_pyelasticsearch.py"
2827
- "newrelic/hooks/external_dropbox.py"
2928
- "newrelic/hooks/external_facepy.py"

.github/containers/Dockerfile

Lines changed: 28 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
FROM ubuntu:20.04
16+
FROM ubuntu:24.04
1717
ARG TARGETPLATFORM
1818

1919
# Install OS packages
@@ -103,36 +103,34 @@ RUN ln -fs "/usr/share/zoneinfo/${TZ}" /etc/localtime && \
103103
ENV HOME=/root
104104
WORKDIR "${HOME}"
105105

106-
# Install pyenv
107-
ENV PYENV_ROOT="/usr/local/pyenv"
108-
RUN curl https://pyenv.run/ | /bin/bash
109-
ENV PATH="${PYENV_ROOT}/bin:${PYENV_ROOT}/shims:${PATH}"
110-
RUN echo 'eval "$(pyenv init -)"' >>${HOME}/.bashrc && \
111-
pyenv update
106+
# Install and configure uv
107+
RUN curl -LsSf https://astral.sh/uv/install.sh | sh
108+
ENV PATH="${HOME}/.local/bin:${PATH}"
109+
ENV UV_PYTHON_PREFERENCE="only-managed"
110+
ENV UV_LINK_MODE="copy"
112111

113-
# Install Python
114-
ARG PYTHON_VERSIONS="3.12 3.11 3.10 3.9 3.8 3.7 3.13 pypy3.10-7.3.17"
115-
COPY --chown=0:0 --chmod=755 ./install-python.sh /tmp/install-python.sh
116-
RUN /tmp/install-python.sh && \
117-
rm /tmp/install-python.sh
112+
# Install PyPy versions and rename shims
113+
RUN uv python install -f pp3.11 pp3.10
114+
RUN mv "${HOME}/.local/bin/python3.11" "${HOME}/.local/bin/pypy3.11" && \
115+
mv "${HOME}/.local/bin/python3.10" "${HOME}/.local/bin/pypy3.10"
118116

119-
# Install dependencies for main python installation
120-
COPY ./requirements.txt /tmp/requirements.txt
121-
RUN pyenv exec pip install --upgrade -r /tmp/requirements.txt && \
122-
rm /tmp/requirements.txt
117+
# Install CPython versions
118+
RUN uv python install -f cp3.14 cp3.13 cp3.12 cp3.11 cp3.10 cp3.9 cp3.8
123119

124-
# Install tools with pipx in isolated environments
125-
COPY ./requirements-tools.txt /tmp/requirements-tools.txt
126-
ENV PIPX_HOME="/opt/pipx"
127-
ENV PIPX_BIN_DIR="${PIPX_HOME}/bin"
128-
ENV PATH="${PIPX_BIN_DIR}:${PATH}"
129-
RUN mkdir -p "${PIPX_BIN_DIR}" && \
130-
while IFS="" read -r line || [ -n "$line" ]; do \
131-
pyenv exec pipx install --global "${line}"; \
132-
done </tmp/requirements-tools.txt && \
133-
rm /tmp/requirements-tools.txt
120+
# Set default Python version to CPython 3.13
121+
RUN uv python install -f --default cp3.13
134122

135-
# Inject compatibile dependencies for tox
136-
COPY ./requirements-tox.txt /tmp/requirements-tox.txt
137-
RUN pipx inject --force tox -r /tmp/requirements-tox.txt && \
138-
rm /tmp/requirements-tox.txt
123+
# Add shim for pip to use 'uv pip'
124+
COPY --chmod=775 <<EOF "${HOME}/.local/bin/pip"
125+
#!/bin/bash
126+
exec uv pip \$@
127+
EOF
128+
129+
# Prevent any runtime downloads
130+
ENV UV_PYTHON_DOWNLOADS=never
131+
132+
# Install tools with uv in isolated environments
133+
RUN uv tool install tox==4.23.2 --with tox-uv && \
134+
uv tool install ruff && \
135+
uv tool install pre-commit --with pre-commit-uv && \
136+
uv tool install asv --with virtualenv

.github/containers/Makefile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
# Override constants
1616
PLATFORM_OVERRIDE:=
17-
PYTHON_VERSIONS_OVERRIDE:=
1817

1918
# Computed variables
2019
IMAGE_NAME:=ghcr.io/newrelic/newrelic-python-agent-ci
@@ -23,8 +22,6 @@ REPO_ROOT:=$(realpath ${MAKEFILE_DIR}../../)
2322
UNAME_P:=$(shell uname -p)
2423
PLATFORM_AUTOMATIC:=$(if $(findstring arm,${UNAME_P}),linux/arm64,linux/amd64)
2524
PLATFORM:=$(if ${PLATFORM_OVERRIDE},${PLATFORM_OVERRIDE},${PLATFORM_AUTOMATIC})
26-
PYTHON_VERSIONS_AUTOMATIC:=3.10
27-
PYTHON_VERSIONS:=$(if ${PYTHON_VERSIONS_OVERRIDE},${PYTHON_VERSIONS_OVERRIDE},${PYTHON_VERSIONS_AUTOMATIC})
2825

2926
.PHONY: default
3027
default: test
@@ -33,8 +30,7 @@ default: test
3330
build:
3431
@docker build ${MAKEFILE_DIR} \
3532
--platform=${PLATFORM} \
36-
-t ${IMAGE_NAME}:local \
37-
--build-arg='PYTHON_VERSIONS=${PYTHON_VERSIONS}'
33+
-t ${IMAGE_NAME}:local
3834

3935
# Run the local tag as a container.
4036
.PHONY: run
@@ -62,12 +58,12 @@ run.%:
6258
-e GITHUB_ACTIONS="true" \
6359
${IMAGE_NAME}:$* /bin/bash
6460

65-
# Ensure python versions are usable. Cannot be automatically used with PYTHON_VERSIONS_OVERRIDE.
61+
# Ensures python versions are usable.
6662
.PHONY: test
6763
test: build
6864
@docker run --rm \
6965
--platform=${PLATFORM} \
70-
ghcr.io/newrelic/python-agent-ci:local \
66+
${IMAGE_NAME}:local \
7167
/bin/bash -c '\
7268
python3.10 --version && \
7369
touch tox.ini && tox --version && \

.github/containers/install-python.sh

Lines changed: 0 additions & 50 deletions
This file was deleted.

.github/containers/requirements-tools.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/containers/requirements-tox.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

.github/containers/requirements.txt

Lines changed: 0 additions & 5 deletions
This file was deleted.

.github/workflows/benchmarks.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# Copyright 2010 New Relic, Inc.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
---
15+
name: Benchmarks
16+
17+
on:
18+
pull_request:
19+
20+
permissions:
21+
contents: read
22+
23+
concurrency:
24+
group: ${{ github.ref || github.run_id }}-${{ github.workflow }}
25+
cancel-in-progress: true
26+
27+
jobs:
28+
# Benchmarks
29+
benchmark:
30+
runs-on: ubuntu-24.04
31+
timeout-minutes: 30
32+
strategy:
33+
matrix:
34+
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
35+
36+
env:
37+
ASV_FACTOR: "1.1"
38+
BASE_SHA: ${{ github.event.pull_request.base.sha }}
39+
40+
steps:
41+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # 5.0.0
42+
with:
43+
fetch-depth: 0
44+
45+
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # 6.0.0
46+
with:
47+
python-version: "${{ matrix.python }}"
48+
49+
- name: Fetch git tags
50+
run: |
51+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
52+
git fetch --tags origin
53+
54+
- name: Install Dependencies
55+
run: |
56+
pip install --upgrade pip
57+
pip install asv virtualenv
58+
59+
- name: Configure Machine Information
60+
run: |
61+
asv machine --yes
62+
63+
- name: Run Benchmark
64+
run: |
65+
asv continuous \
66+
--show-stderr \
67+
--split \
68+
--factor "${ASV_FACTOR}" \
69+
--python=${{ matrix.python }} \
70+
"${BASE_SHA}" "${GITHUB_SHA}"

0 commit comments

Comments
 (0)