feat: fix broken e2e scirpt#326
Merged
Merged
Conversation
Signed-off-by: sczembor <stanislaw.czembor@gmail.com>
Contributor
Reviewer's GuideRefactor the e2e deployment script to remove deprecated constants, parse separate SPV and parser package IDs from the publish JSON, improve error checks and environment/config updates, and add a new script to stop services. Flow diagram for updated e2e deployment script logicflowchart TD
A["Start deployment script"] --> B["Clone light client repo"]
B --> C["Publish light client to Sui network"]
C --> D["Parse publish output JSON"]
D --> E["Extract SPV_PACKAGE_ID"]
D --> F["Extract PARSER_PACKAGE_ID"]
E --> G["Check if both IDs are present"]
F --> G
G -->|IDs missing| H["Exit with error"]
G -->|IDs present| I["Update .e2e.env with SPV_PACKAGE_ID and PARSER_PACKAGE_ID"]
I --> J["Clone repo locally"]
J --> K["Update config file with SPV_PACKAGE_ID and Light Client ID"]
K --> L["Finish"]
Flow diagram for new stop_services.sh scriptflowchart TD
A["Start stop_services.sh"] --> B["Run make bitcoind-init"]
B --> C["Change directory to contrib/"]
C --> D["Stop Docker Compose services"]
D --> E["Change directory back"]
E --> F["Finish"]
File-Level Changes
Possibly linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Contributor
There was a problem hiding this comment.
Hey there - I've reviewed your changes and they look great!
Prompt for AI Agents
Please address the comments from this code review:
## Individual Comments
### Comment 1
<location> `e2e/stop_services.sh:4` </location>
<code_context>
+#!/bin/bash
+set -e
+
+make bitcoind-init
+cd contrib/
+echo "Starting Docker Compose services..."
</code_context>
<issue_to_address>
**question:** Running 'make bitcoind-init' before stopping services may be unnecessary or confusing.
If this order is intentional, please clarify the workflow or rename the script for accuracy.
</issue_to_address>
### Comment 2
<location> `e2e/stop_services.sh:6-8` </location>
<code_context>
+
+make bitcoind-init
+cd contrib/
+echo "Starting Docker Compose services..."
+docker compose down
+echo "Services started."
+cd ../
\ No newline at end of file
</code_context>
<issue_to_address>
**nitpick:** Echo statements do not match the actual operation being performed.
Update the echo statements to indicate that services are being stopped, not started, for clarity.
</issue_to_address>Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
Signed-off-by: sczembor <stanislaw.czembor@gmail.com>
Signed-off-by: sczembor <stanislaw.czembor@gmail.com>
Signed-off-by: sczembor <stanislaw.czembor@gmail.com>
Signed-off-by: sczembor <stanislaw.czembor@gmail.com>
Signed-off-by: sczembor <stanislaw.czembor@gmail.com>
robert-zaremba
approved these changes
Sep 30, 2025
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.
Description
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!to the type prefix if API or client breaking changeCHANGELOG.mdSummary by Sourcery
Fix broken E2E light client deployment by parsing separate SPV and parser package IDs, updating environment and config files, removing obsolete variables, and adding a service teardown script.
New Features:
Bug Fixes:
Enhancements: