Skip to content

Add tests for edm::FileInPath and fix number of corner cases - #51867

Open
makortel wants to merge 14 commits into
cms-sw:masterfrom
makortel:fileInPath
Open

makortel wants to merge 14 commits into
cms-sw:masterfrom
makortel:fileInPath

Conversation

@makortel

Copy link
Copy Markdown
Contributor

PR description:

In order to address #51757, this PR first adds unit tests for edm::FileInPath. While generating the test code my AI agent discovered 3 more corner cases that are not handled well, and this PR fixes those too. I then asked the AI agent to create tests for more corner cases, which it did, and that are fixed as well. I defer to the individual commits for the exact details of the changes.

The behavior of the FileInPath with respect to the typical cases of CMSSW_SEARCH_PATH and CMSSW_BASE/CMSSW_RELEASE_BASE/CMSSW_DATA_PATH should remain unchanged.

Resolves #51757
Resolves cms-sw/framework-team#2407

PR validation:

Added unit tests pass.

@cmsbuild

cmsbuild commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

cms-bot internal usage

@cmsbuild

Copy link
Copy Markdown
Contributor

@cmsbuild

Copy link
Copy Markdown
Contributor

A new Pull Request was created by @makortel for master.

It involves the following packages:

  • FWCore/Utilities (core)

@Dr15Jones, @cmsbuild, @makortel, @smuzaffar can you please review it and eventually sign? Thanks.
@felicepantaleo, @wddgit this is something you requested to watch as well.
@ftenchini, @mandrenguyen, @sextonkennedy you are the release manager for this.

cms-bot commands are listed here

@makortel

Copy link
Copy Markdown
Contributor Author

test parameters:

  • full_cmssw = true

To run all unit tests

@makortel

Copy link
Copy Markdown
Contributor Author

@cmsbuild, please test

@cmsbuild

Copy link
Copy Markdown
Contributor

-1

Failed Tests: ClangBuild
Size: This PR adds an extra 88KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ab372f/55811/summary.html
COMMIT: a8e37e5
CMSSW: CMSSW_20_1_X_2026-09-11-1100/el9_amd64_gcc14
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cmssw/51867/55811/install.sh to create a dev area with all the needed externals and cmssw changes.

Failed Clang Build

I found compilation warning while trying to compile with clang. Command used:

USER_CUDA_FLAGS='--expt-relaxed-constexpr' USER_CXXFLAGS='-Wno-register -fsyntax-only' /usr/bin/time -v scram build -k -j 32 COMPILER='llvm compile'

See details on the summary page.

… in search paths instead of string functions

Assisted-By: Copilot:claude-sonnet-5
…owing if dataTop environment variable is not set
@cmsbuild

Copy link
Copy Markdown
Contributor

@cmsbuild

Copy link
Copy Markdown
Contributor

Pull request #51867 was updated. @Dr15Jones, @cmsbuild, @makortel, @smuzaffar can you please check and sign again.

@makortel

Copy link
Copy Markdown
Contributor Author

@cmsbuild, please test

@cmsbuild

Copy link
Copy Markdown
Contributor

-1

Failed Tests: Build
Size: This PR adds an extra 40KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-ab372f/55854/summary.html
COMMIT: 14e1468
CMSSW: CMSSW_20_1_X_2026-09-14-1100/el9_amd64_gcc14
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/51867/55854/install.sh to create a dev area with all the needed externals and cmssw changes.

Failed Build

I found compilation warning when building: See details on the summary page.

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.

Fix infinite loop possibility in edm::FileInPath Infinite loop in edm::FileInPath

2 participants