chore: extract common code - #59
Closed
vladopajic wants to merge 1 commit into
Closed
vladopajic wants to merge 1 commit into
vladopajic wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Both gossipsub-queues Dockerfiles break the existing per-directory build context and require updated invocation or compatibility fixes.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Extracts shared Nim utilities into nim-test-node/common and updates node builds to use them.
Changes:
- Centralizes shutdown, health-server, and peer-ID helpers.
- Updates imports, Docker contexts, paths, and Kaniko configuration.
- Refreshes build documentation and dependencies.
| File | Reviewed change |
|---|---|
shadow/kaniko-build-test-node-job.yaml |
Updates Kaniko context and Dockerfile paths. |
shadow/Dockerfile |
Updates the regression image reference. |
nim-test-node/service-discovery/run.sh |
Uses the parent build context. |
nim-test-node/service-discovery/main.nim |
Uses shared health and shutdown helpers. |
nim-test-node/service-discovery/helpers.nim |
Removes duplicated health-server code. |
nim-test-node/service-discovery/Dockerfile |
Copies shared sources. |
nim-test-node/regression/README.md |
Documents parent-context builds. |
nim-test-node/regression/node/main.nim |
Uses shared shutdown handling. |
nim-test-node/regression/Dockerfile_shadow |
Updates source paths. |
nim-test-node/regression/Dockerfile |
Updates source paths and workdir. |
nim-test-node/regression/bootstrap/main.nim |
Uses shared shutdown handling. |
nim-test-node/kad-dht/README.md |
Documents parent-context builds. |
nim-test-node/kad-dht/main.nim |
Uses shared helpers and RNG flow. |
nim-test-node/kad-dht/helpers.nim |
Removes duplicated helpers. |
nim-test-node/kad-dht/Dockerfile |
Copies shared sources. |
nim-test-node/kad-dht/core.nim |
Uses shared peer-ID generation. |
nim-test-node/gossipsub-queues/main.nim |
Uses shared shutdown handling. |
nim-test-node/gossipsub-queues/Dockerfile_arm64 |
Adds shared-source copying; requires a parent build context. |
nim-test-node/gossipsub-queues/Dockerfile_amd64 |
Adds shared-source copying; requires a parent build context. |
nim-test-node/connmanager/test_node.nimble |
Updates dependencies. |
nim-test-node/connmanager/README.md |
Documents parent-context builds. |
nim-test-node/connmanager/main.nim |
Uses shared shutdown handling. |
nim-test-node/connmanager/Dockerfile |
Copies shared sources. |
nim-test-node/common/shutdown.nim |
Adds shared shutdown behavior. |
nim-test-node/common/peer_ids.nim |
Adds shared peer-ID helpers. |
nim-test-node/common/health_server.nim |
Adds the shared health server. |
nim-test-node/.dockerignore |
Adds build-context exclusions. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+5
to
+6
| COPY common /node/common | ||
| COPY gossipsub-queues/. . |
Comment on lines
+5
to
+6
| COPY common /node/common | ||
| COPY gossipsub-queues/. . |
vladopajic
marked this pull request as draft
September 24, 2026 17:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

commondirectory to hold common/shared code between nim nodes.