-
Notifications
You must be signed in to change notification settings - Fork 206
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
CFE_Assert should use SendEvent #1266
Comments
Also worth noting that the syslog is usually of limited size, so if the test cycle has lots of tests, it is easy for the log to overflow and early messages will get completely lost. I've evaluated this idea and it is not totally trivial because the events have to be sent by the cfe_testrunner app, not cfe_assert itself (because libraries cannot use event services directly) but that shouldn't be too hard to overcome, a simple notifier callback paradigm should get the job done. |
Could "cheat" in this non-flight code context and just use a single ID, either passed in (maybe w/ macro) or initialized. |
I don't see any need to cheat, its easy enough to let cfe_assert call back into test runner. The other issue to consider is startup order - cfe_assert allows conditions to be asserted during startup phase, and these might occur before event services is even ready to send events. These will always have to go to syslog. Using a callback also solves the problem by allowing these early asserts to go to syslog but then switching to the events for the bulk/normal tests. Could also send early failures as events in a deferred fashion. Lots of options. |
I'll submit something as a proof of concept here |
Reports test failures as CFE events, which allows for more processing capability, and allows failures to be recieved externally (e.g. ground system).
Reports test failures as CFE events, which allows for more processing capability, and allows failures to be recieved externally (e.g. ground system).
Reports test failures as CFE events, which allows for more processing capability, and allows failures to be recieved externally (e.g. ground system).
Fix #1266, use events for CFE test asserts
Is your feature request related to a problem? Please describe.
CFE_Assert currently has all it's outputs done through CFE_ES_WriteToSysLog which makes them hard to read and failures can get lost in all the noise.
Describe the solution you'd like
CFE_Assert could instead send events through the test runner, which would give a lot more flexibility to the output.
Describe alternatives you've considered
We just leave it as it is.
Additional context
#94 could then be a further enhancement of this done at a later time.
Requester Info
Alex Campbell GSFC
The text was updated successfully, but these errors were encountered: