Skip to content

Conversation

dphulkar-msft
Copy link
Member

Description

By default both preview and GA binaries go with the same package name "blobfuse2". This means if a customer tries to install the latest version, they may end up installing a preview version. We want all out customers to by default have a GA version and make a concious choice to install preview binary explicitly. To do so we are renaming our package for preview binaries to "blobfuse2-preview".

  • Feature / Bug Fix: (Brief description of the feature or issue being addressed)

  • Related Links:

  • Issues

  • Team thread

  • Documents

  • [Email Subject]

Type of Change

  • Bug fix
  • New feature
  • Documentation update required
  • Code quality improvement
  • Other (describe):

How Has This Been Tested?

Thank you for your contribution to AzCopy!

dphulkar-msft and others added 30 commits November 27, 2024 15:01
Co-authored-by: Gauri Lamunion <[email protected]>
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a change to use different package names for preview vs GA releases of AzCopy. The goal is to prevent customers from accidentally installing preview versions when they intend to install the latest stable release.

  • Updates the version string to include a preview suffix for non-GA builds
  • Modifies package generation to use "azcopy-preview" package name for preview builds
  • Adds functionality to remove specific package versions from Linux repositories

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
packages.csv Removes most Linux distribution entries, likely for testing purposes
common/version.go Changes version from GA format to preview format with tilde notation
build-1es-pipeline.yaml Comments out macOS builds, adds package removal functionality, and implements preview package renaming logic
azurePipelineTemplates/build_linux.yml Adds logic to use "azcopy-preview" package name when version contains "preview"

Comment on lines +1133 to +1135
if [[ $(azcopy_version) == *"preview"* ]]; then
azcopyBinaryName="azcopy-preview"
fi
Copy link
Preview

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

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

The variable $(azcopy_version) should be referenced with proper shell variable syntax. It should be "${azcopy_version}" instead of $(azcopy_version) to avoid command substitution issues.

Suggested change
if [[ $(azcopy_version) == *"preview"* ]]; then
azcopyBinaryName="azcopy-preview"
fi
if [[ "${azcopy_version}" == *"preview"* ]]; then
azcopyBinaryName="azcopy-preview"
fi

Copilot uses AI. Check for mistakes.

fpm -s dir -t deb -n azcopy -C pkgDir/ \
packageName="azcopy"
# If the version string has preview in it then packageName shall be "azcopy-preview"
if [[ `$(azcopy_version)` == *"preview"* ]]; then
Copy link
Preview

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

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

The variable $(azcopy_version) should be referenced with proper shell variable syntax. It should be "${azcopy_version}" instead of $(azcopy_version) to avoid command substitution issues.

Suggested change
if [[ `$(azcopy_version)` == *"preview"* ]]; then
if [[ "${azcopy_version}" == *"preview"* ]]; then

Copilot uses AI. Check for mistakes.

Comment on lines +77 to +80
if [[ `$(azcopy_version)` == *"preview"* ]]; then
echo "Preview binary package created"
packageName="azcopy-preview"
fi
Copy link
Preview

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

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

The variable $(azcopy_version) should be referenced with proper shell variable syntax. It should be "${azcopy_version}" instead of $(azcopy_version) to avoid command substitution issues.

Suggested change
if [[ `$(azcopy_version)` == *"preview"* ]]; then
echo "Preview binary package created"
packageName="azcopy-preview"
fi
if [[ "$(azcopy_version)" == *"preview"* ]]; then
echo "Preview binary package created"
packageName="azcopy-preview"
fi

Copilot uses AI. Check for mistakes.

Comment on lines 1113 to 1115
if [[ "$arm64file" == *preview* ]]; then
cp signed/azcopy*.x86_64.deb signed/azcopy-preview-*.x86_64.deb
fi
Copy link
Preview

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

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

This copy command uses incorrect wildcard patterns. The source pattern azcopy*.x86_64.deb will not match files that start with azcopy-preview-, and the destination pattern should not contain wildcards in a cp command.

Suggested change
if [[ "$arm64file" == *preview* ]]; then
cp signed/azcopy*.x86_64.deb signed/azcopy-preview-*.x86_64.deb
fi
if [[ "$arm64file" == *preview* ]]; then
for f in signed/azcopy*.x86_64.deb; do
dest="signed/azcopy-preview-${f#signed/azcopy}"
cp "$f" "$dest"
done
fi

Copilot uses AI. Check for mistakes.

@@ -1100,6 +1109,11 @@ extends:
mv -v "$(signed)/mariner/azcopy"*.arm64.rpm "$marinerArmFileName"
mv -v "$(signed)/mariner/azcopy"*.x86_64.rpm "$marinerAmdFileName"

# if file name conatins preview in it. Create preview files for preview upload
Copy link
Preview

Copilot AI Aug 4, 2025

Choose a reason for hiding this comment

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

Spelling error in comment: 'conatins' should be 'contains'.

Suggested change
# if file name conatins preview in it. Create preview files for preview upload
# if file name contains preview in it. Create preview files for preview upload

Copilot uses AI. Check for mistakes.

@dphulkar-msft dphulkar-msft marked this pull request as draft August 6, 2025 09:59
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.

3 participants