Skip to content

fix: Upgrade edx-django-utils, dropping newrelic; fix test and typo#36799

Merged
timmc-edx merged 1 commit intomasterfrom
timmc/nr-warn
May 27, 2025
Merged

fix: Upgrade edx-django-utils, dropping newrelic; fix test and typo#36799
timmc-edx merged 1 commit intomasterfrom
timmc/nr-warn

Conversation

@timmc-edx
Copy link
Copy Markdown
Contributor

This upgrades edx-django-utils to a version that drops the newrelic dependency. However, I also needed to fix a test that was sensitive to the number of warnings that the code under test produced. With newrelic gone, there's an additional warning.

  • Fix test so that it isn't sensitive to unrelated warnings
  • Fix typo in warning

For reference, this is the new warning:

"WARNING:edx_django_utils.monitoring.internal.backends:Could not load OPENEDX_TELEMETRY option 'edx_django_utils.monitoring.NewRelicBackend': Exception('Could not load New Relic monitoring backend; package not present.')"

This is expected due to edx-django-utils still defaulting to NR for telemetry. (Perhaps the subject of a future breaking change.)

This upgrades edx-django-utils to a version that drops the newrelic
dependency. However, I also needed to fix a test that was sensitive to the
number of warnings that the code under test produced. With newrelic gone,
there's an additional warning.

- Fix test so that it isn't sensitive to unrelated warnings
- Fix typo in warning

For reference, this is the new warning:

```
"WARNING:edx_django_utils.monitoring.internal.backends:Could not load OPENEDX_TELEMETRY option 'edx_django_utils.monitoring.NewRelicBackend': Exception('Could not load New Relic monitoring backend; package not present.')"
```

This is expected due to edx-django-utils still defaulting to NR for
telemetry. (Perhaps the subject of a future breaking change.)
@timmc-edx timmc-edx requested a review from a team as a code owner May 27, 2025 13:47
@timmc-edx timmc-edx merged commit 4856539 into master May 27, 2025
49 checks passed
@timmc-edx timmc-edx deleted the timmc/nr-warn branch May 27, 2025 15:32
@edx-pipeline-bot
Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production.

@edx-pipeline-bot
Copy link
Copy Markdown
Contributor

2U Release Notice: This PR has been deployed to the edX production environment.

marlonkeating pushed a commit that referenced this pull request Jul 15, 2025
…36799)

This upgrades edx-django-utils to a version that drops the newrelic
dependency. However, I also needed to fix a test that was sensitive to the
number of warnings that the code under test produced. With newrelic gone,
there's an additional warning.

- Fix test so that it isn't sensitive to unrelated warnings
- Fix typo in warning

For reference, this is the new warning:

```
"WARNING:edx_django_utils.monitoring.internal.backends:Could not load OPENEDX_TELEMETRY option 'edx_django_utils.monitoring.NewRelicBackend': Exception('Could not load New Relic monitoring backend; package not present.')"
```

This is expected due to edx-django-utils still defaulting to NR for
telemetry. (Perhaps the subject of a future breaking change.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants