Repository navigation
📏 Publish the root-cause accuracy scorecard automatically - #629
Merged
Merged
Conversation
This file contains hidden or 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
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.
Generates
accuracy.jsonandsample-alerts.jsonfrom the scenario harness and attaches them to each stable release, so the website and docs can fetch them at build time.TestPublishArtifacts(internal/scenarios/publish_test.go): setKWATCH_PUBLISH_DIRto write both files; skipped otherwise. Metadata comes fromKWATCH_VERSION,KWATCH_COMMIT,KWATCH_GENERATED_AT(no clock reads).scorecard.ScoreCasesover the labelled cases (first incident rooted at the expected entity, or no cause when the label expects unknown). Method ininternal/scenarios/PUBLISHING.mdand in the JSONmethodfield. Categories group cases by expected root kind. Held-out set reported separately.oom-limit-too-low, rendered by the real composer as Community and as Pro (plain text + fields)..github/workflows/accuracy.yml: new workflow, on release published (stable only, pre-releases skipped) and manual dispatch with a tag; uploads both files withgh release upload --clobber. release.yml is not touched.Current figure (labelled): 99.4% (834 of 839 cases, 889 scenarios); held-out 100% (16 of 16); 0 wrong high-confidence.
Consumer URLs:
Not run locally: full
make verify(the race run of the scenarios package exceeded the 10 minute test timeout on this 3-CPU machine); the new tests, vet and the generator ran. CI must verify the full gate. The workflow only runs once a stable release is published (releases created with the default token do not trigger it; dispatch with the tag works).