rudder-server icon indicating copy to clipboard operation
rudder-server copied to clipboard

chore: script to migrate old backup files to new format

Open mihir20 opened this issue 1 year ago • 4 comments

Description

To run replay for duration when archival was not enabled, we have to run replay in older way which is very time consuming, With the help of this script we can convert old gateway backup files to new format archival files and run the replay through rudder-sources replay mechanism.

Linear Ticket

https://linear.app/rudderstack/issue/PIPE-730/script-to-migrate-old-backup-files-to-new-archive-format

Security

  • [ ] The code changed/added as part of this pull request won't create any security issues with how the software is being used.

mihir20 avatar Feb 13 '24 12:02 mihir20

[!IMPORTANT]

Auto Review Skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository.

To trigger a single review, invoke the @coderabbitai review command.

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit-tests for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit tests for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit tests.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • The JSON schema for the configuration file is available here.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/coderabbit-overrides.v2.json

CodeRabbit Discord Community

Join our Discord Community to get help, request features, and share feedback.

coderabbitai[bot] avatar Feb 13 '24 12:02 coderabbitai[bot]

Codecov Report

Attention: Patch coverage is 73.39450% with 58 lines in your changes are missing coverage. Please review.

Project coverage is 75.35%. Comparing base (559d701) to head (2f7607d). Report is 2 commits behind head on master.

Files Patch % Lines
cmd/backupfilemigrator/file_migrator.go 69.12% 25 Missing and 21 partials :warning:
cmd/backupfilemigrator/main.go 84.31% 6 Missing and 2 partials :warning:
cmd/backupfilemigrator/backup_file.go 77.77% 2 Missing and 2 partials :warning:
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4397      +/-   ##
==========================================
+ Coverage   75.24%   75.35%   +0.11%     
==========================================
  Files         381      384       +3     
  Lines       46469    46687     +218     
==========================================
+ Hits        34965    35181     +216     
+ Misses       9215     9192      -23     
- Partials     2289     2314      +25     

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

codecov[bot] avatar Feb 13 '24 13:02 codecov[bot]

@mihir20 This seems like real data from customer cars? Just wanted to make sure if it is, let's not push actual customers data in Github. We can get the dummy data from our dev environment or we can generate it as well?

achettyiitr avatar Feb 21 '24 18:02 achettyiitr

@mihir20 This seems like real data from customer cars? Just wanted to make sure if it is, let's not push actual customers data in Github. We can get the dummy data from our dev environment or we can generate it as well?

This is dummy data only, not actual customer data. using ids or real looking data might have given this sense, so I have updated few fields with dummy data.

mihir20 avatar Feb 26 '24 13:02 mihir20