Skip to content

test_bitcoin from pre-built 28.0rc2 tarball is failing for JSON parsing #30938

@bitcoin-tools

Description

@bitcoin-tools

Is there an existing issue for this?

  • I have searched the existing issues

Current behaviour

Tested the 28.0rc2 packages from bitcoincore.org/bin for Linux x86_64, Darwin x86_64, and Darwin arm64.

Seeing consistent failures in the rc2 test_bitcoin binary running:

  • Docker with base image of Arch (1, 2, 3)
  • Docker with base image of Debian (1, 2, 3), Ubuntu (1, 2, 3), and Kali (1, 2, 3)
  • Docker with base image of openSUSE Leap (1, 2, 3), openSUSE Tumbleweed (1, 2, 3), and SUSE Enterprise (1, 2, 3)

rc2 test_bitcoin is consistently NOT failing on the following:

  • Ubuntu running on bare metal github CI runner (not in Docker)
  • macOS 13 x86_64 and macOS 14 arm64 on bare metal github CI runner
  • Docker with base image of Alpine, Clear Linux, Fedora, Manjaro, Oracle Linux, RHEL, and Rocky Linux

Also, test_bitcoin was consistently NOT failing like this on 28.0rc1.

Expected behaviour

test_bitcoin from pre-built package should return exit status 0 when run inside a Docker container.

Steps to reproduce

To reproduce the test_bitcoin failures on 28.0rc2:

git clone https://github.com/bitcoin-tools/nodebuilder
cd nodebuilder/docker/
docker build --build-arg NODEBUILDER_VERSION=f0194173557c364d929148952c6a28e2a8965f97 -f Dockerfile_archlinux .
docker build --build-arg NODEBUILDER_VERSION=f0194173557c364d929148952c6a28e2a8965f97 -f Dockerfile_debian .
docker build --build-arg NODEBUILDER_VERSION=f0194173557c364d929148952c6a28e2a8965f97 -f Dockerfile_kali .
docker build --build-arg NODEBUILDER_VERSION=f0194173557c364d929148952c6a28e2a8965f97 -f Dockerfile_openususe-leap .
docker build --build-arg NODEBUILDER_VERSION=f0194173557c364d929148952c6a28e2a8965f97 -f Dockerfile_opensuse-tumbleweed .
docker build --build-arg NODEBUILDER_VERSION=f0194173557c364d929148952c6a28e2a8965f97 -f Dockerfile_sles .
docker build --build-arg NODEBUILDER_VERSION=f0194173557c364d929148952c6a28e2a8965f97 .

To reproduce the expected behavior on 28.0rc1:

docker build --build-arg NODEBUILDER_VERSION=f453fb64c665beabfce70fe037625215ea0e96bb -f Dockerfile_archlinux .
docker build --build-arg NODEBUILDER_VERSION=f453fb64c665beabfce70fe037625215ea0e96bb -f Dockerfile_debian .
docker build --build-arg NODEBUILDER_VERSION=f453fb64c665beabfce70fe037625215ea0e96bb -f Dockerfile_kali .
docker build --build-arg NODEBUILDER_VERSION=f453fb64c665beabfce70fe037625215ea0e96bb -f Dockerfile_openususe-leap .
docker build --build-arg NODEBUILDER_VERSION=f453fb64c665beabfce70fe037625215ea0e96bb -f Dockerfile_opensuse-tumbleweed .
docker build --build-arg NODEBUILDER_VERSION=f453fb64c665beabfce70fe037625215ea0e96bb -f Dockerfile_sles .
docker build --build-arg NODEBUILDER_VERSION=f453fb64c665beabfce70fe037625215ea0e96bb .

Commit hashes are taken from this PR.

Relevant log output

[2024-09-20T13:36:14]  INFO: Running the unit tests.

Running 630 test cases...
test/system_tests.cpp(61): error: in "system_tests/run_command": check what.find(tfm::format("RunCommandParseJSON error: process(%s) returned", command)) != std::string::npos has failed
test/system_tests.cpp(62): error: in "system_tests/run_command": check what.find(expected) != std::string::npos has failed

*** 2 failures are detected in the test module "Bitcoin Core Test Suite"

[2024-09-20T13:39:42] ERROR: Unit tests failed.
[2024-09-20T13:39:42] ERROR: Unhandled error at line 1.
The command '/bin/sh -c /bin/sh -c "$(curl -fsSL ${NODEBUILDER_URL} )"' returned a non-zero code: 1

How did you obtain Bitcoin Core

Pre-built binaries

What version of Bitcoin Core are you using?

28.0rc2

Operating system and version

Docker on Ubuntu 24

Machine specifications

  • Inside a Docker container on GitHub Actions CI
  • Inside docker on my Ubuntu 24 local environment.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions