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
PSVersionInfo test failing due to SMA version #15607
Comments
Yeah I just noticed this. So where's the 8 coming from? |
This comment has been minimized.
This comment has been minimized.
From ci.psm: function Get-ReleaseTag
{
$metaDataPath = Join-Path -Path $PSScriptRoot -ChildPath 'metadata.json'
$metaData = Get-Content $metaDataPath | ConvertFrom-Json
$releaseTag = $metadata.NextReleaseTag
if($env:BUILD_BUILID)
{
$releaseTag = $releaseTag.split('.')[0..2] -join '.'
$releaseTag = $releaseTag + '.' + $env:BUILD_BUILID
}
return $releaseTag
} NextReleaseTag is v7.2.0-preview.8" |
Oh, I wonder how this works currently and tests are passed if the env name should be BUILD_BUILDID. Came from #8822. |
It turned out that ci.psm1 always assigns it directly to dotnet and the code under |
@TravisEz13 @adityapatwardhan Friendly ping. This blocks #15603 |
I don't see a clear action item expressed. |
@TravisEz13 I don't understand your comment. I guess |
I compared builds local, CI and release and I am at a loss. We always put Product version including GitCommitId on all files in all builds. It is right. When we discussed adding a GitCommitId to the PSVersionTable, we found it important to inform users what the last commit was for this build. And we lost it. It should be in the Release build and CI builds too. Perhaps this is a consequence of how the release process is going. There is a related problem here. No community can release a version similar MSFT since nobody knows which commits were backported (specially in patches) and no public release branches exist - it breaks the open source nature of the project. /cc @SteveL-MSFT @TravisEz13 @adityapatwardhan for review. Update: How could I build 7.2.1 with security fix for an community distribution? |
This issue has not had any activity in 6 months, if this is a bug please try to reproduce on the latest version of PowerShell and reopen a new issue and reference this issue if this is still a blocker for you. |
This issue has been marked as "No Activity" as there has been no activity for 6 months. It has been closed for housekeeping purposes. |
It looks like a PSVersionTable test is failing in CI, possibly because of a change to the version of System.Management.Automation.dll:
PowerShell/test/powershell/Host/PSVersionTable.Tests.ps1
Lines 6 to 24 in 945a232
The text was updated successfully, but these errors were encountered: