add test for go chaincode in fabric v3 and bump tools version to 3.1.3#661
add test for go chaincode in fabric v3 and bump tools version to 3.1.3#661umegbewe merged 3 commits intohyperledger-labs:mainfrom
Conversation
| const below3_0_0 = (v: string) => (v.startsWith("3.") ? "2.5" : v); | ||
|
|
||
| const is_or_above3_0_0 = (v: string) => (v.startsWith("3.") ? "3.0.0" : v); | ||
| const is_or_above3_0_0 = (v: string) => (v.startsWith("3.") ? "3.1.3" : v); |
There was a problem hiding this comment.
I wasn't sure about this one. Even though I added "fabricToolsVersion" to the sample config for that network, it's ignored because fablo now always uses 3.1.3. Maybe you'd prefer to make it possible for the user to override the value?
There was a problem hiding this comment.
Hey @arner, this PR is good to go after the merge conflicts are resolved.
There was a problem hiding this comment.
Thanks @umegbewe , I'll see what I can do! Getting an error now, not sure yet where it comes from but will try again later.
Creating channelTx for my-channel1...
CONFIG_PATH: /home/runner/work/fablo/fablo/e2e-network/docker/test-01-v3-simple.sh.tmpdir/fablo-target/fabric-config
CONFIG_PROFILE: MyChannel1
OUTPUT_PATH: /home/runner/work/fablo/fablo/e2e-network/docker/test-01-v3-simple.sh.tmpdir/fablo-target/fabric-config/config
CHANNEL_TX_PATH: /home/runner/work/fablo/fablo/e2e-network/docker/test-01-v3-simple.sh.tmpdir/fablo-target/fabric-config/config/my-channel1.pb
2026-02-26 14:39:15.151 UTC 0001 INFO [common.tools.configtxgen] main -> Loading configuration
2026-02-26 14:39:15.153 UTC 0002 INFO [common.tools.configtxgen.localconfig] completeInitialization -> orderer type: BFT
2026-02-26 14:39:15.153 UTC 0003 INFO [common.tools.configtxgen.localconfig] Load -> Loaded configuration: /fabric-config/configtx.yaml
2026-02-26 14:39:15.153 UTC 0004 FATA [common.tools.configtxgen] main -> Error on outputBlock: could not create bootstrapper: could not create channel group: could not create orderer group: cannot load consenter config for orderer type BFT: cannot load client cert for consenter orderer0.group1.orderer.example.com:7030: open /fabric-config/crypto-config/peerOrganizations/orderer.example.com/peers/orderer0.group1.orderer.example.com/tls/server.crt: no such file or directory
Signed-off-by: Arne Rutjes <arne123@gmail.com>
9611471 to
8b9df87
Compare
Signed-off-by: Arne Rutjes <arne123@gmail.com>
fablo-config.json
Outdated
There was a problem hiding this comment.
Hey @arner
Leftover file? 😅
Everything else looks good to me, will merge once removed.
There was a problem hiding this comment.
Oops good catch, didn't realize it was mine. I guess you'll squash the commits anyway, right?
Thanks!
Signed-off-by: Arne Rutjes <arne123@gmail.com>
The updated test in this PR (which adds a go chaincode to fabric 3) fails because the fabric tools image version 3.1.3 does not exist (yet?). But it also fails if you use fabric-tools:3.0.0, because it cannot build go chaincode.
To make this test work locally:
And in this repo, run the docker
test-05-v3.sh.I don't know if you agree with this approach and how you would like to manage versions of fabric tools, so please let me know if you'd like me to change anything (or feel free to edit my PR directly).
The pull request for the updated docker image is here: fablo-io/fabric-tools#1.