Skip to content

[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

Draft
wants to merge 29 commits into
base: master
Choose a base branch
from
Draft

[invalid] Test uploads with azcopy #45461

wants to merge 29 commits into from

Conversation

dg0yt
Copy link
Contributor

@dg0yt dg0yt commented May 11, 2025

@dg0yt dg0yt force-pushed the azcopy branch 4 times, most recently from dc18f29 to 79f4018 Compare May 11, 2025 11:47
@dg0yt dg0yt force-pushed the azcopy branch 2 times, most recently from 0739d00 to 1648001 Compare May 11, 2025 13:20
@dg0yt dg0yt force-pushed the azcopy branch 3 times, most recently from f05b00a to d21f869 Compare May 12, 2025 19:13
@dg0yt
Copy link
Contributor Author

dg0yt commented May 13, 2025

So, osx does not use pristine images...

exit $lastLastExitCode
}
$azcopy
$env:PATH += [IO.Path]::PathSeparator + ( Split-Path -Parent ( $azcopy | Select-Object -Last 1 ) )
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dg0yt
Copy link
Contributor Author

dg0yt commented May 13, 2025

So, osx does not use pristine images...

It really does not: It uninstalls 368 packages which it didn't install in the same CI run in https://dev.azure.com/vcpkg/public/_build/results?buildId=115637&view=logs&j=ac0731cb-f2f9-5764-2e0a-a6fa8ebb4a08&t=1f8aab00-85d2-59d6-ec59-5750d1aa4b81
CC @BillyONeal

@dg0yt
Copy link
Contributor Author

dg0yt commented Jul 3, 2025

for now we should add azcopy to the image.

@BillyONeal Will you update the images? Windows patch day is next week, but there isn't only Windows.
In addition, two environment variables must be set for azcopy to work, at least on some platforms.

@dg0yt
Copy link
Contributor Author

dg0yt commented Jul 21, 2025

@BillyONeal @vicroms

  • On windows, azcopy is not in PATH:
    The term 'azcopy' is not recognized as a name of a cmdlet, function, script file, or executable program.
  • On linux, azcopy struggles with the environment:
    Problem making .azcopy directory. Try setting AZCOPY_LOG_LOCATION env variable. mkdir /.azcopy: permission denied
  • On osx, it runs happily.
    azcopy version 10.29.1

@dg0yt
Copy link
Contributor Author

dg0yt commented Aug 5, 2025

Agent name: 'CPPMAC-ARM64-03'
...
./scripts/azure-pipelines/bootstrap-from-source.sh: line 8: /opt/homebrew/bin/cmake: cannot execute binary file

@vicroms
Copy link
Member

vicroms commented Aug 5, 2025

@BillyONeal

Agent name: 'CPPMAC-ARM64-03'
...
./scripts/azure-pipelines/bootstrap-from-source.sh: line 8: /opt/homebrew/bin/cmake: cannot execute binary file

The same thing happened to me on a different machine CPPMAC-ARM64-02

@dg0yt
Copy link
Contributor Author

dg0yt commented Aug 5, 2025

Apart from that, this e2e test (upload, download) seems to be happy.

@dg0yt
Copy link
Contributor Author

dg0yt commented Aug 5, 2025

No, x64-osx fails to upload:

warning: error: azcopy failed with exit code: (1).

@vicroms
Copy link
Member

vicroms commented Aug 5, 2025

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

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

Successfully merging this pull request may close these issues.

5 participants