Skip to content

Fix #2781, guard server-only TIME message ID - #2790

Open
sylvesterkaczmarek wants to merge 1 commit into
nasa:devfrom
sylvesterkaczmarek:fix-2781-time-client-build
Open

sylvesterkaczmarek wants to merge 1 commit into
nasa:devfrom
sylvesterkaczmarek:fix-2781-time-client-build

Conversation

@sylvesterkaczmarek

@sylvesterkaczmarek sylvesterkaczmarek commented Aug 12, 2026 •

Copy link
Copy Markdown

Checklist (Please check before submitting)

Describe the contribution

Fix #2781.

Guard the SEND_CMD_MID declaration and initialization in CFE_TIME_TaskPipe() with CFE_PLATFORM_TIME_CFG_SERVER.

SEND_CMD_MID is only used by the server-only CFE_TIME_ToneSendCmd() dispatch path. In a TIME client configuration, the previous unconditional declaration and initialization left a server-only static variable unused, which causes strict client builds to fail.

Testing performed

  1. Verified the change is limited to the server-only message ID declaration and initialization in modules/time/fsw/src/cfe_time_dispatch.c.
  2. Verified the existing server-only use remains under the same CFE_PLATFORM_TIME_CFG_SERVER == true condition.
  3. Upstream GitHub Actions are currently awaiting authorization for this fork PR, so no CI result is being claimed yet.

Expected behavior changes

  • API Change: none.
  • Behavior Change: TIME client builds no longer compile the unused server-only SEND_CMD_MID variable.
  • TIME server dispatch behavior is unchanged.

System(s) tested on

  • The issue was reported on RHEL 9.x, x86_64, using the native_std build.
  • This PR is awaiting NASA GitHub Actions authorization for repository CI validation.

Additional context

The patch intentionally keeps the declaration, initialization, and use of SEND_CMD_MID under the same server-only compile-time condition.

Third party code

None.

Contributor Info - All information REQUIRED for consideration of pull request

Sylvester Kaczmarek, Personal

Validation update on 7 October 2026

Current validated commit 8c051d295be5.

The refreshed exact source tree passed the repository's complete non-EDS Code Coverage Analysis workflow on the contributor fork: https://github.com/sylvesterkaczmarek/cFE/actions/runs/37638550980. The job used the normal cFS build container and upstream setup-cfe action, built the configured core modules, ran their CTest suites, and passed coverage enforcement without modifying workflow rules. This verifies the default native Linux unit-test/coverage configuration; it does not claim every target, EDS mode or 32-bit ABI was tested. The validation branch and upstream PR branch point to the same verified commit. No dependency or build-policy changes are included.

The complete upstream workflow result is not claimed from local checks. Fresh fork workflows may require maintainer approval.

@sylvesterkaczmarek
sylvesterkaczmarek marked this pull request as ready for review August 13, 2026 10:39
@sylvesterkaczmarek

Copy link
Copy Markdown
Author

This remains current and mergeable against dev, and #2781 is still open. The change is limited to the server-only SEND_CMD_MID guard. Could a maintainer review this when convenient?

@dzbaker

dzbaker commented Sep 14, 2026

Copy link
Copy Markdown
Collaborator

Thank you @sylvesterkaczmarek for this contribution! I have added this to our team's review list. We have a fairly small team maintaining cFS and are gradually working through our backlog of submissions.

Signed-off-by: Sylvester Kaczmarek <16242628+sylvesterkaczmarek@users.noreply.github.com>
@sylvesterkaczmarek
sylvesterkaczmarek force-pushed the fix-2781-time-client-build branch from f7d7c73 to 8c051d2 Compare October 7, 2026 14:45
@sylvesterkaczmarek

Copy link
Copy Markdown
Author

Updated validation is recorded in the PR description for 8c051d295be5. The branch is refreshed onto the checked live base. Could a maintainer review this head and approve any waiting workflows?

@sylvesterkaczmarek

Copy link
Copy Markdown
Author

Checking whether you need anything else from me for this TIME message-ID fix. I know it is in the review queue.

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.

cFE TIME cfe_time_dispatch.c compilation error when configured as a client

2 participants