ohpc icon indicating copy to clipboard operation
ohpc copied to clipboard

Use a .patch to comment out Slurm settings which need to be overwritten by OpenHPC

Open martin-g opened this issue 2 years ago • 5 comments

Related-to: https://github.com/openhpc/ohpc/pull/1830

martin-g avatar Nov 23 '23 10:11 martin-g

Test Results

11 files  + 7  11 suites  +7   0s :stopwatch: ±0s 32 tests +15  32 :white_check_mark: +15  0 :zzz: ±0  0 :x: ±0  33 runs  +15  33 :white_check_mark: +15  0 :zzz: ±0  0 :x: ±0 

Results for commit b7fd1f54. ± Comparison against base commit 46181bd5.

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar Nov 23 '23 10:11 github-actions[bot]

How do you feel about having the changes from all the echo lines also be included in the patch?

adrianreber avatar Nov 24 '23 08:11 adrianreber

It will work! I just wonder how often we will need to adapt the patch when upgrading Slurm. Looking at the Git history of https://github.com/SchedMD/slurm/commits/master/etc/slurm.conf.example I see that they make 1 or 2 changes per year. But most of the changes are in settings' values, not adding/removing settings (and thus change the line numbers). So probably it should be OK!

martin-g avatar Nov 24 '23 09:11 martin-g

Right, having a patch is more work if upstream changes things. On the other hand it is probably more reliable to actually change the file as desired. grep, sed, echo will probably not give us feedback if something failed.

adrianreber avatar Nov 24 '23 10:11 adrianreber

OK! I will move those lines to the patch!

martin-g avatar Nov 24 '23 12:11 martin-g

Thanks

adrianreber avatar Feb 29 '24 12:02 adrianreber