Skip to content
This repository was archived by the owner on Mar 18, 2020. It is now read-only.

Add Jenkinsfile#9

Open
sirn wants to merge 1 commit intomasterfrom
feature/t601
Open

Add Jenkinsfile#9
sirn wants to merge 1 commit intomasterfrom
feature/t601

Conversation

@sirn
Copy link

@sirn sirn commented Jan 27, 2018

Tests performed with:

  • Erlang OTP 20
  • Elixir 1.5
  • Golang 1.9.2
  • Tendermint 0.11.1
  • Tendermint Tools 1.0.0

@sirn
Copy link
Author

sirn commented Jan 27, 2018

Current failures 👇

[omisego_honted_feature_t601-CVLXARA5DHXUO25MDJG4ARDFJTMGR5647MKCK2I7JWTRRKUXKMPA] Running shell script
+ mix do credo, coveralls.html --umbrella --no-start --include integration

Checking 96 source files (this might take a while) ...

  Software Design                                                               
┃ 
┃ [D] → Found a TODO tag in a comment: # TODO: don't know why this is needed, 
┃       should happen automatically on terminate. Does something bork at 
┃       teardown?
┃       apps/honted_integration/scripts/performance.exs:13 #()

Please report incorrect results: https://github.com/rrrene/credo/issues

Analysis took 7.3 seconds (0.2s to load, 7.0s running checks)
568 mods/funs, found 1 software design suggestion.

==> honted_lib

Including tags: [:integration]

.

Finished in 0.05 seconds
1 test, 0 failures

Randomized with seed 667057
==> honted_eth
Including tags: [:integration]

.....

Finished in 0.1 seconds
5 tests, 0 failures

Randomized with seed 667057
==> honted_api

Including tags: [:integration]

.............................

Finished in 1.6 seconds
29 tests, 0 failures

Randomized with seed 667057

==> honted_abci
warning: redefining module HonteD.API.TestHelpers (current version defined in memory)
  /home/jenkins/workspace/omisego_honted_feature_t601-CVLXARA5DHXUO25MDJG4ARDFJTMGR5647MKCK2I7JWTRRKUXKMPA/apps/honted_api/test/testlib/api/test_helpers.ex:1

Including tags: [:integration]

......................................................................

Finished in 2.3 seconds
70 tests, 0 failures

Randomized with seed 667057

==> honted_jsonrpc
Including tags: [:integration]

..

Finished in 0.3 seconds
2 tests, 0 failures

Randomized with seed 667057
==> honted_ws
Including tags: [:integration]

...

Finished in 0.1 seconds
3 tests, 0 failures

Randomized with seed 667057
==> honted_integration
warning: variable "honted" is unused
  test/fixtures.exs:10

Including tags: [:integration]
Excluding tags: [integration: true]

..

  1) test Test scenario generation correctness. Scenario executes: setup and load from one of the senders (HonteD.Performance.ScenarioTest)
     test/scenario_test.exs:36
     ** (UndefinedFunctionError) function HonteD.ABCI.State.empty/0 is undefined or private
     code: run(HonteD.Performance.Scenario.new(2, 10), 10)
     stacktrace:
       (honted_abci) HonteD.ABCI.State.empty()
       test/scenario_test.exs:17: HonteD.Performance.ScenarioTest.run/2
       test/scenario_test.exs:37: (test)

.

  2) test demo smoke test (HonteD.Integration.SmokeTest)
     test/integration/smoke_test.exs:95
     match (=) failed
     code:  assert {:error, %{raw_result: _}} = API.submit_transaction(full_transaction)
     right: {:ok,
             %{committed_in: nil, duplicate: true,
               tx_hash: "9F6111D919347D49CFCD5CD97CD3B17F2813DD64"}}
     stacktrace:
       test/integration/smoke_test.exs:127: (test)

.

  3) test Contract can be read (HonteD.Integration.SmokeTest)
     test/integration/smoke_test.exs:307
     ** (MatchError) no match of right hand side value: []
     stacktrace:
       lib/integration/geth.ex:32: HonteD.Integration.Geth.launch/1
       lib/integration/geth.ex:11: HonteD.Integration.Geth.start/0
       lib/integration.ex:20: HonteD.Integration.geth/0
       test/fixtures.exs:23: HonteD.Integration.Fixtures.fixture_create_geth/0
       (ex_unit_fixtures) lib/ex_unit_fixtures/imp.ex:154: ExUnitFixtures.Imp.create_fixture/2
       (elixir) lib/enum.ex:1829: Enum."-reduce/3-lists^foldl/2-0-"/3
       (ex_unit_fixtures) lib/ex_unit_fixtures/imp.ex:86: ExUnitFixtures.Imp.create_fixtures/4
       (ex_unit_fixtures) lib/ex_unit_fixtures/imp.ex:57: ExUnitFixtures.Imp.test_scoped_fixtures/2
       test/integration/smoke_test.exs:1: HonteD.Integration.SmokeTest.__ex_unit_setup_0/1
       test/integration/smoke_test.exs:1: HonteD.Integration.SmokeTest.__ex_unit__/2



  4) test Tendermint at supported version (HonteD.Integration.VersionTest)
     test/integration/version_test.exs:9
     Expected truthy, got false
     code: assert Version.match?(String.trim(version_output), "~> 0.14.0")
     stacktrace:
       test/integration/version_test.exs:16: (test)

.

Finished in 19.7 seconds
9 tests, 4 failures

Randomized with seed 667057
----------------
COV    FILE                                        LINES RELEVANT   MISSED
 93.3% apps/honted_abci/lib/abci.ex                  241       75        5
100.0% apps/honted_abci/lib/abci/application.ex       16        4        0
100.0% apps/honted_abci/lib/abci/events.ex            22        4        0
100.0% apps/honted_abci/lib/abci/records.ex           16        0        0
 98.2% apps/honted_abci/lib/abci/state.ex            221       55        1
  0.0% apps/honted_api/lib/api.ex                    256       38       38
100.0% apps/honted_api/lib/api/application.ex         14        3        0
100.0% apps/honted_api/lib/api/events.ex              95       14        0
 82.7% apps/honted_api/lib/api/events/eventer.e      279       81       14
100.0% apps/honted_api/lib/api/events/replay.ex       43       15        0
100.0% apps/honted_api/lib/api/expose_spec.ex        136       27        0
 92.3% apps/honted_api/lib/api/expose_spec/rpc_       73       13        1
100.0% apps/honted_api/lib/api/tendermint_behav       21        0        0
 12.5% apps/honted_api/lib/api/tools.ex               90       16       14
 80.0% apps/honted_api/lib/api/transaction/fina       40        5        1
 74.1% apps/honted_eth/lib/eth.ex                    106       27        7
  0.0% apps/honted_eth/lib/eth/application.ex         14        3        3
  4.4% apps/honted_eth/lib/eth/contract.ex           145       45       43
100.0% apps/honted_eth/lib/eth/contract_behavio       25        0        0
 92.3% apps/honted_integration/lib/integration.       94       26        2
  0.0% apps/honted_integration/lib/integration/       83       30       30
 64.7% apps/honted_integration/lib/integration/       47       17        6
 87.9% apps/honted_integration/lib/integration/      114       33        4
  0.0% apps/honted_integration/lib/integration/       63       24       24
 97.5% apps/honted_integration/lib/scenario.ex       126       40        1
100.0% apps/honted_jsonrpc/lib/jsonrpc.ex              5        0        0
100.0% apps/honted_jsonrpc/lib/jsonrpc/applicat       16        4        0
100.0% apps/honted_jsonrpc/lib/jsonrpc/exposer.       34        5        0
100.0% apps/honted_lib/lib/honted/crypto.ex           16        3        0
100.0% apps/honted_lib/lib/honted/staking.ex          13        0        0
100.0% apps/honted_lib/lib/honted/validator.ex         9        0        0
100.0% apps/honted_ws/lib/ws.ex                        5        0        0
100.0% apps/honted_ws/lib/ws/application.ex           14        3        0
 77.5% apps/honted_ws/lib/ws/handler.ex              136       40        9
100.0% apps/honted_ws/lib/ws/server.ex                27        5        0
[TOTAL]  69.0%
----------------
Generating report...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant