kestra-io / plugin-scripts

https://kestra.io/plugins/
Apache License 2.0
8 stars 6 forks source link

Powershell process outputFiles not detecting files after updating to 0.18.2 from 0.17. #170

Open adam133 opened 3 weeks ago

adam133 commented 3 weeks ago

Expected Behavior

Thread from Slack: https://kestra-io.slack.com/archives/C03FQKXRK3K/p1724185082477709

0.17 version of flow:

  - id: "run_query"
    type: "io.kestra.plugin.scripts.powershell.Commands"
    failFast: false
    runner: PROCESS
    interpreter: [powershell]
    commands: 
      - "<< a powershell command that generates *.tab files in the ./ directory>>"
    outputFiles:
    - "*.tab"

0.18.2:

  - id: "run_query"
    type: "io.kestra.plugin.scripts.powershell.Commands"
    failFast: false
    taskRunner: 
      type: io.kestra.plugin.core.runner.Process
    interpreter: [powershell]
    targetOS: WINDOWS
    namespaceFiles: 
      enabled: false
    commands: 
      - "<< a powershell command that generates *.tab files in the ./ directory>>"
    outputFiles:
    - "*.tab"

outputFiles should be detected same as 0.17

Actual Behaviour

Task doesn't capture outputs it used to capture:

2024-08-20 16:11:17.539 Captured 0 output(s).

Steps To Reproduce

No response

Environment Information

Example flow

No response

loicmathieu commented 2 weeks ago

~I think this is the same root cause as https://github.com/kestra-io/kestra/issues/4759~

adam133 commented 2 weeks ago

FYI - I've tried 18.4 as well now, same result