Skip to content

Remove unused files from copied common_bench code - #119

Merged
wdconinc merged 1 commit into
masterfrom
wdconinc-remove-unused-files
Sep 4, 2026
Merged

Remove unused files from copied common_bench code#119
wdconinc merged 1 commit into
masterfrom
wdconinc-remove-unused-files

Conversation

@wdconinc

@wdconinc wdconinc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR removes three unused files that were copied from eic/common_bench in a previous commit.

Analysis

After a thorough code review:

Removed files:

  1. bin/compile_analyses.py - Not referenced anywhere in the repository

    • ROOT compilation is handled by Snakemake's compile_analysis rule using ACLiC
    • This utility script is not called in CI/CD pipelines or local workflows
  2. bin/strict-mode.sh - Not referenced in any scripts or CI jobs

    • Provides bash error handling boilerplate that is not used
  3. include/common_bench/particles.h - Not included by any analysis code

    • No .cxx files include this header
    • Particle data is provided elsewhere in the code when needed

Files kept (as they are actively used):

  • bin/env.sh - Sets up environment and PATH
  • bin/collect_benchmarks.py - Called in CI summary job
  • bin/collect_tests.py - Called in benchmark configs
  • bin/mkdir_local_data_link - Called in CI setup
  • include/common_bench/benchmark.h - Included by analysis code
  • include/common_bench/plot.h - Included by analysis code
  • include/common_bench/util.h - Included by analysis code
  • include/common_bench/exception.h - Included by benchmark.h

Verification

Comprehensive search confirmed no references to removed files in CI/CD, Snakemake workflows, configurations, or code.

The following files were copied from eic/common_bench but are not
used in this repository:

- bin/compile_analyses.py: Not called anywhere; ROOT compilation
  is handled by Snakemake's compile_analysis rule using ACLiC
- bin/strict-mode.sh: Not referenced in any scripts or CI jobs
- include/common_bench/particles.h: Not included by any analysis
  code; particle data is provided elsewhere as needed

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 3, 2026 21:32
@wdconinc
wdconinc enabled auto-merge (squash) September 3, 2026 21:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

Verified there are no remaining in-repo references to the removed files and the Snakemake compilation flow does not depend on them.

Pull request overview

This PR removes three files that were previously copied from eic/common_bench and are not referenced by the current benchmark codebase or workflows, reducing maintenance surface and avoiding dead utilities/headers.

Changes:

  • Deleted unused helper script bin/compile_analyses.py.
  • Deleted unused bash boilerplate bin/strict-mode.sh.
  • Deleted unused header include/common_bench/particles.h.
File summaries
File Description
include/common_bench/particles.h Removes an unused particle data header that is not included by any analysis code.
bin/strict-mode.sh Removes an unused “strict bash mode” helper that is not sourced by repository scripts/workflows.
bin/compile_analyses.py Removes an unused ROOT analysis compilation helper script (compilation handled via Snakemake instead).
Review details
  • Files reviewed: 1/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@wdconinc
wdconinc merged commit 71b3686 into master Sep 4, 2026
3 checks passed
@wdconinc
wdconinc deleted the wdconinc-remove-unused-files branch September 4, 2026 02:20
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.

2 participants