Skip to content

Conversation

@colizz
Copy link
Contributor

@colizz colizz commented Jun 17, 2021

PR description:

In the ExternalGeneratorFilter module, external cmsRun instances are launched by the main instance in the same working directory.
As some types of generator will release intermediate files (e.g. H7, Sherpa), we execute the commands in different directories (specifed as thread0, thread1, ...) to avoid overlapping.

PR validation:

Validated over all possible GeneratorFilter-based modules as summarised in #34146 (comment).
Physics results show good consistency.

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34173/23382

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @colizz (Congqiao Li) for master.

It involves the following packages:

GeneratorInterface/Core

@SiewYan, @mkirsano, @cmsbuild, @GurpreetSinghChahal, @agrohsje, @alberto-sanchez can you please review it and eventually sign? Thanks.
@alberto-sanchez, @mkirsano this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

auto curDir = current_path();
auto newDir = path("thread"s + std::to_string(id_));
create_directory(newDir, ec);
current_path(newDir, ec);
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm concerned that any possible errors are silently ignored.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, shall this work?

Suggested change
current_path(newDir, ec);
current_path(newDir, ec);
if (ec) {
throw cms::Exception("ExternalFailed")
<< "failed entering the working dir for process " << id_ << ": " << ec.message();
}

(Actually the previous code was following this example

auto newDir = path("thread"s + std::to_string(id));
create_directory(newDir, ec);
current_path(newDir, ec);
)

Copy link
Contributor

Choose a reason for hiding this comment

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

How about letting these functions to throw the exceptions? (i.e. remove the ec altogether, assuming the messages of those exceptions would be clear-enough)

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-34173/23397

@cmsbuild
Copy link
Contributor

Pull request #34173 was updated. @SiewYan, @mkirsano, @cmsbuild, @GurpreetSinghChahal, @agrohsje, @alberto-sanchez can you please check and sign again.

@agrohsje
Copy link

please test

@cmsbuild
Copy link
Contributor

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6b5e54/16129/summary.html
COMMIT: 849fa60
CMSSW: CMSSW_12_0_X_2021-06-20-2300/slc7_amd64_gcc900
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/34173/16129/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 38
  • DQMHistoTests: Total histograms compared: 2785631
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2785602
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 37 files compared)
  • Checked 160 log files, 37 edm output root files, 38 DQM output files
  • TriggerResults: no differences found

@agrohsje
Copy link

agrohsje commented Jun 21, 2021

+generators

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@qliphy
Copy link
Contributor

qliphy commented Jun 21, 2021

+1

@cmsbuild cmsbuild merged commit 260e0a1 into cms-sw:master Jun 21, 2021
colizz added a commit to colizz/cmssw that referenced this pull request Jul 16, 2021
…eratorFilter (10_6_X)

Backport cms-sw#34173 to 10_6_X
Additional change: replace std::filesystem with boost::filesystem
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.

5 participants