-
Notifications
You must be signed in to change notification settings - Fork 67
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
fix: failed request assertion not found #1340
base: main
Are you sure you want to change the base?
fix: failed request assertion not found #1340
Conversation
- Move probe handling logic from monika.ts to config component - Add probe sanitization during config validation - Add tests for config sanitization - Make failed request assertion ID deterministic
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1340 +/- ##
==========================================
+ Coverage 62.51% 63.33% +0.81%
==========================================
Files 112 110 -2
Lines 3391 3461 +70
Branches 591 592 +1
==========================================
+ Hits 2120 2192 +72
+ Misses 1079 1078 -1
+ Partials 192 191 -1 ☔ View full report in Codecov by Sentry. |
I recently stumbled upon this issue too while working on my PR. I just added the default assertion either way Didn't know which one is the best solution though |
IMO this PR's change, i.e. moving the default assertions to config sanitation step would be more ideal |
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.
this works for me. thanks @syamsudotdev
Monika Pull Request (PR)
What feature/issue does this PR add
This PR resolves #1330
How did you implement / how did you fix it
How to test
npm run start -- --config monika.yml
WARN: 2025-01-05T10:30:46.044Z 1 id:http-1 ERROR: ECONNREFUSED: Attempted to connect to a server, but the server declined the connection. Ensure the server is running and accepting connections., NOTIF: Service probably down