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

Integration Candidate: 2020-06-24 #529

Merged
merged 17 commits into from
Jul 26, 2020
Merged

Integration Candidate: 2020-06-24 #529

merged 17 commits into from
Jul 26, 2020

Conversation

astrogeco
Copy link
Contributor

@astrogeco astrogeco commented Jul 1, 2020

Describe the contribution
Fix #196
Fix #522
Fix #525
Fix #526
Fix #534
Fix #538
Fix #547
Resolve #531

Testing performed
Bundle CI - https://github.com/nasa/cFS/pull/108/checks

Expected behavior changes

PR #490 - Changed timer-test to be able to use OS_MAX_TIMERS value on top of the hard-coded NUMBER_OF_TIMERS value. This will allow the test to be functional even if the OS_MAX_TIMERS value is reconfigured.

PR #523 - OS_SocketOpen() sets sock_id and returns a status when successful.

PR #527 - Ensures that

  • All stub routines register their arguments in the context, so that the values will be available to hook functions.
  • The argument names used in stubs match the name in the prototype/documentation so the value can be retrieved by name.

PR #528 - Adds back rounding up to PTHREAD_STACK_MIN and also adds rounding up to a system page size. Keeps check for zero stack at the shared level; attempts to create a task with zero stack will fail. Allows internal helper threads to be created with a default minimum stack size.

PR #535 - Avoids a possible truncation in snprintf call. No buffer size/truncation warning when building with optimization enabled.

PR #536 - Added new macros to osapi-version to report baseline and build number

PR #539 - The coverage binaries are now correctly installed for CPU1 and CPU2 as opposed to installed twice to CPU2 but not at all for CPU1.

PR #548 - Fixes a typo in ut_assert README and clarifies stub documentation.

System(s) tested on
Ubuntu - CI

Additional context
Part of nasa/cFS#108

Third party code
None

Contributor Info - All information REQUIRED for consideration of pull request
Christopher D. Knight, NASA-ARC
Yasir Khan, Emergent Space Technologies, Inc
Joseph Hickey, Vantage Systems, Inc.
Gerardo E. Cruz-Ortiz, NASA-GSFC

CDKnightNASA and others added 5 commits June 23, 2020 07:55
Ensure that:

1. All stub routines register their arguments in the context, so that
   the values will be available to hook functions.
2. Ensure that the argument names used in stubs match the name in the
   prototype/documentation so the value can be retrieved by name.
The pthread_attr_setstacksize() function stipulates that it
may fail if the user-supplied stack size is not at least
PTHREAD_STACK_MIN and also possibly a multiple of page size.

This partially reverts previous PR #508 and adds back rounding
up to PTHREAD_STACK_MIN and also adds rounding up to a system
page size.  However the check for zero stack still remains
at the shared level so attempts to create a task with zero
stack will still fail.  This allows internal helper threads
to be created with a default minimum stack size, however.
* Fix #196, Fix timer-test to be able to use OS_MAX_TIMERS value

* Fix #196, removed redefinition of a variables as requested
Fix #522 - SocketOpen stub should set sock_id
@astrogeco astrogeco marked this pull request as ready for review July 6, 2020 14:06
jphickey and others added 10 commits July 8, 2020 08:40
Avoids a possible truncation in snprintf call.
Should use the loop variable (TGT) not TGTNAME.
Fix #538, correct loop variable for coverage install
Add build number and baseline macros
Add codename to version string
Add macro for version strings
@astrogeco astrogeco merged commit 8cfd6fe into master Jul 26, 2020
@skliper skliper added this to the 5.1.0 milestone Aug 21, 2020
jphickey pushed a commit to jphickey/osal that referenced this pull request Aug 10, 2022
Implements message header module such that users
can customize or extend as needed.
 - Separates code for easier selection
 - Implements consistent getter/setter APIs
 - Fix nasa#736/nasa#781: MsgId logic no longer overrides bits in init
 - Fix nasa#529: Get size supports max size
 - Adds single big endian time implementation, but not selected
 - Adds msg module to module list
 - Adds msg module to cppcheck
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment