Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: do checksum check after downloading platform zip file #125

Merged
merged 2 commits into from
Mar 6, 2024

Conversation

leninmehedy
Copy link
Member

@leninmehedy leninmehedy commented Mar 5, 2024

Description

Recently we made changes to pull platform zip file directly inside the container. This PR introduces the required checksum check and it runs in parallel for all nodes, which reduces overall execution time.

This pull request changes the following:

  • fix: do checksum check when downloading and extracting platform zip file inside the container

Related Issues

@leninmehedy leninmehedy requested a review from a team as a code owner March 5, 2024 01:57
@leninmehedy leninmehedy changed the title fix: do checksum check when downloading and extract platform zip file fix: do checksum check after downloading platform zip file Mar 5, 2024
@leninmehedy leninmehedy requested review from jeromy-cannon and removed request for tomzhenghedera March 5, 2024 01:57
@leninmehedy leninmehedy force-pushed the 000111-do-checksum-check branch from 442bfa5 to a5824b7 Compare March 5, 2024 02:01
Copy link
Contributor

github-actions bot commented Mar 5, 2024

Unit Test Results

 1 files  ±0  13 suites  ±0   25s ⏱️ +5s
83 tests ±0  83 ✅ ±0  0 💤 ±0  0 ❌ ±0 
90 runs  ±0  90 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 6cda7e1. ± Comparison against base commit 8fd976b.

♻️ This comment has been updated with latest results.

Copy link
Contributor

github-actions bot commented Mar 5, 2024

E2E Test Results

735 tests  +1   735 ✅ +1   13m 9s ⏱️ + 1m 10s
  6 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 6cda7e1. ± Comparison against base commit 8fd976b.

This pull request removes 2 and adds 3 tests. Note that renamed tests count towards both.
PackageInstallerE2E copyPlatform should succeed fetching platform release ‑ PackageInstallerE2E copyPlatform should succeed fetching platform release
PackageInstallerE2E copyPlatform should succeed with valid tag and pod ‑ PackageInstallerE2E copyPlatform should succeed with valid tag and pod
PackageInstallerE2E fetchPlatform should fail with invalid pod ‑ PackageInstallerE2E fetchPlatform should fail with invalid pod
PackageInstallerE2E fetchPlatform should fail with invalid tag ‑ PackageInstallerE2E fetchPlatform should fail with invalid tag
PackageInstallerE2E fetchPlatform should succeed with valid tag and pod ‑ PackageInstallerE2E fetchPlatform should succeed with valid tag and pod

♻️ This comment has been updated with latest results.

Copy link

codacy-production bot commented Mar 5, 2024

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.05% (target: -1.00%) 100.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (8fd976b) 2165 1389 64.16%
Head commit (6cda7e1) 2154 (-11) 1383 (-6) 64.21% (+0.05%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#125) 7 7 100.00%

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

You may notice some variations in coverage metrics with the latest Coverage engine update. For more details, visit the documentation

Copy link

codecov bot commented Mar 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.76%. Comparing base (8fd976b) to head (6cda7e1).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #125      +/-   ##
==========================================
+ Coverage   63.73%   63.76%   +0.02%     
==========================================
  Files          27       27              
  Lines        2570     2558      -12     
  Branches      422      373      -49     
==========================================
- Hits         1638     1631       -7     
+ Misses        932      927       -5     
Files Coverage Δ
src/commands/node.mjs 53.73% <ø> (ø)
src/core/k8.mjs 79.73% <100.00%> (+0.73%) ⬆️
src/core/platform_installer.mjs 89.53% <100.00%> (+0.88%) ⬆️

Impacted file tree graph

@leninmehedy leninmehedy force-pushed the 000111-do-checksum-check branch from 4a2cd69 to 6cda7e1 Compare March 5, 2024 02:26
@leninmehedy leninmehedy merged commit 3d91617 into main Mar 6, 2024
19 checks passed
@leninmehedy leninmehedy deleted the 000111-do-checksum-check branch March 6, 2024 01:22
swirlds-automation added a commit that referenced this pull request Mar 8, 2024
## [0.22.0](v0.21.2...v0.22.0) (2024-03-08)

### Features

* **cli:** allow user to set jvm options for Hedera nodes ([#84](#84)) ([22ff35d](22ff35d))
* download helm binary based on os and platform architecture ([#128](#128)) ([e64e9a2](e64e9a2))

### Bug Fixes

* do checksum check after downloading platform zip file ([#125](#125)) ([3d91617](3d91617))
* updated incorrect log messages ([#132](#132)) ([d890974](d890974))

### Performance Improvements

* enhance account key update logic to batch transactions instead of loading all with sleep ([#105](#105)) ([e4bd1ef](e4bd1ef))
@swirlds-automation
Copy link
Contributor

🎉 This PR is included in version 0.22.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Do checksum check after fetching platform zip file
3 participants