Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CORE] Remove unused python scripts in FWCore/MessageService/test/PsetValidationSamples #46168

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

iarspider
Copy link
Contributor

PR description:

Fix syntax in python scripts:

  • Switch to python 3 syntax: print(), except ... as
  • Partial fix for indentation: make all indented line use the same characters for indentation (either spaces or tabs), remove mixing of tabs and spaces
  • Add missing braces and commas, fix invalid syntax (FWLiteEnabler::enable() should be ROOT.FWLiteEnabler.enable()), remove trailing semicolons
  • Replaced (potentially unsafe) exec with import_module

This is a preparation for fixing #46113 . Maybe some of these scripts are not needed anymore and can be removed?

PR validation:

Bot tests.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2024

cms-bot internal usage

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2024

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2024

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

It involves the following packages:

  • FWCore/MessageService (core)

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

cms-bot commands are listed here

@makortel
Copy link
Contributor

makortel commented Oct 1, 2024

@Dr15Jones @wddgit Do you know if the files in FWCore/MessageService/test/PsetValidationSamples/ are used for anything? By quick git grep I didn't see any indication they would be used by anything (and clearly the debugModules_cfg.py is not used).

Could we consider removing all these? Or are these meant as examples?

@makortel
Copy link
Contributor

makortel commented Oct 1, 2024

After looking a bit more detail, it seems these files were added in 546e000 as a very manual test (one would have to edit the files, and check the output). I'd bet these files are practically useless now, and would be best to be removed.

@iarspider Could you remove the directory FWCore/MessageService/test/PsetValidationSamples/ instead?

@iarspider iarspider force-pushed the iarspider-patches-20240930-11 branch from 0b70eec to b568f40 Compare October 1, 2024 13:45
@iarspider
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2024

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2024

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

@makortel
Copy link
Contributor

makortel commented Oct 1, 2024

Thanks. Could you also update the PR title?

@iarspider iarspider changed the title [CORE] Fix syntax in python scripts [CORE] Remove unused python scripts in FWCore/MessageService/test/PsetValidationSamples Oct 1, 2024
@wddgit
Copy link
Contributor

wddgit commented Oct 1, 2024

I wasn't aware these files existed. I agree that deleting is probably the best choice.

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 1, 2024

+1

Size: This PR adds an extra 20KB to repository
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-df93c3/41844/summary.html
COMMIT: b568f40
CMSSW: CMSSW_14_2_X_2024-10-01-1100/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/46168/41844/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

Summary:

@makortel
Copy link
Contributor

makortel commented Oct 2, 2024

Comparison differences are related to #39803

@makortel
Copy link
Contributor

makortel commented Oct 2, 2024

+core

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 2, 2024

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. @rappoccio, @antoniovilela, @mandrenguyen, @sextonkennedy (and backports should be raised in the release meeting by the corresponding L2)

@mandrenguyen
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit dea80b6 into cms-sw:master Oct 2, 2024
11 checks passed
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