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

chore: Global Metric Tracking #3535

Closed
wants to merge 6 commits into from
Closed

chore: Global Metric Tracking #3535

wants to merge 6 commits into from

Conversation

fjnoyp
Copy link
Contributor

@fjnoyp fjnoyp commented Aug 9, 2023

Issue #, if available:

Description of changes:

Track the fields of global metrics that we discussed.

Add code to track the failing step. Identifying the failing job was a bit tricky, so we send all the matrix values comma delimited to parse the jobs json response from github to get the job id for getting the failing step in another step.

Please Note
I am unable to test on this repo because the github secrets needs to be updated with a Github Token for making the requests to Github API for which step has failed on the job.

Thus this PR cannot be pushed as is. Furthermore you'll see that the repo URL in the requests are pointing to my github repo (fnoyp/amplify-flutter) instead of (aws-amplifiy/amplify-flutter).

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@fjnoyp fjnoyp requested a review from a team as a code owner August 9, 2023 16:03
@fjnoyp fjnoyp marked this pull request as draft August 9, 2023 16:03
tool/send_metric_data.dart Outdated Show resolved Hide resolved
@fjnoyp fjnoyp changed the title First attempt rewrite global metrics tracking. chore: Global Metric Tracking Aug 11, 2023
@fjnoyp
Copy link
Contributor Author

fjnoyp commented Aug 11, 2023

The tests will fail because it requires secrets such as AWS Region and Github Token to be set.

We have an internal AppSec Consultation open to validate the creation of the Github Token.

In the meantime, it would be good to get team reviews for this work.

@fjnoyp fjnoyp requested a review from dnys1 August 16, 2023 14:09
@fjnoyp fjnoyp marked this pull request as ready for review August 16, 2023 14:10
@fjnoyp fjnoyp closed this Sep 26, 2023
@fjnoyp fjnoyp deleted the feat/globalMetrics branch October 20, 2023 19:06
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