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

Mbedtls fixes for 5.15.2 #12723

Merged
merged 8 commits into from
Apr 8, 2020
Merged

Conversation

AnttiKauppila
Copy link

Summary of changes

This is a preparation PR for upcoming MbedTLS optimisation changes.
In the commits there are mostly flagged out code and this must not break anything.

Impact of changes

Migration actions required

Documentation

None, optimisations will be documented in MbedTLS optimisation release


Pull request type

[X] Patch update (Bug fix / Target update / Docs update / Test update / Refactor)
[] Feature update (New feature / Functionality change / New API)
[] Major update (Breaking change E.g. Return code change / API behaviour change)

Test results

[] No Tests required for this change (E.g docs only update)
[X] Covered by existing mbed-os tests (Greentea or Unittest)
[] Tests / results supplied as part of this PR

Reviewers

@sbutcher-arm @jarvte @kivaisan


@AnttiKauppila
Copy link
Author

Same content as in #12479

@ciarmcom
Copy link
Member

@AnttiKauppila, thank you for your changes.
@sbutcher-arm @jarvte @kivaisan @ARMmbed/mbed-os-maintainers please review.

Copy link
Contributor

@adbridge adbridge left a comment

Choose a reason for hiding this comment

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

This has the same issues as the original PR on master. If there can be only 2 possible conditional code paths then we should be using

#if
#else
#endif

Rather than

#if
#elif
#endif

@AnttiKauppila AnttiKauppila reopened this Mar 31, 2020
@mergify mergify bot added the needs: work label Mar 31, 2020
@mergify mergify bot dismissed adbridge’s stale review March 31, 2020 13:06

Pull request has been modified.

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 3, 2020

Github states This branch is out-of-date with the base branch , so just rebase on top of 5.15 branch

I hope we get CI config fixed today to restart tests

@adbridge
Copy link
Contributor

adbridge commented Apr 3, 2020

@adbridge against 5.15.0 or 5.15.1?
This is currently up to date with mbed-os-5.15

Hi @AnttiKauppila there is only one branch :) mbed-os-5.15 that is what PRs are raised against , not specific releases.

@JanneKiiskila
Copy link
Contributor

Failures in CI, seem unrelated;

[1585843308.57][CONN][RXD] >>> Running case #15: 'WIFI-CONNECT'...
[1585843308.57][CONN][INF] found KV pair in stream: {{__testcase_start;WIFI-CONNECT}}, queued...
[1585843360.72][CONN][RXD] :37::FAIL: Expected 0 Was -3017
[1585843360.72][CONN][RXD] :38::FAIL: Expected 0 Was -3004
[1585843360.72][CONN][RXD] :40::FAIL: Expected 0 Was -3014
[1585843412.87][CONN][RXD] :41::FAIL: Expected 0 Was -3017
[1585843412.87][CONN][RXD] :42::FAIL: Expected 0 Was -3004
[1585843464.91][CONN][RXD] :47::FAIL: Expected 0 Was -3017
[1585843464.91][CONN][RXD] :48::FAIL: Expected 0 Was -3004
[1585843465.02][CONN][INF] found KV pair in stream: {{__testcase_finish;WIFI-CONNECT;0;7}}, queued...
[1585843465.12][CONN][RXD] >>> 'WIFI-CONNECT': 0 passed, 7 failed with reason 'Test Cases Failed'

And we are failing the examples, seems to me BLE is deprecated but we still do try it?

[2020-04-02T16:31:53.573Z] Switched to a new branch 'mbed-os-5.15'
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_BatteryLevel/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_Beacon/shields/TARGET_ST_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_Button/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_GAP/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_GAPButton/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_GattClient/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_GattServer/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_HeartRate/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_LED/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_LEDBlinker/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_Privacy/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_SM/shields/TARGET_CORDIO_BLUENRG.lib
[2020-04-02T16:31:53.573Z] D	deprecated/BLE_Thermometer/shields/TARGET_CORDIO_BLUENRG.lib

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 3, 2020

There was a misconfig in CI :( A fix landed recently, will restart

@mbed-ci
Copy link

mbed-ci commented Apr 6, 2020

Test run: FAILED

Summary: 1 of 10 test jobs failed
Build number : 4
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_greentea-test-lts

@AnttiKauppila
Copy link
Author

@ARMmbed/mbed-os-maintainers Could you retrigger the tests?

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 6, 2020

@ARMmbed/mbed-os-maintainers Could you retrigger the tests?

We were waiting for the fixes, will do now (but might still fail, need to wait for couple of jobs to complete to prove its all fine)

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 6, 2020

CI restarted

@mbed-ci
Copy link

mbed-ci commented Apr 7, 2020

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 5
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_greentea-test-lts

@JanneKiiskila
Copy link
Contributor

Jenkins says; "Nice one! All 7645 tests for this pipeline are passing.".
However, GitHub seems to disagree?
@jamesbeyond @0xc0170

@AnttiKauppila
Copy link
Author

@JanneKiiskila Check the Pipeline K66F + ESP8266 combo fails

@AnttiKauppila
Copy link
Author

Fatal error: ... mbed-os-greentea_K66F-ESP8266_ARM.tar.gz" does not exist

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 7, 2020

I'll restarted the test (we already have CI passing in other jobs, the config should be correct now)

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 7, 2020

Restarting entire pipeline (looks like devices are not as in later jobs)

@mbed-ci
Copy link

mbed-ci commented Apr 7, 2020

Test run: FAILED

Summary: 1 of 11 test jobs failed
Build number : 6
Build artifacts

Failed test jobs:

  • jenkins-ci/mbed-os-ci_greentea-test-lts

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 7, 2020

@AnttiKauppila @ARMmbed/mbed-os-test Failed with dns failure for one target, how can we fix this one (not related to this PR). Is this network related issue, code (target/test) is fine on 5.15 branch?

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 7, 2020

We got internal ticket for tracking this, ONME-4498

@0xc0170
Copy link
Contributor

0xc0170 commented Apr 8, 2020

The latest restart overnight worked, ready to go in

@0xc0170 0xc0170 merged commit 9929ddd into ARMmbed:mbed-os-5.15 Apr 8, 2020
@mergify mergify bot removed the ready for merge label Apr 8, 2020
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.

None yet

9 participants