Skip to content

Enable Jets-HF/jets benchmark in GitLab CI - #114

Merged
wdconinc merged 17 commits into
masterfrom
copilot/enable-jets-benchmark
Aug 30, 2026
Merged

Enable Jets-HF/jets benchmark in GitLab CI#114
wdconinc merged 17 commits into
masterfrom
copilot/enable-jets-benchmark

Conversation

Copilot AI commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

The CI pipeline was not including the Jets-HF/jets benchmark, so its jobs were never being scheduled and its results were excluded from the final benchmark summary. The benchmark implementation already existed in the repo; the workflow definition simply never wired it in.

  • Summary

    • Add the Jets-HF/jets benchmark configuration to the GitLab workflow so it participates in the normal benchmark pipeline.
    • Ensure its collected results are included in the final summary stage, matching the behavior of the other enabled physics benchmarks.
  • Changes

    • Added benchmarks/Jets-HF/jets/config.yml to the include: list in .gitlab-ci.yml.
    • Added jets:results to the summary job needs list so the benchmark contributes to the aggregate output.
  • Result

    • Jets-HF/jets now runs with the rest of the physics benchmarks and is reflected in the final CI summary instead of being silently omitted.

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
Copilot AI changed the title Enable Jets-HF/jets benchmark in CI workflow Enable Jets-HF/jets benchmark in GitLab CI Aug 28, 2026
Copilot AI requested a review from wdconinc August 28, 2026 23:36
@wdconinc
wdconinc marked this pull request as ready for review August 28, 2026 23:40
Copilot AI lite review requested due to automatic review settings August 28, 2026 23:40

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.

Pull request overview

This PR wires the existing Jets-HF/jets benchmark into the GitLab CI pipeline so it runs alongside the other physics benchmarks and contributes to the aggregate summary output.

Changes:

  • Added benchmarks/Jets-HF/jets/config.yml to the .gitlab-ci.yml include: list so the benchmark’s jobs are instantiated in the pipeline.
  • Added jets:results to the summary job’s needs so its artifacts/results are available during the final aggregation step.

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

@wdconinc

This comment was marked as resolved.

- Remove trailing space in .gitlab-ci.yml that caused YAML parsing error
- Fix Snakefile copy-paste errors: replace "dis_" with "jets_" in output_prefix, plot_tag, and test_tag
- These changes allow the benchmark to compile and run correctly

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>

This comment was marked as resolved.

@wdconinc

This comment was marked as resolved.

- Add #include <TColor.h> for TColor class usage
- Add #include <fstream> for std::ifstream usage
- These missing headers were causing compilation errors in the jets benchmark

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>

This comment was marked as resolved.

@wdconinc

This comment was marked as resolved.

@wdconinc

This comment was marked as resolved.

- Add #include <TF1.h> for TF1 class usage
- Add #include <TStyle.h> for gStyle object usage
- These missing headers were causing compilation errors

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>

This comment was marked as resolved.

Comment thread benchmarks/Jets-HF/jets/Snakefile
@wdconinc

This comment was marked as resolved.

- Change ReconstructedChargedJets.type from TTreeReaderArray<int> to unsigned int
- Change GeneratedChargedJets.type from TTreeReaderArray<int> to unsigned int
- Comment out non-existent ReconstructedChargedParticleLinks branch definitions
- Comment out code that attempts to access non-existent Links branches
- Update Snakefile data paths to use {INDEX} pattern instead of hardcoded .0000.

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>

This comment was marked as resolved.

Copilot AI and others added 3 commits August 29, 2026 17:36
- Add guard check to prevent accessing pdgMCPart with -1 index
- Check if elecIndex >= 0 before using it as array index

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
- Add comment clarifying that electron identification is disabled due to unavailable branches
- Explain that all jets are analyzed in the "NoElec" histograms since we cannot identify electrons

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
- Add comment explaining that unused variables are placeholders for future use
- Document that they are kept for when ReconstructedChargedParticleLinks branches become available

Co-authored-by: wdconinc <4656391+wdconinc@users.noreply.github.com>
Copilot AI requested a review from wdconinc August 29, 2026 17:39
Comment thread benchmarks/Jets-HF/jets/Snakefile Outdated
wdconinc and others added 4 commits August 29, 2026 15:38
The {INDEX} wildcard in input files cannot be determined from output files,
causing a WildcardError. Following the pattern used in benchmarks/Inclusive/dis,
replace the wildcard with the fixed value '0000' to match the actual file naming.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The ReconstructedChargedParticleLinks branches are available since
EICrecon commit e078a5009 and are required for electron identification
in jet constituents via MC truth matching.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Remove all NOTEs about missing ReconstructedChargedParticleLinks and
restore the full MC truth matching loop for electron identification in
jet constituents. Also remove the elecIndex >= 0 guard that was added
as a workaround - master branch doesn't have this check.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…cess

- Change chargePartIndex from int to unsigned int to match the type of
  recoPartAssocRec elements and avoid -Wsign-compare warning
- Add elecIndex >= 0 check before accessing pdgMCPart[elecIndex] to
  prevent out-of-bounds access when no matching particle is found

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@wdconinc
wdconinc force-pushed the copilot/enable-jets-benchmark branch from 15421b1 to 83f91b4 Compare August 29, 2026 21:08
Change from R__LOAD_LIBRARY which fails fatally if library is not found,
to gSystem->Load which allows the script to continue. This prevents ROOT
from aborting when libfmt is not available via the macro preprocessor,
but is available at link time.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@wdconinc
wdconinc force-pushed the copilot/enable-jets-benchmark branch from 83f91b4 to 7399adc Compare August 29, 2026 21:10
@wdconinc
wdconinc enabled auto-merge (squash) August 30, 2026 15:41
@wdconinc
wdconinc merged commit 56cb8e1 into master Aug 30, 2026
2 checks passed
@wdconinc
wdconinc deleted the copilot/enable-jets-benchmark branch August 30, 2026 15:53
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.

3 participants