Skip to content

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

Merged
DonJayamanne merged 3 commits into
microsoft:masterfrom
DonJayamanne:issue1730ExtensionBuild
May 25, 2018
Merged

Upload extension to the Azure blob even if tests fail in master branch#1749
DonJayamanne merged 3 commits into
microsoft:masterfrom
DonJayamanne:issue1730ExtensionBuild

Conversation

@DonJayamanne
Copy link
Copy Markdown

Fixes #1730

This pull request:

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

@DonJayamanne DonJayamanne requested a review from brettcannon May 24, 2018 22:49
Copy link
Copy Markdown

@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.

Comment thread .travis.yml
fi
after_success:
- if [ $AZURE_STORAGE_ACCOUNT ]; then
- if [[ $AZURE_STORAGE_ACCOUNT && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_PULL_REQUEST" == "false" ]]; then
Copy link
Copy Markdown

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
Copy Markdown
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

Comment thread .travis.yml
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
Copy Markdown

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
Copy Markdown
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