-
Notifications
You must be signed in to change notification settings - Fork 7.2k
[invalid] Test uploads with azcopy #45461
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
Closed
Closed
Changes from 5 commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
17f12a7
[invalid] Test uploads with azcopy
dg0yt 35b7dff
Test vcpkg without azcopy capability
dg0yt 347f4a6
Revert "Test vcpkg without azcopy capability"
dg0yt d038528
WIP
dg0yt c178e54
Use vcpkg fetch
dg0yt 181c48b
Fixup
dg0yt 928c0dd
Update `azcopy` to `10.29.1` (vcpkg-tools.json)
xavier2k6 fdabaf0
Merge remote-tracking branch 'origin/master' into azcopy
dg0yt 7454d40
Merge branch 'vcpkg_azcopy' of https://github.com/xavier2k6/vcpkg int…
dg0yt b4c3d59
Merge remote-tracking branch 'origin/master' into azcopy
dg0yt 9d7d55b
Use default tool
dg0yt 129a745
Skip fetching azcopy
dg0yt a1e454c
Test
dg0yt 49aa1ba
WIP
dg0yt 6e9ff62
Use azcopy for binary caching
vicroms 764e78e
Test with zlib
vicroms 1c2eb5a
Set azcopy log and plan location
vicroms 6707c0e
Use test port
vicroms 26056ad
Trigger CI
vicroms 14255c9
Trigger CI
vicroms e7e7d3e
Downgrade to 10.28.0
vicroms 2e1709b
Use azcopy-sas for all platforms
vicroms 7e80bb1
Merge branch 'azcopy-test' of https://github.com/vicroms/vcpkg into a…
dg0yt a5d6661
Revert vcpkg-ci-boost
dg0yt ebcd230
WIP
dg0yt 83a98a9
Update scripts/azure-pipelines/test-modified-ports.ps1
vicroms 0978f5f
Publish azcopy logs
vicroms 281f565
Merge branch 'azcopy' of https://github.com/dg0yt/vcpkg into azcopy
vicroms b5c2319
Publish azcopy logs
vicroms 936622d
Update scripts/azure-pipelines/azure-pipelines.yml
dg0yt f922931
Restore azcopy 10.29.1
dg0yt b1ab207
Update azcopy to 10.30.0
dg0yt 3876dba
Trace
dg0yt eac5960
Merge branch 'microsoft:master' into azcopy
dg0yt d96939e
Limit azcopy buffer and concurrency
dg0yt 09658d6
Apply suggestions from code review
dg0yt a6c358f
Merge branch 'microsoft:master' into azcopy
dg0yt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -128,6 +128,59 @@ if ($Triplet -eq 'x64-windows-release') { | |
| $tripletArg = "--triplet=$Triplet" | ||
| } | ||
|
|
||
| # Test uploads with azcopy | ||
| # Using portable binaries from https://github.com/Azure/azure-storage-azcopy/releases, linked on | ||
| # https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10?tabs=dnf#download-the-azcopy-portable-binary | ||
| $azcopy = $( & $vcpkgExe fetch azcopy $cachingArgs ) | ||
| $lastLastExitCode = $LASTEXITCODE | ||
| if ($lastLastExitCode -ne 0) | ||
| { | ||
| Write-Error 'Cannot fetch azcopy.' | ||
| exit $lastLastExitCode | ||
| } | ||
| $azcopy | ||
| $env:PATH += [IO.Path]::PathSeparator + ( Split-Path -Parent ( $azcopy | Select-Object -Last 1 ) ) | ||
| $env:AZCOPY_LOG_LOCATION = Join-Path $ArtifactStagingDirectory 'azcopy-logs' | ||
| $env:AZCOPY_JOB_PLAN_LOCATION = Join-Path $ArtifactStagingDirectory 'azcopy-plans' | ||
|
||
| & azcopy --version | ||
| $lastLastExitCode = $LASTEXITCODE | ||
| if ($lastLastExitCode -ne 0) | ||
| { | ||
| Write-Error 'Cannot run azcopy.' | ||
| exit $lastLastExitCode | ||
| } | ||
| # Build large artifacts with unique ABI hashes | ||
| Get-Date | Out-File "scripts/manual-tests/azcopy/test-upload-artifacts/mutable" | ||
| # 3 GB < single max write (5 GB) < 6 GB, in files of 1.5 GB random data | ||
| $data = New-Object byte[] 1.5GB | ||
| (New-Object System.Random).NextBytes($data) | ||
| [System.IO.File]::WriteAllBytes("scripts/manual-tests/azcopy/core-1.dat", $data) | ||
| (New-Object System.Random).NextBytes($data) | ||
| [System.IO.File]::WriteAllBytes("scripts/manual-tests/azcopy/core-2.dat", $data) | ||
| (New-Object System.Random).NextBytes($data) | ||
| [System.IO.File]::WriteAllBytes("scripts/manual-tests/azcopy/large-1.dat", $data) | ||
| (New-Object System.Random).NextBytes($data) | ||
| [System.IO.File]::WriteAllBytes("scripts/manual-tests/azcopy/large-2.dat", $data) | ||
| Get-ChildItem -File scripts/manual-tests/azcopy | ||
| # Build and upload [core], [core,large] | ||
| $env:VCPKG_DEFAULT_BINARY_CACHE = Join-Path $WorkingRoot 'archives-azcopy' | ||
| New-Item -Type Directory -Path $env:VCPKG_DEFAULT_BINARY_CACHE | ||
| & $vcpkgExe x-test-features test-upload-artifacts --overlay-ports=scripts/manual-tests/azcopy $tripletArg @commonArgs @cachingArgs | ||
| $lastLastExitCode = $LASTEXITCODE | ||
| $env:VCPKG_DEFAULT_BINARY_CACHE = $null | ||
| if ($lastLastExitCode -eq 0) | ||
| { | ||
| # Try restore from cache | ||
| & $vcpkgExe remove test-upload-artifacts $tripletArg @commonArgs @cachingArgs | ||
| $xunitFile = Join-Path $ArtifactStagingDirectory "$Triplet-results.xml" | ||
| $xunitArg = "--x-xunit=$xunitFile" | ||
| & $vcpkgExe install --only-binarycaching "test-upload-artifacts[*]" --overlay-ports=scripts/manual-tests/azcopy $tripletArg $xunitArg @commonArgs @cachingArgs | ||
| $lastLastExitCode = $LASTEXITCODE | ||
| Write-Host "##vso[task.setvariable variable=XML_RESULTS_FILE]$xunitFile" | ||
| } | ||
| Write-Host "##vso[task.setvariable variable=FAILURE_LOGS_EMPTY]$true" | ||
| exit $lastLastExitCode | ||
|
|
||
| $failureLogs = Join-Path $ArtifactStagingDirectory 'failure-logs' | ||
| $failureLogsArg = "--failure-logs=$failureLogs" | ||
| $knownFailuresFromArgs = @() | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| placeholder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| placeholder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| placeholder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| placeholder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| placeholder |
7 changes: 7 additions & 0 deletions
7
scripts/manual-tests/azcopy/test-upload-artifacts/portfile.cmake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
|
|
||
| file(INSTALL "${CURRENT_PORT_DIR}/mutable" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
| foreach(name IN LISTS FEATURES) | ||
| file(GLOB blobs "${CURRENT_PORT_DIR}/../${name}-*.dat") | ||
| file(INSTALL ${blobs} DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
| endforeach() |
15 changes: 15 additions & 0 deletions
15
scripts/manual-tests/azcopy/test-upload-artifacts/vcpkg.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "name": "test-upload-artifacts", | ||
| "version-string": "ci", | ||
| "description": [ | ||
| "Tests uploading artifacts of varying size.", | ||
| "Write suitable amounts of random data to the datafiles before installing the port." | ||
| ], | ||
| "homepage": "https://github.com/microsoft/vcpkg", | ||
| "license": "MIT", | ||
| "features": { | ||
| "large" : { | ||
| "description": "Install large.dat" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Select-Object -Last 1is for https://github.com/microsoft/vcpkg/pull/43309/files#r1952400952.