Skip to content

Add more information to error url to enhance error analytics #9188

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

Merged
merged 2 commits into from
Jan 10, 2019

Conversation

SenRamakri
Copy link
Contributor

Description

This change adds more info to the error URL in error-report to enable additional analytics in https://mbed.com/s/error. It adds following info to the error URL:
CPU id (if stats enabled)
Compiler used (if stats enabled)
Compiler version (if stats enabled)
MbedOS version (if stats enabled)
Target name

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[x] Functionality change
[ ] Docs update
[ ] Test update
[ ] Breaking change

Reviewers

@@ -108,11 +108,6 @@
"value": null
},

"error-decode-http-url-str": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed this config as its used only in one place. So I'm just hard-coding for now.

Copy link
Contributor

Choose a reason for hiding this comment

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

That's fine, but because this is a config removal, this change would cause it to be bumped to 5.12.

Will assume that is the intention for now, unless this change is reverted to remain.

Copy link
Contributor

@BlackstoneEngineering BlackstoneEngineering left a comment

Choose a reason for hiding this comment

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

This makes sense to me and looks good. I approve

@@ -201,6 +201,8 @@ def get_symbols(self, for_asm=False):
if MBED_ORG_USER:
self.cxx_symbols.append('MBED_USERNAME=' + MBED_ORG_USER)

# Add target's name
self.cxx_symbols += ["TARGET_NAME=" + self.target.name]
Copy link
Contributor

Choose a reason for hiding this comment

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

Interesting. I thought this information would have already been available elsehwere.

Copy link
Contributor

Choose a reason for hiding this comment

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

@theotherjimmy @bridadan Making sure before I press the button. Is this symbol not already available in the build system?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry a bit late to review this. To my knowledge this symbol wasn't already present. The only that was present were symbols like TARGET_<target name>.

@cmonr
Copy link
Contributor

cmonr commented Jan 4, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 4, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 1
Build artifacts

0xc0170
0xc0170 previously requested changes Jan 4, 2019
@@ -191,7 +191,7 @@ def get_symbols(self, for_asm=False):
labels = self.get_labels()
self.cxx_symbols = ["TARGET_%s" % t for t in labels['TARGET']]
self.cxx_symbols.extend(["TOOLCHAIN_%s" % t for t in labels['TOOLCHAIN']])

Copy link
Contributor

Choose a reason for hiding this comment

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

this empty space should be removed (how come astyle did not catch that)

Copy link
Contributor

Choose a reason for hiding this comment

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

@0xc0170 Congrats on the new test case!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed now.

@SenRamakri SenRamakri force-pushed the sen_ErrorUrlEnhance branch from 7ad9fe9 to 3e6dafa Compare January 4, 2019 15:34
@cmonr cmonr dismissed 0xc0170’s stale review January 4, 2019 15:59

Comment addressed

@cmonr
Copy link
Contributor

cmonr commented Jan 4, 2019

CI started

@mbed-ci
Copy link

mbed-ci commented Jan 7, 2019

Test run: FAILED

Summary: 1 of 7 test jobs failed
Build number : 2
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_build-GCC_ARM

@0xc0170
Copy link
Contributor

0xc0170 commented Jan 7, 2019

CI restarted

@mbed-ci
Copy link

mbed-ci commented Jan 7, 2019

Test run: SUCCESS

Summary: 11 of 11 test jobs passed
Build number : 3
Build artifacts

@0xc0170 0xc0170 requested a review from bulislaw January 8, 2019 09:52
@cmonr cmonr merged commit f8d7c31 into ARMmbed:master Jan 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants