"Deploy a release" step incorrectly interacts with channels

execution

(Chris Camburn) #1

Issue: I’m currently running into an issue using a “Master Project” or “Orchestration Project.” It uses the Deploy a Release step for each project in it’s group, and the deployment condition for every step is set to IfNewer. On projects that use channels, though, I’ve noticed that it will always deploy the release if it is not the most recently deployed release.

Expected behavior: I would expect that when a project has DiscreteChannelRelease set to True (“Treat independently from other channels” in the UI) then it would not re-deploy the release.

Steps to reproduce:

  1. Create a project with multiple channels and the Discrete Channels project setting
  2. Create a release in the secondary channel, and deploy
  3. Create a release in the default channel, and deploy
  4. Create an orchestration project, that contains the “Deploy a release” step, and deployment condition set to “Deploy the release if it has a higher version than the current release in the environment.”
  5. Create a release in the orchestration project, selecting the release in the secondary channel. It will deploy the project, even though the release for that channel is the latest.

Octopus Version: 2018.6.10

I can provide logs if need be.


(Kenneth Bates) #3

Hi Chris,

Thanks for getting in touch! I’m sorry you’re hitting this unexpected behavior here. Unfortunately I haven’t been able to reproduce this issue after following your clear repro steps, however. I’m testing in my local instance which is running 2018.8.7, so it’s likely that it has been fixed between 2018.6.10 and now (perhaps included in this issue). Would you be able/willing to upgrade to see if this fixes the issue for you?

I would also like to confirm I’m reproducing this accurately. I’ve created a child project with two channels and two releases, one release per channel. The release in the secondary channel is version 1.0.1 and in the default channel 1.0.2. I created a release of the orchestration project, selecting the release 1.0.1 (that’s in the secondary channel) of the “child” project and deployed. The result in the log is The project My Web App will not be deployed because the requested release version (1.0.1) is not higher than the currently deployed or queued version (1.0.2).

I’ll also be happy to set up your version to test and attempt to find a workaround. In this case, would you be able to provide the deployment log from the orchestration project to give me the most context?

I hope this helps for the time being, and I look forward to hearing back!

Best regards,

Kenny


(Chris Camburn) #4

Hey Kenny,

I can absolutely do an upgrade to see if the issue resolves itself. Worst case I’m happy to do a dump of all logs and/or a screen share. I don’t want to waste your time if the issue is resolved by an upgrade, though, so I’ll do that tonight and test things out.

-Chris


(Kenneth Bates) #5

Hi Chris,

Thanks for following up! Let me know how the upgrade goes, or if you just have any other questions moving forward. :slight_smile:

Best regards,

Kenny


(Chris Camburn) #6

Hey Kenny,

Apologies for all this, turns out it’s on us. The release we were referencing was created first, but the project uses a custom versioning based on the date, and occasionally appends a hyphen and additional text after it. Somewhere along the way I missed the following in the SemVer 2.0 specs:

Numeric identifiers always have lower precedence than non-numeric identifiers.

Because of that, we had release 1.18.10.2-13.11-DataOnly comes before 1.18.10.2-13.29 as it’s not just comparing numeric info. If you can confirm that precedence is followed in Octopus, we can close this and I will reach out to the product owner to discuss moving to a proper SemVer 2.0 versioning scheme.


(Kenneth Bates) #7

Hi Chris,

Thanks for following up and letting me know you’ve found the reason for this behavior. You’re correct that Octopus follows the SemVer 2 versioning scheme.

Don’t hesitate to reach out if you have any further questions in the future. :slight_smile:

Best regards,

Kenny


(system) #8

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.