Skip to content

[CI] bash scripts integration tests fail at IPFS upload #408

@clangenb

Description

@clangenb

See run:

https://github.com/encointer/encointer-node/actions/runs/21245975165/job/61139198748?pr=407

Logs:

Run source ./init_env.sh && ./test_bootstrap_demo_community.sh unregister-and-upgrade-registration
Set environment variables:
  BASH_DIR: /home/runner/work/encointer-node/encointer-node/scripts/ci
  SCRIPT_DIR: /home/runner/work/encointer-node/encointer-node/scripts
  PROJ_ROOT: /home/runner/work/encointer-node/encointer-node
  Client Directory: /home/runner/work/encointer-node/encointer-node/client
  Cleint Binary: /home/runner/work/encointer-node/encointer-node/target/release/encointer-client-notee
  Node binary: /home/runner/work/encointer-node/encointer-node/target/release/encointer-node-notee
Bootstrapping demo community and running tests: unregister-and-upgrade-registration
Traceback (most recent call last):
Chain is-parchain: False
  File "/home/runner/work/encointer-node/encointer-node/client/bootstrap_demo_community.py", line 551, in <module>
🔌 connecting to remote chain:  ws://127.0.0.1
    main()
👬 Registered community with cid: sqm1v79dF6b
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/click/core.py", line 1485, in __call__
Uploading assets to ipfs
    return self.main(*args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/click/core.py", line 1406, in main
    rv = self.invoke(ctx)
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/click/core.py", line 1269, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/site-packages/click/core.py", line 824, in invoke
    return callback(*args, **kwargs)
  File "/home/runner/work/encointer-node/encointer-node/client/bootstrap_demo_community.py", line 519, in main
    cid = create_community(client, spec_file, ipfs_local, signer, wrap_call=wrap_call, batch_size=batch_size)
  File "/home/runner/work/encointer-node/encointer-node/client/bootstrap_demo_community.py", line 80, in create_community
    ipfs_cid = Ipfs.add_recursive(root_dir, ipfs_local)
  File "/home/runner/work/encointer-node/encointer-node/client/py_client/ipfs.py", line 62, in add_recursive
    data = json.loads(line)
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/json/__init__.py", line 346, in loads
    return _default_decoder.decode(s)
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/opt/hostedtoolcache/Python/3.10.16/x64/lib/python3.10/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

The docker based integration tests work as they actually detect that the IPFS api key is not set in that environment. Hence, they just skip the upload.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions