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
chore(internal): fix CI Visibility usage of the core API #9162
Conversation
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.
Oh yeah, it's not clear at all to me why this isn't causing test_is_item_itr_skippable_test_level
to fail in current main. This change does look more correct, though.
BenchmarksBenchmark execution time: 2024-05-15 08:23:13 Comparing candidate commit 197c676 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 209 metrics, 9 unstable metrics. |
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.
These (the settings request) aren't in use yet so they're not tested (and, clearly, not working either).
edit: the external API is_item_itr_skippable()
static method (that ends up calling core.dispatch_with_results("ci_visibility.itr.is_item_skippable")
itself) is also not tested yet.
test_is_item_itr_skippable_test_level
is directly testing the CIVisibility.is_item_itr_skippable()
function directly (which is why it's in test_ci_visibility.py
), so any changes in this PR wouldn't affect its results.
I'll take over the PR.
Renaming this to a |
Fixes some small inconsistencies with the core api usage in CI Visibility.
dispatch_with_results
when no value is expected to be returned (small performance optimization to avoid building a results dictionary when it isn't needed).dispatch_with_results
which would not return the underlying listener valuea. (I think it would always return a falsey value since it should have been returning the
core._MissingEvent
EventResult
which is falsey and which has a value ofNone
... ?)I am not sure which tests should be evaluated/updated, since I am surprised there weren't any failing tests before, there should have been.
Checklist
changelog/no-changelog
is set@DataDog/apm-tees
.Reviewer Checklist