Add bash completion for `git cms-addpkg`
The completion is available for both git-cms-addpkg and git cms-addpkg.
A new Pull Request was created by @fwyzard for branch master.
@cmsbuild, @iarspider, @smuzaffar, @aandvalenzuela can you please review it and eventually sign? Thanks. @sextonkennedy, @antoniovilela, @rappoccio you are the release manager for this. cms-bot commands are listed here
cms-bot internal usage
@fwyzard , sorry I missed this.
I have tested it locally and it works fine if I have already done it git cms-init and I am in src directory. As all git-cms tools are suppose to work under cmsenv so may be if one is not under src then first do a cd $CMSSW_BASE ?
As all
git-cmstools are suppose to work undercmsenvso may be if one is not undersrcthen first do acd $CMSSW_BASE?
Good point.
Also can you please move it under share/etc/profile.d/S99cms-git-tools-completion.sh . Then we can just rsync this share/etc/profile.d to /cvmfs/cms.cern.ch/share/etc/profile.d which contains the scripts automatically sources by cmsset_default.sh
Just to double check, I should create a new directory share/etc/profile.d/ and move the file there, correct ?
Pull request #127 was updated.
Just to double check, I should create a new directory
share/etc/profile.d/and move the file there, correct ?
yes, that is correct. By the way, does this work for CentOs7 ? I get strange results when run under cc7 releases ( may be it is git or bash version issue)
I've made three changes:
- moved the script to
share/etc/profile.d/S99cms-git-tools-completion.sh; - if
$CMSSW_BASEis defined and$CMSSW_BASE/src/.gitexists, take the list of packages from Git; - otherwise, if
$CMSSW_RELEASE_BASEis defined and$CMSSW_RELEASE_BASE/srcexists, take the list of packages from the release area.
From a quick test on CentOS 7.9 (in a cmssw-el7 container), the completion for git-cms-addpkg is working, while the completion for git cms-addpkg does not work.
But I don't get any completion for any of the native git commands, either.
please test
+1
Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b7626f/41744/summary.html
COMMIT: df187cc63a0071dc1bb71e2d38d6ab5fb6049077
CMSSW: CMSSW_14_2_X_2024-09-24-2300/el8_amd64_gcc12
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week0/cms-sw/cms-git-tools/127/41744/install.sh to create a dev area with all the needed externals and cmssw changes.
The following merge commits were also included on top of IB + this PR after doing git cms-merge-topic:
- @cms-sw cms-sw/cmsdist#9434
You can see more details here: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b7626f/41744/git-recent-commits.json https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-b7626f/41744/git-merge-result
Comparison Summary
Summary:
- You potentially added 16 lines to the logs
- Reco comparison results: 8 differences found in the comparisons
- DQMHistoTests: Total files compared: 44
- DQMHistoTests: Total histograms compared: 3331070
- DQMHistoTests: Total failures: 6
- DQMHistoTests: Total nulls: 0
- DQMHistoTests: Total successes: 3331044
- DQMHistoTests: Total skipped: 20
- DQMHistoTests: Total Missing objects: 0
- DQMHistoSizes: Histogram memory added: 119.2900000000001 KiB( 43 files compared)
- DQMHistoSizes: changed ( 1000.0,... ): 1.715 KiB OfflinePV/Alignment
- DQMHistoSizes: changed ( 12834.0,... ): 5.430 KiB HLT/Vertexing
- DQMHistoSizes: changed ( 24834.911,... ): 3.590 KiB HLT/Vertexing
- Checked 193 log files, 163 edm output root files, 44 DQM output files
- TriggerResults: no differences found
+externals
this needs to be tested via cmsdist PR (with changes to deploy this new script)
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. @antoniovilela, @sextonkennedy, @rappoccio, @mandrenguyen (and backports should be raised in the release meeting by the corresponding L2)