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

feat: improve deployment testing #4382

Merged
merged 1 commit into from
Feb 3, 2023
Merged

Conversation

PeterSchafer
Copy link
Contributor

What does this PR do?

Split deployment into the following stages (in preparation for HEAD-57)

  • Pre-release
  • Test Release
  • Release

Test Release now runs on the three main OS (linux, win, macos)

Where should the reviewer start?

.circleci/config.yml

How should this be manually tested?

  • Can't final test is a release
  • A successful run without publishing can be found here

* split deployment into stages (pre-release, release testing, final release)
@@ -10,6 +10,6 @@ echo 'Running "npm install binary-releases/snyk.tgz"...'
npm install $releaseTar

echo 'Validating "snyk" command succeeds...'
./node_modules/snyk/bin/snyk
./node_modules/snyk/bin/snyk -d
Copy link
Contributor

Choose a reason for hiding this comment

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

Is -d safe or could it leak environment variables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Great question, first of all CircleCI or most CI/CD redact the content of Environment Variables in the logs, second, we try to not log sensitive content and especially in this case it should be pretty safe.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The reason I added it is, that it helps us see the changes we are making at the very end before deployment.

@PeterSchafer PeterSchafer merged commit 83eaba1 into master Feb 3, 2023
@PeterSchafer PeterSchafer deleted the feat/HEAD-3_deployment_tests branch February 3, 2023 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants