Skip to content

minimize i/o load during hash calculation - #4021

Merged
benderl merged 2 commits into
openWB:masterfrom
benderl:backup
Oct 5, 2026
Merged

benderl merged 2 commits into
openWB:masterfrom
benderl:backup

Conversation

@benderl

@benderl benderl commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Ticket #66008303

  • minimize I/O load by using command streaming in checksum creation
  • catch any error and abort the complete backup process

@benderl benderl self-assigned this Sep 28, 2026
@benderl benderl added this to the 2.3.0 milestone Sep 28, 2026
@benderl
benderl requested a lite review from Copilot September 28, 2026 07:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Fix checksum failure propagation and newline formatting before approval.

Review effort: Lite
Findings: 2 High severity

Open (2)
What changed in this PR

This PR reduces backup I/O by streaming archive contents directly into sha256sum and quieting tar/gzip output.

Changes:

  • Replaces per-file extraction with streaming checksum calculation.
  • Removes verbose tar/gzip output.
  • Appends generated checksums to the archive.

Two critical checksum-generation issues remain: hash failures can be masked, and escaped newlines can produce malformed checksum entries.

File Description
runs/​backup.sh Optimizes archive creation and checksum generation.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread runs/backup.sh Outdated
Comment thread runs/backup.sh Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Checksum escaping, non-regular members, and checksum failure propagation need correction.

Review effort: Lite
Findings: 1 Medium severity

Open (1)
Resolved since last review (2)

Comment thread runs/backup.sh

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Unresolved correctness and cleanup issues remain in runs/backup.sh.

Review effort: Lite
Findings: 1 High severity

Open (1)
Resolved since last review (1)

Comment thread runs/backup.sh
@benderl
benderl requested a review from LKuemmel September 28, 2026 08:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Checksum records are malformed for valid filenames containing newlines.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
Resolved since last review (1)

Comment thread runs/backup.sh
@benderl
benderl merged commit f70a7a3 into openWB:master Oct 5, 2026
1 check passed
@benderl
benderl deleted the backup branch October 5, 2026 10:51
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