-
Notifications
You must be signed in to change notification settings - Fork 59
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
Publish the perf project #1753
Publish the perf project #1753
Changes from 7 commits
8d9be77
8bd7e87
cf23d0a
3c49f5d
3a9952a
ac48565
63a0fe5
a64e01c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -870,6 +870,16 @@ jobs: | |
path: current_release/ | ||
- run: IMAGE_NAME=$WATCHER_IMAGE_NAME sh .circleci/ci_publish.sh | ||
|
||
publish_perf: | ||
machine: | ||
image: ubuntu-1604:201903-01 | ||
environment: | ||
PERF_IMAGE_NAME: "omisego/perf" | ||
steps: | ||
- checkout | ||
- run: make docker-perf IMAGE_NAME=$PERF_IMAGE_NAME | ||
- run: IMAGE_NAME=$PERF_IMAGE_NAME sh .circleci/ci_publish.sh | ||
|
||
publish_watcher_info: | ||
machine: | ||
image: ubuntu-1604:201903-01 | ||
|
@@ -1099,6 +1109,18 @@ workflows: | |
audit_deps | ||
] | ||
filters: *master_and_version_branches_and_all_tags | ||
|
||
- publish_perf: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably like publish_watcher, only publish after some required tests have been done? eg the local docker perf test one so we can make sure this version of perf is runnable. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I added |
||
requires: [test_docker_compose_performance] | ||
filters: | ||
branches: | ||
only: | ||
- master | ||
# vMAJOR.MINOR (e.g. v0.1, v0.2, v1.0, v2.1, etc.) | ||
- /^v[0-9]+\.[0-9]+/ | ||
tags: | ||
only: | ||
- /.+/ | ||
# Increase chart version for master, this will end up trigger deployment on dev | ||
- increase_chart_version_watcher_master: | ||
requires: [publish_watcher, publish_watcher_info] | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,7 @@ defmodule OMG.Eth.DevGeth do | |
|
||
waiting_task | ||
|> Task.async() | ||
|> Task.await(30_000) | ||
|> Task.await(90_000) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just curious what is leading to this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. dev geth is timing out which causes ci failures. I increased it so dev geth has more time to prepare itself |
||
|
||
pid | ||
end | ||
|
@@ -112,7 +112,7 @@ defmodule OMG.Eth.DevGeth do | |
if ready?(pid) do | ||
:ok | ||
else | ||
Process.sleep(1_000) | ||
Process.sleep(2_000) | ||
wait_for_rpc(pid) | ||
end | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
FROM elixir:1.10.4-alpine | ||
|
||
RUN apk add git curl bash maven jq \ | ||
autoconf \ | ||
automake \ | ||
gmp \ | ||
gmp-dev \ | ||
libtool \ | ||
gcc \ | ||
cmake \ | ||
gnupg \ | ||
alpine-sdk | ||
|
||
COPY ./ ./elixir-omg | ||
|
||
WORKDIR ./elixir-omg | ||
|
||
RUN mkdir -p priv/openapitools \ | ||
&& curl https://raw.githubusercontent.com/OpenAPITools/openapi-generator/v4.3.1/bin/utils/openapi-generator-cli.sh > priv/openapitools/openapi-generator-cli \ | ||
&& chmod u+x priv/openapitools/openapi-generator-cli | ||
|
||
RUN priv/openapitools/openapi-generator-cli generate \ | ||
-i https://raw.githubusercontent.com/omgnetwork/omg-childchain-v1/master/apps/omg_child_chain_rpc/priv/swagger/operator_api_specs.yaml \ | ||
-g elixir \ | ||
-o priv/perf/apps/child_chain_api/ | ||
|
||
RUN priv/openapitools/openapi-generator-cli generate \ | ||
-i apps/omg_watcher_rpc/priv/swagger/security_critical_api_specs.yaml \ | ||
-g elixir \ | ||
-o priv/perf/apps/watcher_security_critical_api/ | ||
|
||
RUN priv/openapitools/openapi-generator-cli generate \ | ||
-i apps/omg_watcher_rpc/priv/swagger/info_api_specs.yaml \ | ||
-g elixir \ | ||
-o priv/perf/apps/watcher_info_api/ | ||
|
||
RUN mix local.hex --force && mix local.rebar --force | ||
|
||
WORKDIR ./priv/perf | ||
|
||
RUN mix deps.get && mix compile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just curious do we want to start migrate the naming to omgnetwork?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure. All docker images have the same prefix
cc @achiurizo @InoMurko
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not aware of a way to migrate a docker hub account to a new namespace! (which is what
omisego
is)