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

Upload extension to the Azure blob even if tests fail in master branch #1749

Merged
merged 3 commits into from
May 25, 2018

Conversation

DonJayamanne
Copy link

Fixes #1730

This pull request:

  • Has a title summarizes what is changing
  • Includes a news entry file (remember to thank yourself!)

Copy link

@d3r3kk d3r3kk left a comment

Choose a reason for hiding this comment

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

I imagine this is desired behaviours but I wanted to ask some questions surrounding the automation involved.

@@ -115,9 +115,8 @@ script:
python3 -m pip install --upgrade -r news/requirements.txt;
python3 news/announce.py --dry-run;
fi
after_success:
- if [ $AZURE_STORAGE_ACCOUNT ]; then
- if [[ $AZURE_STORAGE_ACCOUNT && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
Copy link

Choose a reason for hiding this comment

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

What if the build fails altogether? As in, what if compilation fails. Would this be possible? What happens then?

Copy link
Author

Choose a reason for hiding this comment

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

If compilation fails, then extension is not generated, thus upload fails, i.e. all is good

yarn run clean;
vsce package;
azure storage blob upload --container $AZURE_STORAGE_CONTAINER --blob ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --file python*.vsix --quiet;
azure storage blob upload python*.vsix $AZURE_STORAGE_CONTAINER ms-python-insiders.vsix --account-name $AZURE_STORAGE_ACCOUNT --account-key $AZURE_STORAGE_ACCESS_KEY --quiet;
Copy link

Choose a reason for hiding this comment

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

Is there only one vsix with this name pattern? Or are we trying to upload multiples?

Copy link
Author

Choose a reason for hiding this comment

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

Only one, but the name changes with each version.

@DonJayamanne DonJayamanne merged commit 0420bd4 into microsoft:master May 25, 2018
@DonJayamanne DonJayamanne deleted the issue1730ExtensionBuild branch June 20, 2018 03:13
@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build development version of extension and upload to azure blob even if tests fail
3 participants