Skip to content

Add tests to report when package references are out of date - #7661

Merged
Travis Plunk (TravisEz13) merged 9 commits into
PowerShell:masterfrom
TravisEz13:improve_new_package_function
Aug 31, 2018
Merged

Travis Plunk (TravisEz13) merged 9 commits into
PowerShell:masterfrom
TravisEz13:improve_new_package_function

Conversation

@TravisEz13

@TravisEz13 Travis Plunk (TravisEz13) commented Aug 30, 2018 •

Copy link
Copy Markdown
Member

PR Summary

Add tests to report when package references are out of date

  • Also, update the packaging script to generate updated files.wxs

PR Checklist

Comment thread tools/releaseTools.psm1 Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Seems the message very short to understand in log where it come from.

Comment thread test/common/package/package.tests.ps1 Outdated

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add new line.

Comment thread tools/releaseTools.psm1 Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

MMI package is on nuget.org.. we should check for that too.

https://www.nuget.org/packages/Microsoft.Management.Infrastructure/

Comment thread tools/releaseTools.psm1 Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we use semantic version instead, would make the checks much simpler.

$NewVersion = [System.Management.Automation.SemanticVersion]"6.1.0-preview.4"
$Version = [System.Management.Automation.SemanticVersion]"6.0.4"

if($NewVersion.PreReleaseLabel) { return false } else { return $NewVersion -gt $Version } 
…..

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I had an offline discussion with Aditya Patwardhan (@adityapatwardhan) . I'll update the synopsis on why the current logic is correct.

Comment thread tools/releaseTools.psm1 Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Typo tht -> that

@TravisEz13

Copy link
Copy Markdown
Member Author

Aditya Patwardhan (@adityapatwardhan) Ilya (@iSazonov) I believe I have addressed your feedback

@adityapatwardhan

Copy link
Copy Markdown
Member

Travis Plunk (@TravisEz13) Please have a look at wix packaging error.

@iSazonov Ilya (iSazonov) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Should we update our Contribution guide?

@TravisEz13
Travis Plunk (TravisEz13) merged commit e2a45f0 into PowerShell:master Aug 31, 2018
@TravisEz13
Travis Plunk (TravisEz13) deleted the improve_new_package_function branch August 31, 2018 19:51
@TravisEz13

Copy link
Copy Markdown
Member Author

This PR is difficult enough to keep up to date. Could you make a PR to update the contribution guide?

@iSazonov

Copy link
Copy Markdown
Collaborator

Done #7695.

Travis Plunk (TravisEz13) added a commit that referenced this pull request Sep 5, 2018
Add tests to report when package references are out of date
  - Also, update the packaging script to generate updated `files.wxs`
@iSazonov Ilya (iSazonov) mentioned this pull request Sep 6, 2018
7 of 11 tasks
@TravisEz13 Travis Plunk (TravisEz13) added this to the v6.1.0 milestone Sep 7, 2018
@felixfbecker

Copy link
Copy Markdown
Contributor

Does this make the build fail if a new version is released, i.e. irreproducable?

@TravisEz13

Copy link
Copy Markdown
Member Author

First, let us start with why this test exists. We expect that during development that the latest packages are being used. Unless there is a good reason, not to, at which time we will adjust the tests, if needed.
During development, we expect the latest revision to a package to be used. Comments in the code indicate to disable one of the tests until we have a better mechanism for this.

That is two questions combined into one:

  1. Does this make the build fail if a new version is released?

    • Yes
  2. Is the failure irreproducible?

    • Under certain circumstances the failure would not be reproducible, but that is true for many tests.
      It would not be reproducible if the package owner removed the new package, but the tests logs what the new version was.
      So, this failure would be diagnosable.

The maintainers are happy to fix this issue, if the issue arises in your PR.

Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
…ll#7661)

Add tests to report when package references are out of date
  - Also, update the packaging script to generate updated `files.wxs`
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
…ll#7661)

Add tests to report when package references are out of date
  - Also, update the packaging script to generate updated `files.wxs`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants