-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rename SENTRY__DSN to Sentry__Dsn #1424
Conversation
Quality Gate passedIssues Measures |
@@ -5,4 +5,4 @@ | |||
SLACK_ICON: https://raw.githubusercontent.com/DFE-Digital/get-into-teaching-api/master/.github/image.png?size=48 | |||
SLACK_USERNAME: GiT Workflows | |||
SLACK_FOOTER: Get Into Teaching API Service | |||
SENTRY__DSN: "" | |||
Sentry__Dsn: "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
really?!
also, does it definitely want the double underscore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep 🤯 in my local tests, they pass if the variable is named Sentry__Dsn
but fail if it is named SENTRY__DSN
. And yep, a double-underscore is required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how obscure. seems to relate to this. are we confident this isn't going to cause problems in production?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @carlosmartinez so it shouldn't affect Production as that value is read from AKS keyvaults; this value is used just in the github build pipeline. It is currently unset in the build pipeline, but a new version of the Sentry library requires it to be set to a blank string ""
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To add, in local tests where I have run:
export SENTRY__DSN=""
dotnet test --no-restore --verbosity normal
...
Test Run Failed.
Total tests: 1051
Passed: 1017
Failed: 34
Total time: 41.7688 Seconds
vs
export Sentry__Dsn=""
dotnet test --no-restore --verbosity normal
...
Test Run Successful.
Total tests: 1051
Passed: 1051
Total time: 5.5251 Minutes
3>Done Building Project "/Users/martyn/development/dfe/get-into-teaching-api/GetIntoTeachingApiTests/GetIntoTeachingApiTests.csproj" (VSTest target(s)).
1>Done Building Project "/Users/martyn/development/dfe/get-into-teaching-api/GetIntoTeachingApi.sln" (VSTest target(s)).
Build succeeded.
0 Warning(s)
0 Error(s)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh! life, what a journey.
It looks to be case-sensitive