Skip to content

Pr metrics improvements#102

Open
daverodgman wants to merge 8 commits into
Mbed-TLS:dev/mpg/pr-metricsfrom
daverodgman:pr-metrics-dr
Open

Pr metrics improvements#102
daverodgman wants to merge 8 commits into
Mbed-TLS:dev/mpg/pr-metricsfrom
daverodgman:pr-metrics-dr

Conversation

@daverodgman

Copy link
Copy Markdown
Contributor

Adding some fixes/updates to the pr-metrics scripts

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
@daverodgman daverodgman requested a review from mpg April 6, 2023 12:49
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
@daverodgman daverodgman changed the title Pr metrics dr Pr metrics improvements Apr 6, 2023
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
Comment thread pr-metrics/get-pr-data.py
Comment thread pr-metrics/get-pr-data.py
p.update()

with open("pr-data.p", "wb") as f:
pickle.dump(prs, f)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I put this comment here as it does not let me put it in unchanged lines of code:
Nit: Maybe we can change r = g.get_repo("ARMMbed/mbedtls") from line 18 to r = g.get_repo("Mbed-TLS/mbedtls") ?

Comment thread pr-metrics/get-pr-data.py Outdated
Comment thread pr-metrics/prs.py Outdated
Comment thread pr-metrics/prs.py
@@ -86,7 +91,7 @@ def is_community(pr):
def quarter(date):
"""Return a string decribing this date's quarter, for example 19q3."""

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this comment should be changed now?

git_worktree_path, "visualc", "VS2010"
)
solution_dir = glob.glob(os.path.join(
git_worktree_path, "visualc", "VS*"))[0]

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just in case: we are not expecting it to have more than one VS* folder, right? Otherwise this would bring a problem I think

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
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.

2 participants