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

Web deploy prerequisites #1851

Merged
merged 71 commits into from
Feb 13, 2019
Merged

Web deploy prerequisites #1851

merged 71 commits into from
Feb 13, 2019

Conversation

sabau
Copy link
Contributor

@sabau sabau commented Jan 17, 2019

Closes #1833

Description:

  • reduce bundle size by optimizing few imports
  • reduce lodash/fp dependency (a single usage for a whole library)
  • change build command as yarn pack is reserved and does not call webpack

demo

Deployment of nodes followup (I won't do all this in the first PR, but we know it's possible and we can specify those details to the SRE team next call)

My plan is to have two node types:

  • gaia in a Docker exposing RPC port

  • gaiacli in another Docker, exposing the rest server, but pointing to the first machine of type gaia

  • Eventually an nginx or APIGateway, the chapest solution will win 🎉

  • Is possible, BUT the genesis file should be on both node types

In this way we will be able to spin up gaia nodes as hell and just one gaiacli node pointing to (let's say) the first gaia node, so the gaiacli node can scaleup indipendently if he receives burst of requests, but the real nodes are always the same

gaiacli [command] --node=IP:PORT

❤️ Thank you!


  • Added entries in CHANGELOG.md with issue # and GitHub username
  • Reviewed Files changed in the github PR explorer

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
@sabau sabau changed the base branch from develop to web January 17, 2019 17:22
@sabau sabau changed the title [WIP] Web deploy prerequisites [WIP] Web deploy prerequisites -> WEB Jan 17, 2019
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
@codecov
Copy link

codecov bot commented Jan 21, 2019

Codecov Report

Merging #1851 into develop will increase coverage by 0.02%.
The diff coverage is 96.87%.

@@             Coverage Diff             @@
##           develop    #1851      +/-   ##
===========================================
+ Coverage       95%   95.03%   +0.02%     
===========================================
  Files          119      119              
  Lines         2565     2558       -7     
  Branches       120      120              
===========================================
- Hits          2437     2431       -6     
+ Misses         118      117       -1     
  Partials        10       10
Impacted Files Coverage Δ
app/src/renderer/vuex/modules/send.js 100% <ø> (ø) ⬆️
app/src/renderer/vuex/modules/connection.js 92.45% <ø> (-0.14%) ⬇️
app/src/renderer/vuex/modules/user.js 100% <ø> (ø) ⬆️
app/src/renderer/vuex/modules/wallet.js 100% <ø> (ø) ⬆️
app/src/renderer/vuex/store.js 100% <100%> (ø) ⬆️
...rc/renderer/components/common/TmSessionLoading.vue 100% <100%> (ø) ⬆️
app/src/renderer/vuex/modules/transactions.js 76% <100%> (ø) ⬆️
app/src/renderer/connectors/lcdClient.js 100% <100%> (ø) ⬆️
app/src/renderer/connectors/node.js 100% <100%> (ø) ⬆️
app/src/renderer/scripts/boot.js 95.65% <95.65%> (ø)
... and 1 more

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
…tes' into sabau/web/1833-deploy-prerequisites
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
…tes' into sabau/web/1833-deploy-prerequisites
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
package.json Outdated Show resolved Hide resolved
sabau and others added 7 commits January 25, 2019 18:23
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>

# Conflicts:
#	.circleci/config.yml
#	app/src/renderer/connectors/node.js
#	app/src/renderer/main.js
#	package.json
#	test/unit/specs/connectors/node.spec.js
#	webpack.renderer.config.js
#	yarn.lock
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
@sabau
Copy link
Contributor Author

sabau commented Feb 1, 2019

The coverage is a bit funny, I think it says that is not covered anymore since when I removed he side effect (main() was called for real once the file was imported and it was touching this function but was not tested for real)

sabau and others added 4 commits February 1, 2019 19:51
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Co-Authored-By: sabau <szabo.karoly.a@gmail.com>
.aws/first.sh Show resolved Hide resolved
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
@@ -0,0 +1,67 @@
#!/bin/bash
Copy link
Collaborator

Choose a reason for hiding this comment

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

do we need to include .aws files? @cosmos/sre ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

those are used by the current (temporary) node setup on EC2, until the real network boot on merge is ready


// this will pass the state to Sentry when errors are sent.
// this would also sent passwords...
// Sentry.configureScope(scope => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

commented out?

Copy link
Collaborator

Choose a reason for hiding this comment

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

left in as a warning to not do this. see the comment

@faboweb
Copy link
Collaborator

faboweb commented Feb 11, 2019

Re coverage: I think the router setup could be escaped via /* istanbul ignore next */ and the on route changed handler should be tested.

mircea-c and others added 2 commits February 12, 2019 11:53
* custom image for voyager build / AWS deployment
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
mircea-c
mircea-c previously approved these changes Feb 12, 2019
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Show resolved Hide resolved
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
…docker image and alias, we use docker-deploy instead

Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
cicle.run_deploy.sh Outdated Show resolved Hide resolved
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
Signed-off-by: Karoly Albert Szabo <szabo.karoly.a@gmail.com>
@@ -72,4 +71,95 @@ describe(`App Start`, () => {
expect(startApp).toHaveBeenCalled()
expect(startApp.mock.calls[0][0]).toHaveProperty(`x`, 1)
})

it(`Check the calls on VUE`, async () => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would have maybe just called the function and checked if it doesn't throw.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah I tried to test the real call but was taking a weird path to mock them, so I just counted the number of calls

Co-Authored-By: sabau <szabo.karoly.a@gmail.com>
@faboweb faboweb merged commit 0b5ba5d into develop Feb 13, 2019
@faboweb faboweb deleted the sabau/web/1833-deploy-prerequisites branch February 13, 2019 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Voyager CI online release
5 participants