Skip to content

test: remove unused scratch tests from u4 and sysrap#336

Merged
plexoos merged 5 commits into
mainfrom
remove-useless
May 24, 2026
Merged

test: remove unused scratch tests from u4 and sysrap#336
plexoos merged 5 commits into
mainfrom
remove-useless

Conversation

@plexoos
Copy link
Copy Markdown
Member

@plexoos plexoos commented May 19, 2026

This PR broadens the original u4 test cleanup to also remove retired and standalone scratch/probe sources from sysrap/tests.

u4

  • remove G4ThreeVectorTest.cc
  • remove FewPMT_test.cc and FewPMT_test.sh
  • remove U4SensorIdentifierDefault_test.cc
  • drop the stale G4ThreeVectorTest.cc entry from u4/tests/CMakeLists.txt
  • remove dead copy-number debug scaffolding from u4/U4SensorIdentifierDefault.h

sysrap

  • remove retired or unused test sources: UnwindTest.cc, SProcTest.cc, SLaunchSequenceTest.cc, SOpticksVersionNumberTest.cc, and libunwind_backtrace.c
  • remove dead entries from sysrap/tests/CMakeLists.txt
  • remove standalone scratch-probe sources that were not part of the active CMake test flow, including ConstExprTest.cc, GridSpecTest.cc, LongestCommonPrefixTest.cc, complex_norm_test.cc, convertor_test.cc, cpp_virtual_hidden_warning_test.cc, do_while_continue.cc, fitsInShort_test.cc, map_void_int.cc, pathtype_test.cc, rounding_nearbyint_test.cc, stamp32.cc, static_array.cc, string_viewTest.cc, using_test.cc, variable_size_object_may_not_be_initialized.cc, and vector_copy_if_test.cc

No functional behavior change is intended.

Copilot AI review requested due to automatic review settings May 19, 2026 23:04
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 cleans up the u4 test area by removing several ad hoc/scratch test and probe files that are no longer referenced by the regular U4 test build/run flow, and trims stale commented debug code in U4SensorIdentifierDefault.

Changes:

  • Removed unreferenced scratch tests/probes: G4ThreeVectorTest.cc, FewPMT_test.cc, FewPMT_test.sh, U4SensorIdentifierDefault_test.cc.
  • Updated u4/tests/CMakeLists.txt to stop building G4ThreeVectorTest.
  • Removed stale debug-only commented-out lines (and extra trailing whitespace) in u4/U4SensorIdentifierDefault.h.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
u4/U4SensorIdentifierDefault.h Removes stale commented debug scaffolding / trailing whitespace; no functional logic change.
u4/tests/CMakeLists.txt Drops G4ThreeVectorTest.cc from TEST_SOURCES so it is no longer built.
u4/tests/U4SensorIdentifierDefault_test.cc Removes an ad hoc standalone scratch test (no remaining references found).
u4/tests/G4ThreeVectorTest.cc Removes a scratch probe executable (no remaining references found; also removed from CMake).
u4/tests/FewPMT_test.sh Removes an ad hoc compile/run helper script (no remaining references found).
u4/tests/FewPMT_test.cc Removes an ad hoc probe executable (no remaining references found).

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

This PR removes a few ad hoc test/probe files that are no longer part of the
regular U4 test flow and have no remaining callers.

Changes:
- remove `u4/tests/G4ThreeVectorTest.cc`
- remove `u4/tests/FewPMT_test.cc`
- remove `u4/tests/FewPMT_test.sh`
- remove `u4/tests/U4SensorIdentifierDefault_test.cc`
- drop `G4ThreeVectorTest.cc` from `u4/tests/CMakeLists.txt`
- remove stale debug-only commented code in `u4/U4SensorIdentifierDefault.h`

No functional behavior change is intended.
@plexoos
Copy link
Copy Markdown
Member Author

plexoos commented May 21, 2026

@codex review

@chatgpt-codex-connector
Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

ℹ️ 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".

@plexoos plexoos changed the title test(u4): drop unreferenced scratch tests test: remove unused scratch tests from u4 and sysrap May 22, 2026
plexoos added 3 commits May 22, 2026 16:14
- delete `SProcTest`, `SLaunchSequenceTest`, `SOpticksVersionNumberTest`, and `libunwind_backtrace`
- remove the dead retired-test entry from `sysrap/tests/CMakeLists.txt`
- delete ad hoc language and stdlib probe files from `sysrap/tests`
- remove unused standalone experiments that were not part of CMake or test runs
@plexoos plexoos merged commit 64ecdda into main May 24, 2026
13 checks passed
@plexoos plexoos deleted the remove-useless branch May 24, 2026 15:00
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.

2 participants