OctopusDeploy / Issues

| Public | Bug reports and known issues for Octopus Deploy and all related tools
https://octopus.com
162 stars 20 forks source link

Python script file executions adds extra string onto end of parameters #8522

Open SeanStanway-Octopus opened 11 months ago

SeanStanway-Octopus commented 11 months ago

Severity

1 customer reported, can recreate in latest consistently

Version

2024.1.3649

Latest Version

None

What happened?

Setting up a script step to use a package with script parameters causes a failure if the script is expecting certain arguments. This is due to an extra string (e.g. 232F3D7C708D7E68559E227B5B28EE47) being appended to the end of the file run.

Reproduction

  1. Create a package that contains a python file with the following: import sys print (sys.argv[1:]);
  2. Create a process with a Run a Script step
  3. Reference the created package above and put in a string for the script parameters (e.g. "testing").
  4. Run the deployment and observe there is an extra string being added onto the arguments.

Error and Stacktrace

Extracting package 'C:\Octopus\Tentacle\Files\pythonscript@S0.0.3@65B8681A75B8B54ABBCF7558084D8EC9.zip' to 'C:\Octopus\Tentacle\Work\ServerTasks-2579610-3d465d4d-b758-4199-96a1-aff47ed2722a'
Extracting package 'C:\Octopus\Tentacle\Files\pythonscript@S0.0.3@65B8681A75B8B54ABBCF7558084D8EC9.zip' to 'C:\Octopus\Tentacle\Work\ServerTasks-2579610-3d465d4d-b758-4199-96a1-aff47ed2722a\pythonscript'
['test', '232F3D7C708D7E68559E227B5B28EE47']

More Information

This could be a string similar to when we create worker folders, something unique to avoid overwrites, but it's being included in the wrong position.

Workaround

No current known workaround

michelle-luana commented 6 months ago

The Octopus engineering team has reviewed this issue.
After careful consideration, we’ve classed this low priority. This means we won’t work on it in the near future. We prioritize issues based on the number of people affected, the impact type, and available workarounds. If you’ve encountered this issue and haven’t informed our support team, please email support@octopus.com. Knowing how many people this issue affects helps us determine its priority.