-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Cleanup the DualStatsManager and fix any leftover Stats calls #62705
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
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
5829c24
rename extra_tags to legacy_name_tags
xBis7 499ca53
use the dual stats manager with leftover stats + cleanup
xBis7 445333f
fix failing test_jobs
xBis7 55db426
fix backwards compat issues with test_jobs
xBis7 9d00dc5
fix test_edge_executor
xBis7 ac037b1
replace try-except import pattern with AIRFLOW_V_3_2_PLUS checks
xBis7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
My initial assumption here was that the tags would be the other way around -- why don't we want bundle name and filepath included in the modern tags?
Uh oh!
There was an error while loading. Please reload this page.
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.
They are.
It goes like this
legacy_name_tagsand cross-reference them with the variables in the YAML filelegacy_name_tagsas variables in the legacy nametagsparamtagsand thelegacy_name_tagsThat was actually a bug because, by just setting the tags, there weren't any available variables for the legacy name.
I've added comments in the code to explain the above.
The
legacy_name_tagsare going to end up as regular tags for the modern name. And thetagsare just for whatever tag is set on both 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.
Oh. That's slightly confusing. The behabiour makes sense, but, just from the callsite (of which there are going to be lots) it's a bit confusing that legacy_name_tags gets applied to non-legacy 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.
I know. The behavior is consistent with before but the
DualStatsManagerlogic is confusing. I renamed theextra_tagsparam tolegacy_name_tagsto make it more intuitive and added comments but it's still not that clear.Do you have any suggestions?
Before the DualStatsManager
The thing is that I'm trying to cover an edge case where the legacy and the modern metric had some extra tags, apart from the name variables.
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.
@ashb Can you make a final review? Then I think it would be great to merge.