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 #1318, adjust timing on condvar tests #1319

Merged
merged 1 commit into from
Oct 26, 2022

Conversation

jphickey
Copy link
Contributor

Checklist (Please check before submitting)

Describe the contribution
The order of task wakeup when using OS_CondVarSignal() with multiple tasks pending may not be guaranteed. This relaxes the test case so that a specific order is not assumed/required. This also adjust certain sleep times to make sure the test waits long enough for the tasks to do the expected work.

Fixes #1318

Testing performed
Execute the "condvar" test multiple times
Execute github workflows

Expected behavior changes
Should resolve/avoid intermittent failure due to tasks not running in expected order

System(s) tested on
Ubuntu 22.04

Additional context
As this failure was intermittent, this needs to be watched in the future to confirm there is no more failure

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

The order of task wakeup when using OS_CondVarSignal() with multiple
tasks pending may not be guaranteed.  This relaxes the test case so that
a specific order is not assumed/required.  This also adjust certain
sleep times to make sure the test waits long enough for the tasks to do
the expected work.
@jphickey jphickey requested a review from dzbaker October 25, 2022 14:33
dzbaker added a commit to nasa/cFS that referenced this pull request Oct 26, 2022
*Combines:*

cfe v7.0.0-rc4+dev201
osal v6.0.0-rc4+dev147

**Includes:**

*cFS*
- #594
- #559

*cFE*
- nasa/cFE#2184

*osal*
- nasa/osal#1319

Co-authored by: Ariel Adams <arielsadamsnasa@users.noreply.github.com>
Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored by: Haven Carlson <havencarlson@users.noreply.github.com>
@dzbaker dzbaker merged commit 56f9580 into nasa:main Oct 26, 2022
dzbaker added a commit to nasa/cFS that referenced this pull request Oct 26, 2022
*Combines:*

cfe v7.0.0-rc4+dev201
osal v6.0.0-rc4+dev147

**Includes:**

*cFS*
- #594
- #559

*cFE*
- nasa/cFE#2184

*osal*
- nasa/osal#1319

Co-authored by: Ariel Adams <arielsadamsnasa@users.noreply.github.com>
Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Co-authored by: Haven Carlson <havencarlson@users.noreply.github.com>
@jphickey jphickey deleted the fix-1318-condvar-timing branch December 8, 2022 22:07
@dmknutsen dmknutsen added this to the Draco milestone Jan 18, 2023
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.

Intermittent failure in condvar functional test
3 participants