Conversation
sethrj
requested review from
amandalund and
stognini
and
a balanced review from Copilot
September 9, 2026 18:06
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
It contains a compilation failure, cumulative counters, missing event records, and an output-file truncation regression.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds persistent JSONL diagnostics for optical simulation, especially LArSoft event processing.
Changes:
- Adds append/truncate output registry support.
- Resets and reports per-run optical diagnostics.
- Writes LArSoft setup and event diagnostics.
File summaries
| File | Description |
|---|---|
test/Test.cc |
Clarifies filename counter comparison. |
test/larceler/LarStandaloneRunner.test.cc |
Enables output and validates photon results. |
test/corecel/sys/Stopwatch.test.cc |
Tests reset-after-read timing. |
test/corecel/io/OutputRegistry.test.cc |
Tests persistent JSONL output. |
src/larceler/pdfullsimceler.fcl |
Changes output extension to JSONL. |
src/larceler/LarStandaloneRunner.hh |
Stores diagnostics and registry state. |
src/larceler/LarStandaloneRunner.cc |
Writes setup and per-event diagnostics. |
src/larceler/detail/LarRunnerDiagnosticsIO.json.hh |
Serializes LAr diagnostics. |
src/larceler/detail/LarRunnerDiagnostics.hh |
Defines LAr diagnostic data. |
src/larceler/CMakeLists.txt |
Updates dependencies and module setup. |
src/corecel/sys/Stopwatch.hh |
Adds get-and-reset operation. |
src/corecel/io/OutputRegistry.hh |
Adds persistent output API. |
src/corecel/io/OutputRegistry.cc |
Implements JSONL output management. |
src/corecel/io/OutputInterface.cc |
Documents compact JSON output. |
src/corecel/io/Logger.hh |
Updates MPI logging guidance. |
src/corecel/io/FileOrConsole.hh |
Adds configurable output modes. |
src/celeritas/user/ActionTimes.hh |
Adds timing reset API. |
src/celeritas/user/ActionTimes.cc |
Implements timing reset. |
src/celeritas/setup/Problem.cc |
Opens configured optical output. |
src/celeritas/optical/Transporter.hh |
Adds exchange APIs. |
src/celeritas/optical/Transporter.cc |
Resets returned timing data. |
src/celeritas/optical/Runner.hh |
Exposes reset-on-read results. |
src/celeritas/optical/Runner.cc |
Exchanges run diagnostics. |
app/celer-optical/SimulationResult.json.hh |
Clarifies timing semantics. |
app/celer-optical/celer-optical.cc |
Uses registry-managed output. |
Review details
Suppressed comments (1)
src/larceler/LarStandaloneRunner.cc:91
output_regis not declared in this scope, so profiling-enabled builds cannot compile this constructor. Invokeinserton theoutput_member used immediately above.
output_reg.insert(
- Files reviewed: 25/25 changed files
- Comments generated: 5
- Review effort level: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| auto DuneCryoTest::make_input() -> Input | ||
| { | ||
| Input result; | ||
| result.problem.output_file = this->make_unique_filename("out.jsonl"); |
Test summary 5 421 files 8 846 suites 5m 57s ⏱️ Results for commit 613727b. ♻️ This comment has been updated with latest results. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is focused on the application front-ends and specifically larceler, but it changes the output registry to be more mutable and allows it to be "output" multiple times by appending to an existing file. In the larsoft case, the main diagnostics are written after the runner is set up as one line of NDJSON/JSONL, and then each event writes a subsequent line of output.
Changes:
diagnostics_->time.setup = std::move(get_time_delta)();