Skip to content

Add required header file and namespace element instead add all #8008

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 5 commits into from
Oct 17, 2018

Conversation

deepikabhavnani
Copy link

Description

Source inside mbed-os should not be using "mbed.h" even in CPP files, instead required header file and namespace should be explicitly added inside mbed-os

With #7760 PR, we will give an option to remove namespace.

Pull request type

[X] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Breaking change

@cmonr cmonr requested review from kjbracey and a team September 6, 2018 00:19
@cmonr
Copy link
Contributor

cmonr commented Oct 8, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 8, 2018

Build : FAILURE

Build number : 3281
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8008/

@deepikabhavnani
Copy link
Author

@cmonr - Fixed the build issue.

@cmonr
Copy link
Contributor

cmonr commented Oct 8, 2018

@deepikabhavnani Could you take a look at the Travis failures?

@cmonr
Copy link
Contributor

cmonr commented Oct 11, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 11, 2018

Build : FAILURE

Build number : 3325
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8008/

@0xc0170
Copy link
Contributor

0xc0170 commented Oct 11, 2018

Please, review the build failures

@cmonr
Copy link
Contributor

cmonr commented Oct 12, 2018

@deepikabhavnani This needs to wait until #7760 comes in, correct?

@deepikabhavnani
Copy link
Author

deepikabhavnani commented Oct 12, 2018

This needs to wait until #7760 comes in, correct?

No the reverse, #7760 depends on this and few others. All the cleanup PR's have same purpose to remove "mbed.h" and "using namespace" from header files and are independent of each other.
Only 7760 depends on them, and it should be in minor release.

Query: Why is this marked for minor release and not patch. This PR is just cleanup and wont have any breaking changes.

@cmonr
Copy link
Contributor

cmonr commented Oct 12, 2018

Anna did a scrub last night of PRs that are high priority to get in. The first pass was adding a release label so that they had our attention. the second pass evaluated if they can be brought into a patch.

Hence the questions earlier today :)

Deepika added 4 commits October 15, 2018 10:57
1. RTOS is needed only for Stack stats

Move+Add all required header files for RTOS into MBED_STACK_STATS_ENABLED
define. Also added 'using namespace'

2.  Add heap stats only when MBED_HEAP_STATS_ENABLED
@deepikabhavnani deepikabhavnani force-pushed the cleanup_features branch 2 times, most recently from 2a3a9c8 to 935dfb9 Compare October 15, 2018 16:44
@deepikabhavnani
Copy link
Author

Rebased and resolved some of the test build issues

@cmonr
Copy link
Contributor

cmonr commented Oct 15, 2018

Starting CI to test against large matrix of devices.

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 15, 2018

Build : FAILURE

Build number : 3356
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8008/

@deepikabhavnani
Copy link
Author

deepikabhavnani commented Oct 15, 2018

Fixed last build issue, missed -DMBED_HEAP_STATS_ENABLED=1 -DMBED_STACK_STATS_ENABLED=1 -DMBED_TRAP_ERRORS_ENABLED=1 -DMBED_ALL_STATS_ENABLED in local build.

@cmonr - Can we try build once more to test against large matrix of devices

@cmonr
Copy link
Contributor

cmonr commented Oct 15, 2018

@deepikabhavnani This one will take longer as other PRs are now in CI.

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 15, 2018

Build : FAILURE

Build number : 3363
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8008/

mbed.h was added in test, via greentea and utest header files. 'mbed.h' is removed
from header files and required header file and namespace is added to CPP/C files
@deepikabhavnani
Copy link
Author

Resolved few more, can we re-tigger build CI to make sure new changes are not breaking old ones

@cmonr
Copy link
Contributor

cmonr commented Oct 16, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Oct 16, 2018

Build : SUCCESS

Build number : 3373
Build artifacts/logs : http://mbed-os.s3-website-eu-west-1.amazonaws.com/?prefix=builds/8008/

Triggering tests

/morph test
/morph export-build
/morph mbed2-build

@mbed-ci
Copy link

mbed-ci commented Oct 16, 2018

@mbed-ci
Copy link

mbed-ci commented Oct 17, 2018

@cmonr cmonr merged commit d30ae07 into ARMmbed:master Oct 17, 2018
@cmonr cmonr removed the needs: CI label Oct 17, 2018
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.

7 participants