Re: [slurm-users] Testing Lua job submit plugins

2021-05-06 Thread Loris Bennett
Hi Michael, Michael Robbert writes: > I’m wondering if others in the Slurm community have any tips or best > practices for the development and testing of Lua job submit plugins. Is there > anything that can be done prior to deployment on a production cluster that > will help to ensure > the c

Re: [slurm-users] Testing Lua job submit plugins

2021-05-06 Thread Baer, Troy
We have developed a set of unit tests based on LuaUnit for our clusters' submit filters. --Troy From: slurm-users On Behalf Of Michael Robbert Sent: Thursday, May 6, 2021 1:11 PM To: Slurm User Community List Subject: [slurm-users] Testing Lua job submit plugins I'm

Re: [slurm-users] Testing Lua job submit plugins

2021-05-06 Thread Paul Edmon
We go the route of having a test cluster and vetting our lua scripts there before putting them in the production environment. -Paul Edmon- On 5/6/2021 1:23 PM, Renfro, Michael wrote: I’ve used the structure at https://gist.github.com/mikerenfro/92d70562f9bb3f721ad1b221a1356de5

Re: [slurm-users] Testing Lua job submit plugins

2021-05-06 Thread Renfro, Michael
I’ve used the structure at https://gist.github.com/mikerenfro/92d70562f9bb3f721ad1b221a1356de5 to handle basic test/production branching. I can isolate the new behavior down to just a specific set of UIDs that way. Factoring out code into separate functions helps, too. I’ve seen others go so f

[slurm-users] Testing Lua job submit plugins

2021-05-06 Thread Michael Robbert
I’m wondering if others in the Slurm community have any tips or best practices for the development and testing of Lua job submit plugins. Is there anything that can be done prior to deployment on a production cluster that will help to ensure the code is going to do what you think it does or at t