Skip to content

Cordio Documentation: Explain how to tests and what tools are available. #7417

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 9 commits into from
Aug 24, 2018

Conversation

pan-
Copy link
Member

@pan- pan- commented Jul 4, 2018

Description

Improve the cordio porting documentation by explaining how tests can be run and describe the tooling available.

Pull request type

[ ] Fix
[ ] Refactor
[ ] New target
[X] Feature
[ ] Breaking change

@pan- pan- requested a review from donatieng July 4, 2018 11:17
@0xc0170 0xc0170 requested a review from a team July 4, 2018 11:25
@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2018

@ARMmbed/mbed-docs As @AnotherButler is OoO this week, can anyone else review this please

@iriark01
Copy link
Contributor

iriark01 commented Jul 4, 2018

@MelindaWeed wanna meet something that isn't Mbed Cloud?

@melwee01
Copy link
Contributor

melwee01 commented Jul 4, 2018

So long as it doesn't bite. Anything I should know before review, or is this standard procedure?

@iriark01
Copy link
Contributor

iriark01 commented Jul 4, 2018

Take no prisoners?

@pan- pan- force-pushed the improve-cordio-hci-doc branch from a02b666 to 7a8cc02 Compare July 4, 2018 11:47
@melwee01
Copy link
Contributor

melwee01 commented Jul 4, 2018

I don't have push access. Could I be granted it temporarily, or should I fork?

@donatieng
Copy link
Contributor

donatieng commented Jul 4, 2018

What do you need push access for @MelindaWeed ? Do you have reviewing rights?

@pan-
Copy link
Member Author

pan- commented Jul 4, 2018

@MelindaWeed I made sure you can push on my fork this pr branch.

@melwee01
Copy link
Contributor

melwee01 commented Jul 4, 2018

Please do not merge until docs gives the thumbs-up. Working on it now.

@donatieng, I'm standing in for Amanda for docs review since she's OoO.

Copy link
Contributor

@melwee01 melwee01 left a comment

Choose a reason for hiding this comment

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

I'd like to take a look at the whole file, if I may.

@@ -489,6 +489,26 @@ ble::vendor::cordio::CordioHCIDriver& ble_cordio_get_hci_driver() {
}
```

### Tests

Greentea tests are bundled with the cordio port of BLE API to ensure that the transport driver works as expected as well as validate the cordio stack initialization. You can run them with the following command:
Copy link
Contributor

Choose a reason for hiding this comment

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

Greentea tests are bundled with the Cordio port of the BLE API to make sure the transport driver works as expected, as well as to validate Cordio stack initialization. You can run them with the following command:

We don't typically use language that implies things might not work (as per the style guide). I'm not crazy about "works as expected."

Copy link
Contributor

Choose a reason for hiding this comment

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

Also, if the bundling is something Arm does, Arm should be the active subject of the sentence. Or "we."

Copy link
Contributor

Choose a reason for hiding this comment

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

Cordio capitalized throughout.

mbed test -t <toolchain> -m <target> -n mbed-os-features-feature_ble-targets-target_cordio-tests-cordio_hci-driver,mbed-os-features-feature_ble-targets-target_cordio-tests-cordio_hci-transport
```

* mbed-os-features-feature_ble-targets-target_cordio-tests-cordio_hci-transport: Ensure that the transport is able to send an HCI reset command and receive the corresponding HCI status event.
Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than ensure, I'd suggest check. Or make sure.

Copy link
Contributor

Choose a reason for hiding this comment

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

Rather than is able to, can. Reduces wordiness.

Copy link
Contributor

Choose a reason for hiding this comment

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

Query: Why don't you like "ensure"? I usually prefer it to "make sure" because it's shorter.


The application [mbed-os-cordio-hci-passthrough](https://github.com/ARMmbed/mbed-os-cordio-hci-passthrough) can be used to _proxify_ a Bluetooth controller connected to an mbed board.

Bytes sent by the host over the board serial are forwarded to the controller with the help of the `HCITransportDriver` while bytes sent by the controller are sent back to the host through the board serial.
Copy link
Contributor

Choose a reason for hiding this comment

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

Subject-verb disagreement in Runs the whole initialization process then ensure the cordio stack has been properly initialized by the HCI driver.

Is this a statement about what the driver does, or a command that the user must follow?

Passive -> active. Every sentence here could be streamlined by changing from passive to active.

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2018

Please do not merge until docs gives the thumbs-up. Working on it now.

We always do 👍

@melwee01
Copy link
Contributor

melwee01 commented Jul 4, 2018

I was about to thumbs-up your thumbs-up, but was afraid that might be misinterpreted. :)

@melwee01
Copy link
Contributor

melwee01 commented Jul 4, 2018

So I'll need to do some pretty heavy restructuring/rewording to the rest of the file so it's compliant with our stylistic guidelines. What's the timeframe on this?

@cmonr
Copy link
Contributor

cmonr commented Jul 5, 2018

@pan- Ping. ^^^

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 25, 2018

@MelindaWeed Please update this pull request. Is it ready or still to be done?

@melwee01
Copy link
Contributor

Partially done. Update has jumped to the top of my list this sprint, sorry.

@cmonr
Copy link
Contributor

cmonr commented Aug 9, 2018

@MelindaWeed Your timeframe question was never answered.
The sooner the better, but by the end of the month/by the 5.10 code freeze would be prefereable.

@melwee01
Copy link
Contributor

@pan- How do you feel about the signature line now?

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 20, 2018

@pan- Please review (add those tags back in) and we should be good to go ?

@pan-
Copy link
Member Author

pan- commented Aug 23, 2018

@0xc0170 That's my PR so I github forbid me to approve it. I do approve @MelindaWeed changes.

@0xc0170
Copy link
Contributor

0xc0170 commented Aug 23, 2018

/morph build

@mbed-ci
Copy link

mbed-ci commented Aug 23, 2018

Build : SUCCESS

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

Triggering tests

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

@cmonr
Copy link
Contributor

cmonr commented Aug 23, 2018

Pausing Test CI until 5.9.6 PR is merged.
Will restart CI shortly after.

@mbed-ci
Copy link

mbed-ci commented Aug 23, 2018

@cmonr
Copy link
Contributor

cmonr commented Aug 24, 2018

@MelindaWeed For reference, since I didn't see anyone clarify what happened with your picture.

You tried to directly push changes to an Mbed OS branch, in which most people don't have access to do (by design, and to the irritation of some).

You then pushed your changes to @pan-'s branch, which you did have access to, and because that branch has an active PR (this PR), your changes magically appeared!

@cmonr
Copy link
Contributor

cmonr commented Aug 24, 2018

/morph test

@melwee01
Copy link
Contributor

Ahhhh, got it. Thanks! Still learning the ins and outs of git, and it finds constant ways to be surprising/frustrating.

@cmonr
Copy link
Contributor

cmonr commented Aug 24, 2018

Still learning the ins and outs of git, and it finds constant ways to be surprising/frustrating.

Don't worry. I don't think that ever goes away.

@mbed-ci
Copy link

mbed-ci commented Aug 24, 2018

@0xc0170 0xc0170 merged commit 70814d6 into ARMmbed:master Aug 24, 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.

10 participants