Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Migrate Recent Fixes from xPSDesiredStateConfiguration Archive Resource - Fixes #126 #130

Merged
merged 6 commits into from
Jan 19, 2019

Conversation

PlagueHO
Copy link
Contributor

@PlagueHO PlagueHO commented Jan 12, 2019

This PR includes the following fixes and improvements:

  • Ported fixes from xPSDesiredStateConfiguration:
    • xArchive
      • Fix end-to-end tests.
      • Update integration tests to meet Pester 4.0.0 standards.
      • Update end-to-end tests to meet Pester 4.0.0 standards.
      • Update unit and integration tests to meet Pester 4.0.0 standards.
      • Wrapped all verbose message parameters with quotes to make identifying
        actual paths possible.
      • Refactored date/time checksum code to improve testability and ensure
        tests can run on machines with localized datetime formats that are not
        US.
      • Fix 'Get-ArchiveEntryLastWriteTime' to return [datetime].
      • Improved verbose logging to make debugging path issues easier.
  • Added .gitattributes file to ensure CRLF settings are configured correctly
    for the repository.
  • Updated '.vscode\settings.json' to refer to AnalyzerSettings.psd1 so that
    custom syntax problems are highlighted in Visual Studio Code.
  • Fixed style guideline violations in CommonResourceHelper.psm1.
  • Updated 'appveyor.yml' to meet more recent standards.
  • Removed OS image version from 'appveyor.yml' to use default image
    (Issue #127.
  • Removed code to install WMF5.1 from 'appveyor.yml' because it is already
    installed in AppVeyor images (Issue #128.
  • Removed .vscode from .gitignore so that Visual Studio code environment
    settings can be committed.

@johlju - sorry about the size of this one, but Archive is quite out of date with current HQRM standards so I had to clean it up. Would you mind reviewing at some point? Although @kwirkykat or @mgreenegit may need to still review and merge.


This change is Reviewable

@codecov-io
Copy link

Codecov Report

Merging #130 into dev will increase coverage by <1%.
The diff coverage is 85%.

Impacted file tree graph

@@         Coverage Diff          @@
##            dev   #130    +/-   ##
====================================
+ Coverage    83%    83%   +<1%     
====================================
  Files        19     19            
  Lines      2755   2760     +5     
  Branches      4      4            
====================================
+ Hits       2300   2305     +5     
  Misses      451    451            
  Partials      4      4

@johlju
Copy link
Contributor

johlju commented Jan 19, 2019

@PlagueHO You should add Fixes #xxx to the PR description as it seems to fix more than one issue?

Copy link
Contributor

@johlju johlju left a comment

Choose a reason for hiding this comment

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

Reviewed 12 of 12 files at r1, 3 of 3 files at r2.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @PlagueHO)


Tests/Unit/MSFT_Archive.Tests.ps1, line 2194 at r2 (raw file):

creation time

last write time?

@johlju
Copy link
Contributor

johlju commented Jan 19, 2019

@PlagueHO Yes, since DSC team supports this module I think @kwirkykat should approve and merge once we see it is ready (passing our review).

@johlju
Copy link
Contributor

johlju commented Jan 19, 2019

@PlagueHO Maybe (in the future) we should split the functional changes and the code clean up/repo maintenance changes so it is easier (faster) for @kwirkykat to review the actual resource(s) functional changes? 🤔

Copy link
Contributor

@johlju johlju left a comment

Choose a reason for hiding this comment

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

:lgtm:

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

@PlagueHO
Copy link
Contributor Author

Thanks @johlju - added the -Fixes for the other issues. We need to include the .github templates into this repo so that it would have prompted me 😁

@PlagueHO PlagueHO merged commit 19433f2 into PowerShell:dev Jan 19, 2019
@PlagueHO PlagueHO deleted the Issue-126 branch January 19, 2019 21:25
@johlju
Copy link
Contributor

johlju commented Jan 19, 2019

Thet are waiting in PR #113. Probably needs a rebase by now. If you review that I can rebase it tomorrow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WMF 5.1 Is Being Installed in AppVeyor For Some Reason Old AppVeyor Image is Being Used
3 participants