Skip to content
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

fix(release): added beta check and dummy version logics #6470

Merged
merged 4 commits into from
Feb 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions buildspec/release/70checkmarketplace.yml
Original file line number Diff line number Diff line change
@@ -22,27 +22,32 @@ phases:
build:
commands:
- VERSION=$(node -e "console.log(require('./packages/${TARGET_EXTENSION}/package.json').version);")
# get extension name
# get extension name, if in beta, use some hard-coded recent version
- |
if [ "${TARGET_EXTENSION}" = "amazonq" ]; then
extension_name="amazonwebservices.amazon-q-vscode"
[ "$STAGE" != "prod" ] && VERSION="1.43.0" || true
elif [ "${TARGET_EXTENSION}" = "toolkit" ]; then
extension_name="amazonwebservices.aws-toolkit-vscode"
[ "$STAGE" != "prod" ] && VERSION="3.42.0" || true
else
echo checkmarketplace: "Unknown TARGET_EXTENSION: ${TARGET_EXTENSION}"
exit 1
fi
# keep reinstalling the extension until the desired version is updated. Otherwise fail on codebuild timeout (1 hour).
if [ "$STAGE" != "prod" ]; then
echo "checkmarketplace: Non-production stage detected. Installing hardcoded version '${VERSION}'."
fi
# keep installing the desired extension version until successful. Otherwise fail on codebuild timeout (1 hour).
- |
while true; do
code --uninstall-extension "${extension_name}" --no-sandbox --user-data-dir /tmp/vscode
code --install-extension ${extension_name} --no-sandbox --user-data-dir /tmp/vscode
code --install-extension "${extension_name}@${VERSION}" --no-sandbox --user-data-dir /tmp/vscode || true
cur_version=$(code --list-extensions --show-versions --no-sandbox --user-data-dir /tmp/vscode | grep ${extension_name} | cut -d'@' -f2)
if [ "${cur_version}" = "${VERSION}" ]; then
echo "checkmarketplace: Extension ${extension_name} is updated to version '${cur_version}.'"
break
else
echo "checkmarketplace: Current version '${cur_version}' does not match expected version '${VERSION}'. Retrying..."
echo "checkmarketplace: Expected extension version '${VERSION}' has not been successfully installed. Retrying..."
fi
sleep 120 # Wait for 2 minutes before retrying
done
18 changes: 18 additions & 0 deletions packages/amazonq/.changes/1.45.0-SNAPSHOT.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"date": "2025-01-30",
"version": "1.45.0-SNAPSHOT",
"entries": [
{
"type": "Bug Fix",
"description": "Allow AB users with an overridden customization to go back to the default customization"
},
{
"type": "Bug Fix",
"description": "For security reasons, disabled auto linkify for link texts coming in markdown other than [TEXT](URL) format"
},
{
"type": "Feature",
"description": "Add setting to allow Q /dev to run code and test commands"
}
]
}