Skip to content

Commit e855ca2

Browse files
committed
Rename serverless_azure to framework_azurefunctions
1 parent becbf73 commit e855ca2

File tree

11 files changed

+8
-67
lines changed

11 files changed

+8
-67
lines changed

.github/workflows/tests.yml

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
- rediscluster
5959
- solr
6060
- valkey
61-
- azurefunctions
6261

6362
steps:
6463
- name: Status
@@ -1471,61 +1470,3 @@ jobs:
14711470
include-hidden-files: true
14721471
if-no-files-found: error
14731472
retention-days: 1
1474-
1475-
azurefunctions:
1476-
env:
1477-
TOTAL_GROUPS: 1
1478-
1479-
strategy:
1480-
fail-fast: false
1481-
matrix:
1482-
group-number: [1]
1483-
1484-
runs-on: ubuntu-22.04
1485-
container:
1486-
image: ghcr.io/newrelic/newrelic-python-agent-ci:latest
1487-
options: >-
1488-
--add-host=host.docker.internal:host-gateway
1489-
timeout-minutes: 30
1490-
1491-
steps:
1492-
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # 4.1.1
1493-
1494-
- name: Install azure-core-tools
1495-
run: |
1496-
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb && \
1497-
sudo dpkg -i packages-microsoft-prod.deb && \
1498-
sudo apt-get update && \
1499-
sudo apt-get install azure-functions-core-tools-4
1500-
1501-
- name: Fetch git tags
1502-
run: |
1503-
git config --global --add safe.directory "$GITHUB_WORKSPACE"
1504-
git fetch --tags origin
1505-
1506-
- name: Configure pip cache
1507-
run: |
1508-
mkdir -p /github/home/.cache/pip
1509-
chown -R "$(whoami)" /github/home/.cache/pip
1510-
1511-
- name: Get Environments
1512-
id: get-envs
1513-
run: |
1514-
echo "envs=$(tox -l | grep '^${{ github.job }}\-' | ./.github/workflows/get-envs.py)" >> "$GITHUB_OUTPUT"
1515-
env:
1516-
GROUP_NUMBER: ${{ matrix.group-number }}
1517-
1518-
- name: Test
1519-
run: |
1520-
tox -vv -e ${{ steps.get-envs.outputs.envs }} -p auto
1521-
env:
1522-
TOX_PARALLEL_NO_SPINNER: 1
1523-
PY_COLORS: 0
1524-
1525-
- name: Upload Coverage Artifacts
1526-
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # 4.3.1
1527-
with:
1528-
name: coverage-${{ github.job }}-${{ strategy.job-index }}
1529-
path: ./**/.coverage.*
1530-
retention-days: 1
1531-

newrelic/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4093,11 +4093,11 @@ def _process_module_builtin_defaults():
40934093
_process_module_definition("tornado.routing", "newrelic.hooks.framework_tornado", "instrument_tornado_routing")
40944094
_process_module_definition("tornado.web", "newrelic.hooks.framework_tornado", "instrument_tornado_web")
40954095
_process_module_definition(
4096-
"azure.functions._http", "newrelic.hooks.serverless_azure", "instrument_azure_function__http"
4096+
"azure.functions._http", "newrelic.hooks.framework_azurefunctions", "instrument_azure_function__http"
40974097
)
40984098
_process_module_definition(
40994099
"azure_functions_worker.dispatcher",
4100-
"newrelic.hooks.serverless_azure",
4100+
"newrelic.hooks.framework_azurefunctions",
41014101
"instrument_azure_functions_worker_dispatcher",
41024102
)
41034103

File renamed without changes.
File renamed without changes.

tests/serverless_azure/conftest.py renamed to tests/framework_azurefunctions/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
collector_agent_registration = collector_agent_registration_fixture(
30-
app_name="Python Agent Test (serverless_azure)", default_settings=_default_settings
30+
app_name="Python Agent Test (framework_azurefunctions)", default_settings=_default_settings
3131
)
3232

3333

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

tests/serverless_azure/test_function_invocation.py renamed to tests/framework_azurefunctions/test_function_invocation.py

File renamed without changes.

0 commit comments

Comments
 (0)