Enhancement: Progress Monitoring and Summary Reporting for Initialization #53
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.
fixes: #46
Description:
This PR enhances the initialization process by introducing real-time progress monitoring and a summary report for long-running operations in
init.sh
andutils.sh
. The improvements ensure better visibility, error tracking, and debugging during script execution.Key Changes:
✅ Progress Indicators:
wget --progress=bar:force
.✅ Summary Report Generation:
init_report.txt
to log successes and failures of initialization steps.generate_summary_report()
to summarize operations, including execution time, successful downloads, and failures.init_summary_YYYYMMDDHHMMSS.txt
.✅ Error Handling & Logging Enhancements:
Why This Change?
Previously, the initialization process lacked structured progress tracking and failure reporting, making it difficult to debug errors. With these updates:
✅ Users get real-time feedback on downloads and script executions.
✅ Failures are logged systematically, aiding in troubleshooting.
✅ The summary report provides a comprehensive execution overview.
Testing Performed:
1️⃣ Environment Setup
cd cbioportal-docker-compose chmod +x utils.sh init.sh
✅ Ensured execution permissions are set correctly.
2️⃣ Running Initialization
✅ Verified expected logs and progress indicators appear during execution.
3️⃣ Verifying Summary Report
cat init_report.txt cat init_summary_*.txt
✅ Confirmed that successful and failed operations are correctly logged.
4️⃣ Download Progress & Retry Mechanism
✅ Observed progress bar and validated retry logic for failed downloads.