-
Notifications
You must be signed in to change notification settings - Fork 586
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
if head of the [0- debounce] checks is all faild, debounce args lose efficacy #585
Open
dengshaochun
wants to merge
11
commits into
arachnys:master
Choose a base branch
from
dengshaochun:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fix issue where Jenkins variables were required on first launch
…and mark result faild
Codecov Report
@@ Coverage Diff @@
## master #585 +/- ##
==========================================
+ Coverage 80.89% 80.95% +0.06%
==========================================
Files 46 45 -1
Lines 2952 2920 -32
Branches 179 178 -1
==========================================
- Hits 2388 2364 -24
+ Misses 505 497 -8
Partials 59 59
Continue to review full report at Codecov.
|
One too many breakline.
There are vulnerabilities for the intermediate versions. Changelog: https://docs.djangoproject.com/en/2.0/releases/#id1
Bump Django to 1.11.11
We want to override `calculate_debounced_passing` for the JenkinsCheck.
Add unit tests covering - when there is no build of the job at all - when there is no good build (ie, only failing builds)
Debounce is “the number of successive failures permitted before check will be marked as failed”. It is very useful to avoid alerts on expected hiccups. For checks whose retry logic lies in Cabot using `frequency` (which is the case for Graphite, HTTP, and ICMP checks), it makes sense that the debounce is about how often Cabot retried things. For JenkinsChecks, however, we have no control over how often Cabot checks the job. This means that even a debounce of eg 5 can trigger an alert over 1 job failure. A simpler implementation of this was to loop over the recent results, count how many distinct jobs have failed, (using the job number stored in the `status_check_result`), and set the status to fail if this is higher than the debounce. However, Cabot only considers the last 10 results (hardcoded value). Since Cabot checks the job at fairly high frequency (or at least a frequency higher than the Jenkins run frequency), this can mean the status would switch to pass after 10 checks of a single check failure. We thus need to enrich the StatusCheckResult data model to store that information. - Add field `consecutive_failures` to StatusCheckResult model (and associated migration). - Retrieve from Jenkins the last good build, and compute from that the number of consecutive failures - Also display the consecutive failures in the Check results page Closes arachnys#537
frankh
force-pushed
the
master
branch
2 times, most recently
from
March 21, 2018 11:22
eaa8c3b
to
20fada0
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
when i set up a new check, and set debounce = 5 , if the first check is faild , there will be alarms。
looks like: