PostUpgradeTasks execution not logged #26549
Replies: 4 comments 11 replies
-
Hi there, You're reporting a problem with an old version of Renovate. Please try the latest version and tell us if that fixes your problem. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
There is no improvement in version 37.385.0. Not a single line from Renovate that it ignored your post-upgrade tasks. I checked renovate-log.ndjson that contains debug-level messages. A warning should be printed when postUpgradeTasks key is present but allowedPostUpgradeCommands key is not defined Ideally, a warning should be also printed when postUpgradeTasks are defined, but at least one of them is ignored because it does not match allowedPostUpgradeCommands. Writing regular expressions that match shell commands can be tricky, it's easy to fail to match, and an information about failed match from Renovate would again save lots of time. To me, for every post-upgrade task, at least 1 line should be logged:
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. To get started, please read our guide on creating a minimal reproduction. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Tell us more.
Hi,
we are using renovate version 29.32.5. When there are allowedPostUpgradeCommands set there is some logging about postUpgradeTasks execution like following
WARN: Post-upgrade task did not match any on allowed list (repository=…)
"dep": "…",
"cmd": "echo postUpgradeCommands executed",
"allowedPostUpgradeCommands": ["^git .*"]
If the allowedPostUpgradeCommands are empty there isn't any logging about disabled task execution. It took some time for me to find that allowedPostUpgradeCommands should be set in order to execute post upgrade commands.
Can you please add some logging for this scenario?
Thanks and regards,
Peter
Beta Was this translation helpful? Give feedback.
All reactions