Commit Graph

684 Commits

Author SHA1 Message Date
Renjie Cai 65ad10b715 support https and wss core url in shard's ws client (#488)
* support https and wss core url in shard's ws client

* fmt

* small fix
2022-08-04 17:01:32 +01:00
Milos Kriz 24fd27e0bd Docker compose restart unless stopped (#487) 2022-07-29 14:57:53 +01:00
James Wilson 8067b0caa2 Remove unused scripts and consistify readme steps (#485) 2022-07-26 14:48:30 +02:00
Ivan 5bff41d0c1 Add geoip db (#477)
* Use geoip for ipv4 city lookup

Signed-off-by: i1i1 <vanyarybin1@live.ru>

* Add support for ipv6

Signed-off-by: i1i1 <vanyarybin1@live.ru>

* Wrap locator into a blocking task

* Dummy change to try and trigger CI pipeline.

Co-authored-by: James Wilson <james@jsdw.me>
2022-07-19 22:06:07 +01:00
James Wilson a93a6cadfc Add manual deploy step with no restrictions. (#481) 2022-06-16 14:26:57 +01:00
Stefan Popov 561b27b934 Add icon for Kagome Node (#470) 2022-05-20 10:38:42 +01:00
Koute 45878f9876 Add per-chain aggregate software/hardware telemetry (#464)
* Add per-chain aggregate software/hardware telemetry

* Fix tests' compilation

* Add extra comments for the `Counter` struct

* Replace the boolean argument with an enum

* Rename `replace_hwbench` to `update_hwbench`

* Move `Counter` into a separate file

* Move `ChainStatsCollator` to `chain_stats.rs`

* Fix incorrect key on the unknown table

* Improve types for the stats component; get rid of `any`
2022-04-27 18:44:34 +09:00
Sergejs Kostjucenko 978c070bdd Remove Vault integration from CI (#468) 2022-04-21 17:49:00 +03:00
Sergejs Kostjucenko 18cc7586cf Remove Travis CI (#465) 2022-04-08 14:18:27 +01:00
dependabot[bot] d6ed878cb4 Bump urijs from 1.19.6 to 1.19.10 in /frontend (#458)
Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.6 to 1.19.10.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.6...v1.19.10)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 13:55:19 +00:00
dependabot[bot] 4c0eb8d5fb Bump url-parse from 1.5.7 to 1.5.10 in /frontend (#456)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.7 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.7...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 13:54:35 +00:00
dependabot[bot] d584de58a6 Bump tmpl from 1.0.4 to 1.0.5 in /frontend (#408)
Bumps [tmpl](https://github.com/daaku/nodejs-tmpl) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/daaku/nodejs-tmpl/releases)
- [Commits](https://github.com/daaku/nodejs-tmpl/commits/v1.0.5)

---
updated-dependencies:
- dependency-name: tmpl
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 13:53:14 +00:00
dependabot[bot] 0120c419e8 Bump follow-redirects from 1.13.0 to 1.14.8 in /frontend (#452)
Bumps [follow-redirects](https://github.com/follow-redirects/follow-redirects) from 1.13.0 to 1.14.8.
- [Release notes](https://github.com/follow-redirects/follow-redirects/releases)
- [Commits](https://github.com/follow-redirects/follow-redirects/compare/v1.13.0...v1.14.8)

---
updated-dependencies:
- dependency-name: follow-redirects
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-09 13:53:00 +00:00
dependabot[bot] 6aee253d2a Bump url-parse from 1.5.3 to 1.5.7 in /frontend (#454)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.7.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.7)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-22 17:18:46 +01:00
Maciej Hirsz 530cf6f7b0 Off viewport tabs + favicon (#451)
* Show off-viewport selected tab to the right

* Add favicon
2022-02-04 17:43:28 +01:00
James Wilson b9f93242cd fix readme image names and remove network bit in docker-compose (#447)
* fix readme image names and remove network bit in docker-compose

* undo naff tweak
2022-01-18 11:12:33 +00:00
James Wilson c00cab33c9 Allow chains to be sorted and filtered (#440)
* Allow soak tests to generate lots of chains for testing

* Style tweaks, and redo 'all chains' modal

* make highlighted text readable on selected chain

* cargo fmt

* Update frontend/src/index.css

Fix a typo

Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>

* A couple more wee telemetry style tweaks

* ..but make the tab animation faster

* Be more defensive checking for event target

* Comment out animation for now

Co-authored-by: Tarik Gul <47201679+TarikGul@users.noreply.github.com>
2022-01-10 14:57:18 +00:00
James Wilson b4fd955c78 catch icon generation errors and log to console (#441) 2022-01-07 20:37:07 +00:00
Alessio Onori bb9f257397 Update README.md (#435)
fixed typo
2021-12-03 16:58:01 +00:00
James Wilson 17432d712f Remove broken "Consensus" tab from UI and related code (#434)
* Remove consensus-tab related stuff, and unused messages, from the telemetry backend

* also remove AfgAuthoritySet feed message, and handle same from node

* Blat everything consensus related that I can find in the UI

* cargo fmt

* README: had -> has

Co-authored-by: David <dvdplm@gmail.com>

Co-authored-by: David <dvdplm@gmail.com>
2021-11-25 12:34:36 +00:00
Maciej Hirsz 73a4cf29b9 Fix duplicte chains (#433) 2021-11-24 19:32:02 +01:00
Sergejs Kostjucenko 4d7d2eb2e4 Add CODEOWNERS file (#431) 2021-11-23 18:12:14 +02:00
Sergejs Kostjucenko 80f5a1af5d Add retry failed CI jobs twice (#429) 2021-11-17 14:30:33 +02:00
Dan Shields 006cf76d3b move to rust 2021, tweak macro (#428)
* cargo fix --edition

* move to rust 2021

* simplify macro now that patterns are supported natively

Co-authored-by: James Wilson <james@jsdw.me>
2021-11-15 14:52:16 +00:00
James Wilson 6e2faa43be We settled on using tags to deploy to live, so reflect that in the docs (#426)
* We settled on using tags to deploy to live, so reflect that in the docs

* not semantic versioning, and how to generate short hash
2021-10-14 09:24:06 +01:00
James Wilson 7ff9a316d1 First/Third party by genesis hash, not label. Make limit configurable and default to 1k (#424)
* First/Third party by genesis hash, not label. Make limit configurable

* Fix a test that relies on not being a node limit

* remove a now-invalid comment

* Cargo fmt

* Fix another naff comment

* Update backend/telemetry_core/src/state/chain.rs

Comment tweak

Co-authored-by: David <dvdplm@gmail.com>

Co-authored-by: David <dvdplm@gmail.com>
2021-10-13 13:08:53 +01:00
James Wilson 82f0b234c4 Timeout based on last msg received and not ping timeout (#418)
* Timeout based on last msg received and not ping timeout

* Use object method shorthand

Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>

* Types.Milliseconds instead of number

Co-authored-by: Maciej Hirsz <1096222+maciejhirsz@users.noreply.github.com>
2021-10-01 17:27:19 +01:00
James Wilson 38c5dff0b7 Saturating sub timestamp from now to avoid possible undeflowr (#420) 2021-10-01 16:55:35 +01:00
James Wilson 18a3d7a42f Add internal deployment steps to the README (#414)
* Add internal deployment steps to the README

* wee tweak in deployment steps

* use FORCE_DEPLOY as primary deploy approach

* slight wording tweak
2021-10-01 12:09:38 +01:00
arshamparity da452c75bb ci: increasing the helm upgrade timeout (#419)
* ci: increasing the helm upgrade timeout

* readjusting the value
2021-09-30 19:00:11 +03:00
James Wilson 7ac88a7e84 Expose total messages sent to aggregator, too (#416)
* Expose total messages sent to aggregator so we can make better graphs with total dropped msgs

* cargo fmt

* use write to hopefully avoid some allocating

* add 'core' namespace to telemetry metrics for better future clarity

* cargo fmt
2021-09-30 12:21:37 +01:00
Maciej Hirsz 224b1faeba Fix autosubscribe to subscribe to Polkadot instead of Kusama (#413) 2021-09-28 17:43:41 +02:00
James Wilson ed6e292d25 Clean up shard channel when shard disconnects (#411) 2021-09-24 10:48:54 +01:00
arshamparity 83aca45509 CI - enabling deploy-production stage (#409) 2021-09-22 17:10:36 +03:00
arshamparity ec4c986501 fixing gitlab-ci (#407) 2021-09-21 18:54:05 +03:00
James Wilson b4b128f9fe Tidy up stale connections. (#406)
* If messageId changes and network ID doesn't, remove 'old' message_id

* Boot nodes/connection when no recent messages received for it

* Separate task needed for soketto recv to avoid cancel-safety issues with new interval

* Wee tidy up

* cargo fmt

* Add some logging around node adding/removing

* Another log info msg

* a bit of tidy up

* bump stale node timeout to 60s
2021-09-21 15:49:42 +01:00
arshamparity 0bf1968fa3 adding dual deployment gitlab-ci (#402)
* adding dual deployment gitlab-ci

* adding the vault tempalte to the build stages

* fix typo

Co-authored-by: James Wilson <james@jsdw.me>

* fix typo

Co-authored-by: James Wilson <james@jsdw.me>

* adding variables to deploy-production stage

* fix

Co-authored-by: James Wilson <james@jsdw.me>
2021-09-21 11:45:37 +03:00
Sergejs Kostjucenko e0ad18a5ad Change CI to use Vault secrets (#400) 2021-09-15 12:59:32 +03:00
James Wilson 0b0cec0512 Make soak tests work again now that we subscribe by genesis hash (#399)
* Make soak tests work again with genesis hash subscribing

* cargo fmt

* derive hex from hash

* actually compile code

* fmt

Co-authored-by: David Palm <dvdplm@gmail.com>
2021-09-10 11:28:34 +01:00
cybai 3ea2f88b19 Make Tooltip as a function component with react hooks (#391)
* Refactor `Tooltip` into function component with hooks

With using hooks, we don't need to maintain the checking in sCU and also
don't need to assign the value of `ref` manually.

* Show block number beside the tooltip instead of its children
2021-09-09 13:02:10 +02:00
James Wilson fe19a75414 Un-brittle-ify backend E2E tests and have them run by default again in CI (#397)
* test running tests

* Add delay so that core knows about node before feed subscribes to limit chance of race

* move delaye to the right place

* Don't do expensive docker step untill we will be pushing the image

* docker test skipped as hoped, so push to 'true'

* just remove docker steps in github CI entirely since they aren't needed by anything (gitlab CI does this stuff now)

* run CI on pull requests too to catch PRs from forks
2021-09-06 11:30:17 +01:00
James Wilson a3ffaf3c44 Flume fix part 2: avoid using flume in a couple of cases, and revert attempted fix#1 (#396)
* A second attempt to avoid the flume memory leak, since the first didn't actually work

* No luck with second flume fix, so revert to futures::mpsc in a few places)

* cargo fmt

* Add a comment to cover use of into_stream
2021-09-03 15:55:25 +01:00
James Wilson 2932075783 Avoid using flume::Receiver::into_stream() to avoid memory leaks until the issue is resolved upstream (#394)
* Tweak rolling_total test to also confirm capacity doesn't go nuts

* Use Jemalloc

* Avoid flume's into_stream and use a workaround for now

* cargo fmt

* Improve comments now that there's an issue to point to
2021-09-03 08:40:43 +01:00
Maciej Hirsz a4069e4b3d Subscribe to chains by genesis hash (#395)
* Handle subscription by hash in the frontend

* Forward-ported backend changes

* Fix unit tests

* Remove unused `chains_by_label`

* fmt

* Updated but failing E2E tests

* subscribe by genesis hash in tests

* fmt

* Copy `BlockHash` instead of returning a ref

* Pin chains by genesisHash

Co-authored-by: James Wilson <james@jsdw.me>
2021-09-02 17:54:19 +02:00
James Wilson ec5db0fbbf Bump tokio to 1.10 and add a test to confirm memory usage of rolling_total (#392) 2021-08-31 20:18:46 +02:00
arshamparity 699c19736f Gitlab ci (#390)
* adding values-parity.yaml to the project again

* removing the custom values file

* replacing the namespace with variable

* removing the default configuration for frontend nginx

* fixing the CI
2021-08-31 16:11:13 +03:00
cybai d477cb8045 frontend: Upgrade TypeScript from 2.9.2 to 4.4.2 (#387)
* Upgrade TS from 2.9.2 to 4.4.2

* Avoid mutating a readonly array

`list` is a readonly array but `sort` will mutate the array in-place.
In newer version of TS, it can catch this unexpected behavior.

To avoid mutating a readonly array, we can sort with a new array with
either `[...list]` or `list.slice()`.

* Fix arguments of `window.location.reload`

The `reload` function type definition in `lib.dom.d.ts` takes 0
arguments now. So, we cannot pass a boolean to it.

Also, based on the documentation on MDN, Firefox is the only browser who
supports passing a `forceForget` boolean to `reload` function.
So, I wonder it should be fine to remove the boolean argument and align
the behavior to other browsers.

Ref: https://developer.mozilla.org/en-US/docs/Web/API/Location/reload
2021-08-27 16:33:42 +01:00
James Wilson 87866b2d42 Improve logging and error reporting around IP and location info (#386)
* Beef up error reporting of IP and location info

* Tidy up error reporting after some manual testing of it

* Don't cache erroneous locations; try again when asked again

* cargo fmt
2021-08-27 16:16:26 +01:00
arshamparity fc73a2f27a removing the default nginx configuration (#385)
* adding values-parity.yaml to the project again

* removing the custom values file

* replacing the namespace with variable

* removing the default configuration for frontend nginx
2021-08-27 16:10:16 +03:00
arshamparity 0ed652a827 adding values-parity.yaml to the project again (#382)
* adding values-parity.yaml to the project again

* removing the custom values file

* replacing the namespace with variable
2021-08-27 10:46:07 +03:00