Skip to content

Remove unused variable JUGGLER_N_THREADS from bin/env.sh - #123

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

Remove unused variable JUGGLER_N_THREADS from bin/env.sh#123
wdconinc merged 1 commit into
masterfrom
wdconinc-remove-unused-env-vars

Conversation

@wdconinc

@wdconinc wdconinc commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Remove only the environment variable that is defined in env.sh but never used anywhere in the codebase.

Changes

Removed 1 unused export:

  • JUGGLER_N_THREADS (line 65)
    • Exported from BENCHMARK_N_THREADS but never referenced anywhere
    • No external usage found across all file types (.sh, .py, .yml, .yaml, Snakefile, .md, .cxx, .h)
    • Applications use ROOT_MAX_THREADS instead for thread configuration

Variables Kept

All BENCHMARK_ variables* (input configuration for CI/server override):

  • BENCHMARK_N_EVENTS → actively used to create JUGGLER_N_EVENTS
  • BENCHMARK_N_THREADS → actively used to create ROOT_MAX_THREADS
  • BENCHMARK_RNG_SEED → actively used to create JUGGLER_RNG_SEED

ROOT_INCLUDE_PATH (used implicitly by ROOT):

  • Used by ROOT at runtime for include path configuration
  • Not grep-detectable as it's read by compiled ROOT C++ code
  • Similar to ROOT_MAX_THREADS which is used implicitly by ROOT::EnableImplicitMT()

Verification

  • ✅ Bash syntax validation passed
  • ✅ Script executes successfully
  • ✅ All key variables verified
  • ✅ ROOT_INCLUDE_PATH preserved for ROOT runtime usage
  • ✅ No external dependencies on removed variables

Remove only the variable that is defined in env.sh but never used anywhere:

JUGGLER_N_THREADS (line 65)
  - Exported from BENCHMARK_N_THREADS but never referenced in codebase
  - No external usage found (0 references across all file types)
  - Applications use ROOT_MAX_THREADS instead for thread configuration

KEEP all other variables:

BENCHMARK_* variables (BENCHMARK_N_EVENTS, BENCHMARK_N_THREADS, BENCHMARK_RNG_SEED):
  - Input configuration variables meant to be set by CI/server
  - Actively used within env.sh to create derived variables
  - Removing them breaks CI workflows

ROOT_INCLUDE_PATH:
  - Used implicitly by ROOT at runtime for include path configuration
  - Not grep-detectable as it's read by compiled ROOT code
  - Keep per task requirements

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:51
@wdconinc
wdconinc force-pushed the wdconinc-remove-unused-env-vars branch from 686f1db to 7049ff9 Compare September 3, 2026 21:51

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.

Copilot wasn't able to review any files in this pull request.


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

@wdconinc
wdconinc enabled auto-merge (squash) September 3, 2026 22:11
@wdconinc
wdconinc merged commit a6b66a6 into master Sep 4, 2026
2 checks passed
@wdconinc
wdconinc deleted the wdconinc-remove-unused-env-vars branch September 4, 2026 02:23
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