Skip to content
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

Resolve Powershell CORE Issues #180

Merged
merged 2 commits into from
Oct 2, 2018
Merged

Conversation

jasonchester
Copy link
Contributor

@jasonchester jasonchester commented Sep 24, 2018

Bug Fixes

Use the pound / hash sign to indicate which GitHub issues this Pull Request fixes, if applicable.

@PlagueHO


This change is Reviewable

- RU Display (Issue PlagueHO#168)
- Stored procedure debug logging
- Retry logic not working
@codecov
Copy link

codecov bot commented Sep 24, 2018

Codecov Report

Merging #180 into dev will decrease coverage by 3%.
The diff coverage is 20%.

Impacted file tree graph

@@        Coverage Diff         @@
##           dev   #180   +/-   ##
==================================
- Coverage   91%    87%   -4%     
==================================
  Files       12     12           
  Lines      893    896    +3     
==================================
- Hits       815    783   -32     
- Misses      78    113   +35

@PlagueHO
Copy link
Owner

Thanks @jasonchester - much appreciated as always!

I'm just finishing off the new Azure DevOps Release Pipeline (so that this can go out to the Gallery). So I'll review and merge this once the deploy process is working again (I broke it when I moved it to Azure DevOps). Should be solved over the next day or two.

@PlagueHO PlagueHO self-requested a review September 25, 2018 09:12
@PlagueHO PlagueHO self-assigned this Sep 25, 2018
@PlagueHO PlagueHO added the needs review The pull request needs a code review. label Sep 25, 2018
@jasonchester
Copy link
Contributor Author

Sounds good.

If you can validate that I was correct in changing$fatal = $true to $fatal = $false in utils.ps1. I assume it was a bug and not intentional but wanted to make sure. It definitely broke the retry policy on OSX.

Jason

@PlagueHO
Copy link
Owner

Getting onto the review first thing tomorrow! Thanks again @jasonchester

And yes, I think you're right - it does look like $fatal should have been $false! Great spotting!

Copy link
Owner

@PlagueHO PlagueHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good stuff @jasonchester - can you add some entries to the CHANGELOG.MD in the ## Unreleased section detailing the changes?

Reviewed 2 of 2 files at r1.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @jasonchester)


src/lib/utils.ps1, line 574 at r1 (raw file):

                    so determine is we should delay and try again or exit
                #>
                [System.Int32] $retryAfter = ($_.Exception.Response.Headers | Where-Object Key -eq 'x-ms-retry-after-ms').Value[0]

Can you use named parameters for Where-Object? E.g. `Where-Object -Property Key -eq 'x-ms-retry-after-ms')


src/lib/utils.ps1, line 601 at r1 (raw file):

                if($PSEdition -eq 'Core')
                {
                    #https://get-powershellblog.blogspot.com/2017/11/powershell-core-web-cmdlets-in-depth.html#L13

Can you add a space after the #? E.g # https://

Copy link
Owner

@PlagueHO PlagueHO left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm: Thanks @jasonchester - awesome stuff and +++ appreciated. I'll release this week (just finishing the new release pipeline)

Reviewed 2 of 2 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@PlagueHO PlagueHO merged commit 4d588a0 into PlagueHO:dev Oct 2, 2018
@jasonchester jasonchester deleted the Issue-168 branch October 16, 2018 23:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review The pull request needs a code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants