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

Fix nightly build failure #39

Merged
merged 8 commits into from
Feb 5, 2024
Merged

Conversation

urutva
Copy link
Contributor

@urutva urutva commented Jan 31, 2024

Description

Fix nightly build failure

Test Steps

The changes validated in the CI as well as in nightly jobs. No regression found.

Checklist:

  • I have tested my changes. No regression in existing tests.
  • I have modified and/or added unit-tests to cover the code changes in this Pull Request.

Related Issue

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@urutva urutva requested a review from a team as a code owner January 31, 2024 13:18
@urutva urutva force-pushed the fix-nightly-build-failure branch from 7b563b1 to aee3c52 Compare February 1, 2024 14:25
urutva and others added 8 commits February 5, 2024 12:10
Provide the device private key and certificate to the build script as
parameters. In addition, provide timeout value to integration test
script as parameter.

Signed-off-by: Devaraj Ranganna <[email protected]>
* Change `ECHO_SERVER_ENDPOINT` from `localhost` to `127.0.0.1` as DNS
resolution of `localhost` fails with FreeRTOS-TCP/IP. Therefore
hardcode the numerical value.
* Increase the transport interface test timeout to its maximum value by
overriding the `TRANSPORT_TEST_WAIT_THREAD_TIMEOUT_MS` macro with value
`0xFFFFFFFF`. This is required to ensure the nightly test in the
internal CI passes.
* Increase MQTT process loop timeout, so that the expected packet from
the AWS IoT service is received successfully.

Signed-off-by: Devaraj Ranganna <[email protected]>
The integration tests validates both secure and unsecure connections
over TCP. However, unsecure TCP connection support was missing from
FreeRTOS TCP/IP integration layer.

Signed-off-by: Devaraj Ranganna <[email protected]>
Use FreeRTOS memory management APIs instead of using C library ones, as
FRI is configured to use FreeRTOS memory management.

Signed-off-by: Devaraj Ranganna <[email protected]>
With a lower timeout value (750), socket connection sporadically fails.

Signed-off-by: Devaraj Ranganna <[email protected]>
The `TRANSPORT_TEST_BUFFER_WRITABLE_LENGTH` is set to `2048`. Reduce it
to `1350`, so that the test data can be sent in a single ethernet
packet.

Without this change, it takes a very long time to complete transport
tests and most of the times test fails.

Signed-off-by: Devaraj Ranganna <[email protected]>
In order for one of the patches to be be cleanly applied, git config
option `core.autocrlf` must be set to value `input`.

The file `src/transport_interface/transport_interface_test.c` has `CRLF`
line ending and patching it fails if `core.autocrlf` is not set to
`input`.

Signed-off-by: Devaraj Ranganna <[email protected]>
Fix firmware update cancellation and cleanup check
by ensuring the result variable is initialized to
the success value. The result variable was only set
in case of failure if the cancellation and/or the
cleanup failed.

Signed-off-by: Ahmed Ismail <[email protected]>
@urutva urutva force-pushed the fix-nightly-build-failure branch from aee3c52 to 8806a74 Compare February 5, 2024 14:02
@urutva urutva merged commit 53dab5d into FreeRTOS:main Feb 5, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants