Skip to content

Add Docker-based CI testing#5016

Merged
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:docker-tests
Jan 28, 2026
Merged

Add Docker-based CI testing#5016
pwojcikdev merged 1 commit intonanocurrency:developfrom
pwojcikdev:docker-tests

Conversation

@pwojcikdev
Copy link
Copy Markdown
Contributor

Code may compile on bare metal but fail in Docker due to environment differences (Ubuntu 22.04 in Docker vs Ubuntu 24.04 in CI). Currently no CI job validates that the codebase builds and tests pass inside Docker containers.

@pwojcikdev pwojcikdev force-pushed the docker-tests branch 3 times, most recently from 977f1d5 to 179f39f Compare January 27, 2026 15:47
@gr0vity-dev-bot
Copy link
Copy Markdown

gr0vity-dev-bot commented Jan 27, 2026

Test Results for Commit da51912

Pull Request 5016: Results
Overall Status:

Test Case Results

  • 5n4pr_conf_10k_bintree: PASS (Duration: 112s)
  • 5n4pr_conf_10k_change: PASS (Duration: 175s)
  • 5n4pr_conf_change_dependant: PASS (Duration: 129s)
  • 5n4pr_conf_change_independant: PASS (Duration: 134s)
  • 5n4pr_conf_send_dependant: PASS (Duration: 125s)
  • 5n4pr_conf_send_independant: PASS (Duration: 129s)
  • 5n4pr_rocks_10k_bintree: PASS (Duration: 119s)
  • 5n4pr_rocks_10k_change: PASS (Duration: 218s)

Last updated: 2026-01-27 21:31:25 UTC

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This pull request adds Docker-based CI testing to validate that the codebase builds and tests pass inside Docker containers. This addresses a gap where code may compile on bare metal Ubuntu 24.04 CI runners but fail in Docker due to environment differences (Ubuntu 22.04 in Docker).

Changes:

  • Added Docker test infrastructure with a Dockerfile that mirrors the Ubuntu 22.04 environment
  • Added shell scripts to build and run tests inside Docker containers
  • Integrated Docker-based testing into the GitHub Actions workflow with matrix testing for both LMDB and RocksDB backends

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
docker/tests/docker-test-entrypoint.sh Entrypoint script for running all test suites locally in Docker
docker/tests/Dockerfile-tests Dockerfile for building the test environment with Ubuntu 22.04
ci/tests/run-docker-tests.sh Script to execute specific test types inside pre-built Docker containers
ci/build-docker-tests.sh Script to build the Docker test image with configurable compiler
.github/workflows/unit_tests.yml Added new docker_test job with backend matrix for LMDB and RocksDB

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

CMD ["docker/tests/docker-test-entrypoint.sh"]

ARG REPOSITORY=nanocurrency/nano-node
LABEL org.opencontainers.image.source=https://github.com/$REPOSITORY
Copy link

Copilot AI Jan 27, 2026

Choose a reason for hiding this comment

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

The LABEL syntax is inconsistent with the existing Dockerfile in docker/node/Dockerfile line 51, which uses a space separator instead of an equals sign. For consistency across the codebase, consider using the same format.

Copilot uses AI. Check for mistakes.
@pwojcikdev pwojcikdev merged commit 5762914 into nanocurrency:develop Jan 28, 2026
26 of 28 checks passed
@pwojcikdev pwojcikdev deleted the docker-tests branch January 28, 2026 08:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants