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

fix(test): flaky fabric AIO container boot #876 #1300

Merged
merged 3 commits into from
Sep 7, 2021

Conversation

petermetz
Copy link
Contributor

Epic facepalm once again. Turns out the default restart try
count of supervisord is too low which leads to race conditions.
Increasing the retry count from 4 to 20 should do it, this way
the fabric-network process (see supervisord.conf file) should
be 5 times as "patient" waiting for the docker daemon to launch
within the AIO container.

What was happening before is that the fabric-network script
tried launching itself in parallel with the docker daemon, but
it would time out before the docker daemon could come online.

Published these images as
ghcr.io/hyperledger/cactus-fabric2-all-in-one:2021-09-02--fix-876-supervisord-retries
and
ghcr.io/hyperledger/cactus-fabric-all-in-one:2021-09-02--fix-876-supervisord-retries

Fixes #718
Fixes #876
Fixes #320
Fixes #319

Signed-off-by: Peter Somogyvari [email protected]

Epic facepalm once again. Turns out the default restart try
count of supervisord is too low which leads to race conditions.
Increasing the retry count from 4 to 20 should do it, this way
the fabric-network process (see supervisord.conf file) should
be 5 times as "patient" waiting for the docker daemon to launch
within the AIO container.

What was happening before is that the fabric-network script
tried launching itself in parallel with the docker daemon, but
it would time out before the docker daemon could come online.

Published these images as
ghcr.io/hyperledger/cactus-fabric2-all-in-one:2021-09-02--fix-876-supervisord-retries
and
ghcr.io/hyperledger/cactus-fabric-all-in-one:2021-09-02--fix-876-supervisord-retries

Fixes hyperledger-cacti#718
Fixes hyperledger-cacti#876
Fixes hyperledger-cacti#320
Fixes hyperledger-cacti#319

Signed-off-by: Peter Somogyvari <[email protected]>
@petermetz petermetz added bug Something isn't working Fabric dependencies Pull requests that update a dependency file Developer_Experience labels Sep 3, 2021
@petermetz petermetz added this to the v0.10.0 milestone Sep 3, 2021
@petermetz petermetz self-assigned this Sep 3, 2021
@codecov-commenter
Copy link

codecov-commenter commented Sep 3, 2021

Codecov Report

Merging #1300 (55ce980) into main (034f0df) will not change coverage.
The diff coverage is n/a.

❗ Current head 55ce980 differs from pull request most recent head 4d4304b. Consider uploading reports for the commit 4d4304b to get more accurate results
Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1300   +/-   ##
=======================================
  Coverage   71.49%   71.49%           
=======================================
  Files         298      298           
  Lines       10743    10743           
  Branches     1321     1321           
=======================================
  Hits         7681     7681           
  Misses       2364     2364           
  Partials      698      698           
Impacted Files Coverage Δ
...rc/main/typescript/fabric/fabric-test-ledger-v1.ts 83.59% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 034f0df...4d4304b. Read the comment docs.

Copy link
Contributor

@jonathan-m-hamilton jonathan-m-hamilton left a comment

Choose a reason for hiding this comment

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

LGTM

@petermetz petermetz merged commit beefcef into hyperledger-cacti:main Sep 7, 2021
@petermetz petermetz deleted the fix-876 branch September 7, 2021 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file Developer_Experience Fabric
Projects
None yet
4 participants