Skip to content
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

Add the ability to capture all known scope options in run tracker. #10778

Merged
merged 2 commits into from Sep 15, 2020

Conversation

asherf
Copy link
Member

@asherf asherf commented Sep 14, 2020

Problem

There is no way to tell RunTracker to capture options in all known scopes.

Solution

Allow adding a "*" element to the list of scope thus telling run tracker to capture options from all known scopes.

Result

All options can be available to code consuming data from run tracker.

@coveralls
Copy link

coveralls commented Sep 14, 2020

Coverage Status

Coverage remained the same at 0.0% when pulling d0d3eb3 on asherf:runtracker into 895b914 on pantsbuild:master.

@@ -134,7 +134,7 @@ def register_options(cls, register):
help="Option scopes to record in stats on run completion. "
"Options may be selected by joining the scope and the option with a ^ character, "
"i.e. to get option `pantsd` in the GLOBAL scope, you'd pass "
"`GLOBAL^pantsd`",
"`GLOBAL^pantsd`, add a '*' to the list to capture all known scopes",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I'd make this a separate sentence. "GLOBAL^pantsd. Add a '*' to the list to capture all known scopes",

@Eric-Arellano Eric-Arellano merged commit f5ae8ae into pantsbuild:master Sep 15, 2020
@asherf asherf deleted the runtracker branch September 15, 2020 14:14
Eric-Arellano pushed a commit that referenced this pull request Sep 24, 2020
the global scope "key" is an empty string, so fix that in the recorded options dict
Follow up for: #10778

<img width="703" alt="Screen Shot 2020-09-17 at 1 15 24 PM" src="https://user-images.githubusercontent.com/1268088/93523412-da310180-f8e7-11ea-8f93-f4540ecf4c30.png">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants