Page MenuHomePhabricator

Score generatePngAndMidi.sh hides individual shell commands
Closed, ResolvedPublic

Description

generatePngAndMidi.sh is a wrapper that runs various commands instead of having MediaWiki shell out to them directly. One downside is that the individual shell commands being run don't get logged, just generatePngAndMidi.sh. Could we do something like set -x in the script? Or something to that effect at least.

Event Timeline

Change 815828 had a related patch set uploaded (by Tim Starling; author: Tim Starling):

[mediawiki/extensions/Score@master] Trace command execution in generatePngAndMidi.sh

https://gerrit.wikimedia.org/r/815828

set -x is noisy and breaks errorExit() by inserting trace messages in between the arguments. But it was possible to wrap the main commands with a DIY equivalent.

Change 815828 merged by jenkins-bot:

[mediawiki/extensions/Score@master] Trace command execution in generatePngAndMidi.sh

https://gerrit.wikimedia.org/r/815828

Sorry I missed this in my review queue somehow. Thank you!

tstarling claimed this task.

Change 868531 had a related patch set uploaded (by Reedy; author: Tim Starling):

[mediawiki/extensions/Score@REL1_39] Trace command execution in generatePngAndMidi.sh

https://gerrit.wikimedia.org/r/868531

Change 868531 merged by jenkins-bot:

[mediawiki/extensions/Score@REL1_39] Trace command execution in generatePngAndMidi.sh

https://gerrit.wikimedia.org/r/868531