-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Octopus deploy trace always marked failures #2428
Merged
matthid
merged 10 commits into
fsprojects:release/next
from
ids-pfinn:octopus-deploy-trance-always-marked-failures
Nov 29, 2019
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0515d2c
Release 5.18.0 (#2404)
matthid 71f4ef0
Release 5.18.1 (#2410)
matthid b8b7cc4
Release 5.18.2 (#2416)
matthid cb792f4
Release 5.18.3
matthid 52ad422
return octo.exe result and marks trace success correctly
ids-pfinn 9133d1b
adds functions to return exit code
ids-pfinn 1b086c0
readd parameters instead of partial application
ids-pfinn 22e81a2
Using CreateProcess instead of execSimple
ids-pfinn fb882b7
Adds test and moves exception to no exit code flow
ids-pfinn 9d450cc
Incorrect spelling. handel -> handle
ids-pfinn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
module Fake.Tools.Testing.Octo | ||
|
||
open Expecto | ||
|
||
[<Tests>] | ||
let defaultTests = | ||
testList "Fake.Tools.Octo Tests" [ | ||
testCase "Create Release Default" <| fun _ -> | ||
let expectedCommand = [ | ||
"create-release" | ||
] | ||
let actual = | ||
(Fake.Tools.Octo.releaseOptions, None) | ||
|> Fake.Tools.Octo.Command.CreateRelease | ||
|> Fake.Tools.Octo.commandLine | ||
Expect.hasLength actual expectedCommand.Length "With default options only expect the command" | ||
Expect.sequenceEqual actual expectedCommand "CreateRelease command should be the create-release string" | ||
|
||
testCase "Create Release Fully Filled Out" <| fun _ -> | ||
let expectedCommand = [ | ||
"create-release" | ||
"--project=Project-1" | ||
"--version=Version-1" | ||
"--packageversion=PackageVersion-1" | ||
" --package=Package-1 --package=Package-2" | ||
"--packagesfolder=PackageFolder-1" | ||
"--releasenotes=ReleaseNotes-1" | ||
"--releasenotesfile=ReleaseNotesFile-1" | ||
" --ignoreExisting" | ||
"--channel=Channel-1" | ||
" --ignorechannelrules" | ||
] | ||
let releaseOptions = { | ||
Fake.Tools.Octo.releaseOptions with | ||
Project="Project-1" | ||
Version="Version-1" | ||
PackageVersion="PackageVersion-1" | ||
Packages=["Package-1"; "Package-2"] | ||
PackagesFolder=Some "PackageFolder-1" | ||
ReleaseNotes="ReleaseNotes-1" | ||
ReleaseNotesFile="ReleaseNotesFile-1" | ||
IgnoreExisting=true | ||
Channel=Some "Channel-1" | ||
Common=Fake.Tools.Octo.commonOptions | ||
IgnoreChannelRules=true | ||
} | ||
let actual = | ||
(releaseOptions, None) | ||
|> Fake.Tools.Octo.Command.CreateRelease | ||
|> Fake.Tools.Octo.commandLine | ||
Expect.hasLength actual expectedCommand.Length "With default options only expect the command" | ||
Expect.sequenceEqual actual expectedCommand "CreateRelease command should be the create-release string" | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure this is doing what you intended? From a quick look it looks like this either returns
0
or throws an exception (without actually testing it)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hadn't tested that yet but looking at it again after the weekend, yes this seems wrong.