Skip to content

refactor(build): remove deprecated WITH_SLOG and WITH_STTF guards#321

Open
plexoos wants to merge 3 commits intomainfrom
remove-with-slog
Open

refactor(build): remove deprecated WITH_SLOG and WITH_STTF guards#321
plexoos wants to merge 3 commits intomainfrom
remove-with-slog

Conversation

@plexoos
Copy link
Copy Markdown
Member

@plexoos plexoos commented May 4, 2026

This branch removes the deprecated WITH_SLOG and WITH_STTF compile-time guards, which were
effectively always enabled in the current monorepo build.

What changed

  • removed WITH_SLOG and WITH_STTF compile definitions from CMake
  • made the SLOG-based logging paths in CSG::CU and OpticksPhoton unconditional
  • always include STTF headers and always register STTFTest.cc instead of gating them on WITH_STTF
  • deleted obsolete SLOG.rst and SLOG_review.rst
  • replaced dangling documentation references with short inline notes in SLOG.hh and OPTICKS_LOG.hh
  • cleaned up a few small stale comments and formatting leftovers in related CMake files

Why

These flags no longer controlled meaningful optional behavior in this codebase. Keeping them around
added conditional build logic and dead guards without providing a real configuration choice.

This change simplifies the build, makes the logging/font paths reflect actual usage, and reduces
stale documentation and scaffolding.

plexoos added 3 commits May 4, 2026 19:40
Remove the remaining WITH_SLOG compile definitions from sysrap and CSGOptiX.

Delete the conditional logging includes, LEVEL declarations, and debug-only LOG calls in CSG::CU and
OpticksPhoton now that the flag no longer controls functional behavior.

This simplifies the build configuration and removes dead code without changing runtime logic.
Copilot AI review requested due to automatic review settings May 4, 2026 23:47
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 4, 2026

Cpp-Linter Report ⚠️

Some files did not pass the configured checks!

clang-format (v20.1.2) reports: 1 file(s) not formatted
  • CSG/CU.h

Have any feedback or feature suggestions? Share it here.

@plexoos plexoos changed the title irefactor(build): remove deprecated WITH_SLOG and WITH_STTF guards refactor(build): remove deprecated WITH_SLOG and WITH_STTF guards May 4, 2026
@plexoos plexoos self-assigned this May 4, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 1aa8869bc9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread sysrap/OpticksPhoton.hh
#include <sstream>

#ifdef WITH_SLOG
#include "plog/Severity.h"
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Preserve standalone build by guarding plog include

This unconditional plog/Severity.h include breaks the documented STANDALONE/header-only usage of OpticksPhoton.hh: the standalone compile path in sysrap/tests/OpticksPhotonSTANDALONETest.sh uses gcc $name.cc -I.. and now fails with fatal error: plog/Severity.h: No such file or directory unless callers manually add plog include paths. Before this change, the WITH_SLOG guard avoided that external dependency for standalone consumers, so this is a functional regression for non-CMake or minimal builds.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies the build by removing the deprecated WITH_SLOG and WITH_STTF guards that were effectively always enabled, and by making the associated logging/font code paths unconditional across SysRap/CSG-related code.

Changes:

  • Removed obsolete WITH_SLOG / WITH_STTF compile definitions from CMake and PTX build settings.
  • Made SLOG usage in CSG::CU and OpticksPhoton unconditional, and always registered STTFTest.cc.
  • Deleted legacy SLOG documentation files and replaced them with short inline header notes.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
u4/CMakeLists.txt Minor cleanup of stale blank line near compile definitions.
sysrap/tests/CMakeLists.txt Registers STTFTest.cc unconditionally in SysRap tests.
sysrap/SLOG.rst Deletes legacy standalone SLOG documentation.
sysrap/SLOG.hh Replaces external doc reference with short inline logging note.
sysrap/SLOG_review.rst Deletes old SLOG review/design notes.
sysrap/OpticksPhoton.hh Makes plog severity declaration/header dependency unconditional.
sysrap/OpticksPhoton.cc Makes SLOG include and LEVEL definition unconditional.
sysrap/OPTICKS_LOG.hh Adds inline note describing SLOG.hh / SLOG_INIT.hh roles.
sysrap/CMakeLists.txt Removes deprecated guard variables/definitions; always installs STTF headers.
qudarap/CMakeLists.txt Removes stale local-debugging comment block.
CSGOptiX/CMakeLists.txt Drops deprecated guard definitions from PTX object compilation.
CSG/CU.h Makes plog severity dependency unconditional in CU.
CSG/CU.cc Makes SLOG include, level, and logging calls unconditional.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread sysrap/OpticksPhoton.hh
Comment on lines 17 to 28
@@ -27,9 +25,7 @@ struct OpticksPhoton
struct SYSRAP_API OpticksPhoton
#endif
{
#ifdef WITH_SLOG
static const plog::Severity LEVEL ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants