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

chore: Parse Kopia restore result #3011

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

e-sumin
Copy link
Contributor

@e-sumin e-sumin commented Aug 2, 2024

Change Overview

We already have parsing of Kopia progress lines, this PR introduces parsing of final stats of restore operation.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test
  • 🏗️ Build

Issues

  • fixes #issue-number

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E

for _, l := range logs {
lineStats := parseKopiaRestoreResultLine(l)
if lineStats != nil {
stats = lineStats
Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I understand this condition will override stats until the last matching line even if there are more matching lines before that. Is that intended?

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

Successfully merging this pull request may close these issues.

2 participants