-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Fixing nightly run smoke test #17791
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,6 @@ jobs: | |
displayName: Install dev-tool | ||
|
||
- download: current | ||
artifact: ${{parameters.ArtifactName}} | ||
- pwsh: | | ||
$(Build.SourcesDirectory)/eng/common/scripts/Import-AzModules.ps1 | ||
|
||
|
@@ -141,17 +140,6 @@ jobs: | |
$packageOverrides = @() | ||
$packageOverrides += (dir env: | Where-Object { $_.Name.StartsWith("SMOKE_PACKAGE_") }).Value | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we ever end up setting any SMOKE_PACKAGE_ override any more? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we remove this we should also clean up the setting of the SMOKE_PACKAGE_ env variables below. |
||
|
||
$packageArtifact = Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{parameters.Artifact.name}}/*.tgz | ||
if ($packageArtifact.name -notmatch "${{parameters.Artifact.name}}") { | ||
Write-Error "Package name mismatch: expecting ${{parameters.Artifact.name}}, found $packageArtifact.name" | ||
exit 1 | ||
} | ||
if ($packageArtifact.count -ne 1) { | ||
Write-Error "Got $packageArtifact.count packages, expecting 1." | ||
exit 1 | ||
} | ||
$result = $(System.DefaultWorkingDirectory)/eng/scripts/get-npm-tags.ps1 -packageArtifact $packageArtifact -workingDirectory $(System.DefaultWorkingDirectory)/temp | ||
|
||
if ([System.Convert]::ToBoolean("${{ parameters.Daily }}")) { | ||
./Initialize-SmokeTests.ps1 ` | ||
-CI ` | ||
|
@@ -161,6 +149,17 @@ jobs: | |
@subscriptionConfiguration ` | ||
-AdditionalParameters $(ArmTemplateParameters) | ||
} else { | ||
$packageArtifact = Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{parameters.Artifact.name}}/*.tgz | ||
if ($packageArtifact.name -notmatch "${{parameters.Artifact.name}}") { | ||
Write-Error "Package name mismatch: expecting ${{parameters.Artifact.name}}, found $packageArtifact.name" | ||
exit 1 | ||
} | ||
if ($packageArtifact.count -ne 1) { | ||
Write-Error "Got $packageArtifact.count packages, expecting 1." | ||
exit 1 | ||
} | ||
$result = $(System.DefaultWorkingDirectory)/eng/scripts/get-npm-tags.ps1 -packageArtifact $packageArtifact -workingDirectory $(System.DefaultWorkingDirectory)/temp | ||
|
||
./Initialize-SmokeTests.ps1 ` | ||
-CI ` | ||
-Verbose ` | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -140,6 +140,7 @@ | |
], | ||
"requiredResources": { | ||
"Azure Search Documents instance": "https://docs.microsoft.com/azure/search/search-create-service-portal" | ||
} | ||
}, | ||
"skipFolder": true | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. skip doesn't seem to handle export const variables well. Below is the pipeline run where "export const" still errored out despite the file being added to skip. Therefore using skipFolder for now. Pipeline: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1108822&view=logs&j=8a044361-f13b-57ee-1142-5d5c4f6a8fd2&t=69a37eb1-ba53-5cbe-d4c5-97ba05de502b&l=412 |
||
} | ||
} |
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.
This means it will download all the artifacts. Is that the intention?
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.
Yeah, because for the nightly run, there will be no ArtifactName being passed in and we'll have to grab the entire thing
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.
for the daily I assume we don't need this download at all so perhaps we should condition it out for those jobs instead?
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.
Not that we have the condition we probably should scope the the artifactName again.