verm__ changed the topic of #buildbot to: A Software Freedom Conservancy Project | Buildbot-3.5.0 | docs: http://docs.buildbot.net/current/ | tutorial: http://docs.buildbot.net/current/tutorial | irclogs: https://libera.irclog.whitequark.org/buildbot
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashja_ has joined #buildbot
aakashja_ has quit [Ping timeout: 265 seconds]
aakashjain has joined #buildbot
aakashja_ has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashja_ has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 256 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashja_ has joined #buildbot
aakashja_ has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 252 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 256 seconds]
aakashjain has joined #buildbot
aakashja_ has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashja_ has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 256 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashja_ has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashja_ has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 264 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashja_ has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashja_ has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 256 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 252 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 252 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 252 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 252 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 255 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 255 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 256 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 255 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
Nanoyaru has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
<Nanoyaru> How would one go about adding shell commands that need sourcing as a part of multiple step for eg:
<Nanoyaru> ```python
<Nanoyaru> factory.addStep(
<Nanoyaru>         steps.ShellCommand(
<Nanoyaru>             command="eval `/usr/share/lmod/lmod/libexec/lmod use /opt_hpc/$MPSD_OS/$MPSD_MICROARCH/lmod/Core`",
<Nanoyaru>             name=" use local modules",
<Nanoyaru>         )
<Nanoyaru>     )
<Nanoyaru>     # module load toolchains/foss2021a-mpi
<Nanoyaru>     factory.addStep(
<Nanoyaru>         steps.ShellCommand(
<Nanoyaru>             command=""eval `/usr/share/lmod/lmod/libexec/lmod load toolchains/foss2021a-{variant}`".format(
<Nanoyaru>                 variant=variant
<Nanoyaru>             ),
<Nanoyaru>             name=" load toolchain",
<Nanoyaru>         )
<Nanoyaru>     )
<Nanoyaru> ```
<Nanoyaru> One way would be to add all the steps into one shell step like:
<Nanoyaru>  factory.addStep(
<Nanoyaru>         steps.ShellCommand(
<Nanoyaru>             command="eval `/usr/share/lmod/lmod/libexec/lmod use /opt_hpc/$MPSD_OS/$MPSD_MICROARCH/lmod/Core` &&\ ",
<Nanoyaru>             name=" use local modules",
<Nanoyaru>         )
<Nanoyaru>     )
<Nanoyaru> Sorry i mean like so :
<Nanoyaru>     factory.addStep(
<Nanoyaru>         steps.ShellCommand(
<Nanoyaru>             command="eval `/usr/share/lmod/lmod/libexec/lmod use /opt_hpc/$MPSD_OS/$MPSD_MICROARCH/lmod/Core && module load toolchain && autoreconf -i && ./configure && make && make install`",
<Nanoyaru>             name=" use local modules",
<Nanoyaru>         )
<Nanoyaru>     )
<Nanoyaru> But this is quite inefficient and hard to navigate. How would one go about making them into separate steps
<cmouse> just split it into separate stpes
<cmouse> not sure what the issue is
<cmouse> https://docs.buildbot.net/latest/manual/configuration/steps/index.html documents usefuls prefab steps like `Configure` and `Compile` you can use
<cmouse> the rest are just about using ShellCommand with haltOnFailure=true
mark_ is now known as mjw
<Nanoyaru> the issue is that module use puts things in path, and if I split this into multiple steps, the path is not inherited so `module load toolchain` would fail as the new shell never had the paths set by `module use`
<cmouse> mm
<cmouse> you can record a value from a step and then use it as env var on subsequent steps
<Nanoyaru> same with `make` as it uses the compilers loaded by the toolchain
aakashjain has joined #buildbot
<cmouse> either one of these would probably do the job
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 260 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashjain has joined #buildbot
aakashjain has quit [Ping timeout: 255 seconds]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Read error: Connection reset by peer]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
mjw has quit [Killed (NickServ (GHOST command used by wielaard!~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440))]
wielaard is now known as mjw
mark_ has joined #buildbot
aakashjain has quit [Remote host closed the connection]
aakashjain has joined #buildbot
Nanoyaru has quit [Quit: Client closed]
Nanoyaru has joined #buildbot
<Nanoyaru> Is there a way to change workdir for all subsequent steps in a factory
Nanoyaru has quit [Ping timeout: 260 seconds]
aakashjain has quit [Remote host closed the connection]
vmeson is now known as JackHandey
JackHandey is now known as vmeson
<dol-sen> set a property and substitute it at each step is one way
<dol-sen> but tbh, it's been too long since I've been in the code
<dol-sen> might be an easier way
mjw has quit [Killed (NickServ (GHOST command used by mark_!~mark@gnu.wildebeest.org))]
mark_ is now known as mjw
wielaard has joined #buildbot
gordea has joined #buildbot