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

Change regex that matches the restic stats cmd op #882

Merged
merged 1 commit into from
Jan 19, 2021
Merged

Conversation

viveksinghggits
Copy link
Contributor

@viveksinghggits viveksinghggits commented Jan 18, 2021

Change Overview

restic stats returned the output in below format

repository 8b4484dd opened successfully, password is correct
created new cache in /root/.cache/restic
scanning...
Stats for all snapshots in raw-data mode:
  Total Blob Count:   194
        Total Size:   1.786 MiB

but after release of kanister 0.49.0 as part of this PR (#826)
we upgraded restic to version 0.11.0 and after the output of restic stats has been
changed to

repository 5cbbd926 opened successfully, password is correct
created new cache in /root/.cache/restic
scanning...
Stats in raw-data mode:
Snapshots processed:   1
   Total Blob Count:   194
         Total Size:   1.786 MiB

This PR changes the regex that matched the line to figure
out the stats mode.

Pull request type

Please check the type of change your PR introduces:

  • 🐹 Trivial/Minor

Issues

  • #XXX

Test Plan

  • ⚡ Unit test

DataSuite.TestDescribeBackups that was failing

» go test -check.f "DataSuite.TestDescribeBackups"

the logs can be found here.

ResticDataSuite

» go test -check.f "ResticDataSuite"

the logs can be found here.

`restic stats` returned the output in below format

```
repository 8b4484dd opened successfully, password is correct
created new cache in /root/.cache/restic
scanning...
Stats for all snapshots in raw-data mode:
  Total Blob Count:   194
        Total Size:   1.786 MiB
```

but after release of kanister `0.49.0` we upgraded restic to
version 0.11.0 and after the output of `restic stats` has been
changed to

```
repository 5cbbd926 opened successfully, password is correct
created new cache in /root/.cache/restic
scanning...
Stats in raw-data mode:
Snapshots processed:   1
   Total Blob Count:   194
         Total Size:   1.786 MiB
```

This PR changes the regex that matched the line to figure
out the stats mode.
Copy link
Contributor

@pavannd1 pavannd1 left a comment

Choose a reason for hiding this comment

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

Thanks. LGTM

@pavannd1 pavannd1 added the kueue label Jan 19, 2021
@mergify mergify bot merged commit 2f34475 into master Jan 19, 2021
@mergify mergify bot deleted the kanistertests-fix branch January 19, 2021 19:39
chaitanya-baraskar pushed a commit to chaitanya-baraskar/kanister that referenced this pull request Apr 5, 2021
`restic stats` returned the output in below format

```
repository 8b4484dd opened successfully, password is correct
created new cache in /root/.cache/restic
scanning...
Stats for all snapshots in raw-data mode:
  Total Blob Count:   194
        Total Size:   1.786 MiB
```

but after release of kanister `0.49.0` we upgraded restic to
version 0.11.0 and after the output of `restic stats` has been
changed to

```
repository 5cbbd926 opened successfully, password is correct
created new cache in /root/.cache/restic
scanning...
Stats in raw-data mode:
Snapshots processed:   1
   Total Blob Count:   194
         Total Size:   1.786 MiB
```

This PR changes the regex that matched the line to figure
out the stats mode.
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.

2 participants