Skip to content

Deprecate config store and related libraries #4388

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 1 commit into from
Jun 1, 2017

Conversation

c1728p9
Copy link
Contributor

@c1728p9 c1728p9 commented May 24, 2017

Deprecate configuration-store, flash-journal and storage-volume-manager for the 5.5 release. Also disable the storage tests.

@c1728p9
Copy link
Contributor Author

c1728p9 commented May 24, 2017

CC @simonqhughes, @bridadan

@c1728p9
Copy link
Contributor Author

c1728p9 commented May 24, 2017

/morph test

@@ -0,0 +1 @@
*
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm actually not 100% sure if this will work, but let's hope so.

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 copied this file from mbed-os\features\unsupported so hopefully it works

@theotherjimmy
Copy link
Contributor

@bridadan We need to run tests to verify that what you hope works actually works right?

@bridadan
Copy link
Contributor

@theotherjimmy yep, the test that's been kicked off should confirm that

@mbed-bot
Copy link

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 335

All builds and test passed!

@bridadan
Copy link
Contributor

bridadan commented May 24, 2017

(it worked) 😄

Copy link
Contributor

@sg- sg- left a comment

Choose a reason for hiding this comment

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

Looks good with some suggestions

@@ -873,6 +875,7 @@ typedef struct _ARM_DRIVER_CFSTORE



MBED_DEPRECATED_SINCE("mbed-os-5.5", "CFSTORE replace by the fat filesystem driver.")
Copy link
Contributor

Choose a reason for hiding this comment

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

From comments I field on developer.mbed.org we get criticized for our vague messages when deprecated is used. In this case, not sure what a filesystem driver is or where to look for one. Can we add some specific actions such as use: class obj

@@ -288,6 +289,8 @@ typedef struct FlashJournal_t {
* }
* \endcode
*/
MBED_DEPRECATED_SINCE("mbed-os-5.5", "FlashJournal is deprecated. "
"Use a BlockDevice or filesystem instead")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is much better.

@@ -88,6 +89,8 @@ class StorageVolumeManager; /* forward declaration */

class StorageVolume {
public:
MBED_DEPRECATED_SINCE("mbed-os-5.5", "StorageVolume is deprecated. "
"Use a BlockDevice for volumes instead")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the new MBR class needed here? @geky

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah MBRBlockDevice is a good replacement. 👍

@@ -161,6 +164,8 @@ class StorageVolume {

class StorageVolumeManager {
public:
MBED_DEPRECATED_SINCE("mbed-os-5.5", "StorageVolumeManager is deprecated. "
"Use a BlockDevice to manage volumes instead")
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the new MBR class needed here? @geky

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah MBRBlockDevice is a good replacement. 👍

@adbridge
Copy link
Contributor

@geky Can we please get the comments updated asap as this will be required for 5.5. Thanks

@sg-
Copy link
Contributor

sg- commented May 31, 2017

Can we also deprecate https://github.com/ARMmbed/mbed-os/tree/master/hal/storage_abstraction as part of this patch?

@c1728p9 c1728p9 force-pushed the deprecate_config_store branch from 15a38ba to 6a3bc47 Compare May 31, 2017 16:31
@c1728p9
Copy link
Contributor Author

c1728p9 commented May 31, 2017

Comments are updated. I also deprecated https://github.com/ARMmbed/mbed-os/tree/master/hal/storage_abstraction, but this causes deprecation warnings even config store isn't used. If this is a problem then comment here and I'll revert the storage_abstraction changes.

@theotherjimmy
Copy link
Contributor

@c1728p9 That seems like a Bad Thing™. Could you find a way to not emit spurious warnings?

Deprecate configuration-store, flash-journal and
storage-volume-manager for the 5.5 release. Also disable the
storage tests.
@c1728p9 c1728p9 force-pushed the deprecate_config_store branch from 6a3bc47 to 58041a2 Compare May 31, 2017 17:08
@c1728p9
Copy link
Contributor Author

c1728p9 commented May 31, 2017

I removed the deprecation macro and replaced it with a comment.

@sg-
Copy link
Contributor

sg- commented Jun 1, 2017

/morph test

@sg- sg- added needs: CI and removed needs: work labels Jun 1, 2017
@mbed-bot
Copy link

mbed-bot commented Jun 1, 2017

Result: FAILURE

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 390

Test failed!

@studavekar
Copy link
Contributor

/morph test

@mbed-bot
Copy link

mbed-bot commented Jun 1, 2017

Result: SUCCESS

Your command has finished executing! Here's what you wrote!

/morph test

Output

mbed Build Number: 392

All builds and test passed!

@0xc0170 0xc0170 merged commit 9355531 into ARMmbed:master Jun 1, 2017
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.

9 participants