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

installer/windows: installer automated testing #3558

Open
wants to merge 47 commits into
base: main
Choose a base branch
from

Conversation

bryanchriswhite
Copy link
Contributor

@bryanchriswhite bryanchriswhite commented Nov 13, 2019

What: Test installation of the windows installer. The installer is expected to be built by the test environment prior to running the test and its path must be specified with the -msi flag.

Why: V3-3226

Please describe the tests:

  • TestInstaller_Config: asserts that the config.yaml is populated according to the properties used during installation.
  • TestUpgrade_Config: asserts that when upgrading from one version to another the config.yaml is unchanged.
  • TestService_StopStart: asserts that no errors occur when stopping/starting the installed services.

Please describe the performance impact: N/A

Code Review Checklist (to be filled out by reviewer)

  • NEW: Are there any Satellite database migrations? Are they forwards and backwards compatible?
  • Does the PR describe what changes are being made?
  • Does the PR describe why the changes are being made?
  • Does the code follow our style guide?
  • Does the code follow our testing guide?
  • Is the PR appropriately sized? (If it could be broken into smaller PRs it should be)
  • Does the new code have enough tests? (every PR should have tests or justification otherwise. Bug-fix PRs especially)
  • Does the new code have enough documentation that answers "how do I use it?" and "what does it do?"? (both source documentation and higher level, diagrams?)
  • Does any documentation need updating?
  • Do the database access patterns make sense?

@bryanchriswhite bryanchriswhite added the WIP Work In Progress label Nov 13, 2019
@cla-bot cla-bot bot added the cla-signed label Nov 13, 2019
@bryanchriswhite bryanchriswhite changed the base branch from bryan/installer-automation to master November 15, 2019 11:39
@bryanchriswhite bryanchriswhite force-pushed the bryan/installer-testing branch 2 times, most recently from f05bf30 to 7762e36 Compare November 25, 2019 11:50
* storj/master: (63 commits)
  web/satellite:  token payments logic (#3581)
  satellite/metainfo: reduce pointerDB access for CommitObject (#3589)
  satellite/metainfo: Fix misspelling in comment (#3636)
  argon2: choose a steady parallelism value (#3630)
  satellitedb: add support to testplanet for cockroachdb (#3634)
  satellite/console/auth: return in error handle added (#3639)
  Make sed a little more cross platformable (#3629)
  web: ms edge support bug fixed (#3638)
  web/satellite: registration/welcome message fixed, usage-report url fixed, storj-sim fixed (#3622)
  web/satellite: fonts changed to Inter (#3620)
  storagenode/updater: read identity location from storagenode's config.yaml (#3607)
  cmd/segment-reaper: Implement bitmask type (#3626)
  storagenode/gracefulexit: improve logging (#3633)
  private/testplanet: add a mock referral manager server into testplanet (#3631)
  satellite/gracefulexit: refactor concurrency (#3624)
  pkg/pb/referralmanager: update to add satellite ID to Get Tokens request (#3625)
  satellite/metainfo: improve Loop comments (#3595)
  storagenode: add bandwidth metrics (#3623)
  satellite/console: Add security headers (#3615)
  satellite/payments: token deposit accept cents (#3628)
  ...
@bryanchriswhite bryanchriswhite added Code Review In-Progress Code review in-progress and removed WIP Work In Progress Request Code Review Code review requested labels Nov 27, 2019
mniewrzal
mniewrzal previously approved these changes Dec 4, 2019
@@ -118,6 +118,8 @@ func TestInstaller_Config(t *testing.T) {
}

func TestUpgrade_Config(t *testing.T) {
t.Skipf("upgrade test requires binaries to have greater version than \"old release\"")
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure whats the issue here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Upgrade fails if the "new" msi is for an older version. Currently, unless HEAD is tagged with a version number, it's version is 0.0.0 which causes the upgrade test to fail when it uses a release msi for the "old" installation.


const (
// TODO: make this more dynamic and/or use versioncontrol server?
// (NB: can't use versioncontrol server until updater process is added to response)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is exists now and could be used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants