Skip to content

docs: add scenario doc for Backup and Restore of OCI Artifacts and Images#1778

Merged
Wwwsylvia merged 7 commits into
oras-project:mainfrom
FeynmanZhou:scenario-backup
Jul 24, 2025
Merged

docs: add scenario doc for Backup and Restore of OCI Artifacts and Images#1778
Wwwsylvia merged 7 commits into
oras-project:mainfrom
FeynmanZhou:scenario-backup

Conversation

@FeynmanZhou

@FeynmanZhou FeynmanZhou commented Jul 8, 2025

Copy link
Copy Markdown
Member

What this PR does / why we need it:

I splited the spec "Backup and Restore of OCI Artifacts and Images" from a single doc #1767 into two separate PRs, one for scenarios and another one for proposals with CLI design.

The scenarios part could be easily merged as it does not have controversial comments and we almost aligned. The proposal with CLI design needs further discussion and consensus.

Signed-off-by: Feynman Zhou <feynmanzhou@microsoft.com>

This comment was marked as outdated.

@codecov

codecov Bot commented Jul 8, 2025

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.58%. Comparing base (64a7e44) to head (715764c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1778   +/-   ##
=======================================
  Coverage   85.58%   85.58%           
=======================================
  Files         137      137           
  Lines        6006     6006           
=======================================
  Hits         5140     5140           
  Misses        615      615           
  Partials      251      251           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Feynman Zhou <feynmanzhou@microsoft.com>

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.

Pull Request Overview

This PR adds a standalone scenarios document for portable backup and restore workflows in the oras CLI, splitting off use cases from a larger specification.

  • Introduces real-world scenarios demonstrating backup/restore needs across air-gapped, isolated, and multi-cloud environments
  • Illustrates existing workflow gaps and motivates unified commands in oras
  • Links to relevant GitHub issues and recommends proper oras copy usage
Comments suppressed due to low confidence (2)

docs/proposals/backup-restore-scenarios.md:48

  • [nitpick] This reads as two sentence fragments. Consider combining into one clear sentence, e.g., 'Dave, a security engineer at a FinTech company, needs to create a snapshot of the image and its referrers in an air-gapped environment by running the following flow:'.
Dave, a security engineer at a FinTech company. To create a snapshot of the image and its referrers in an air-gapped environment, Dave needs to run the following flow:

docs/proposals/backup-restore-scenarios.md:95

  • [nitpick] The title references oras pull/push, but the recommended solution uses oras copy. For clarity, consider updating the scenario title to mention oras copy or general backup commands.
### Scenario 4: Uploading and Downloading Image With Referrers Using `oras pull/push` 

Comment thread docs/proposals/backup-restore-scenarios.md Outdated

@shizhMSFT shizhMSFT 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.

LGTM

@Wwwsylvia Wwwsylvia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Feynman Zhou <feynmanzhou@microsoft.com>
Signed-off-by: Feynman Zhou <feynmanzhou@microsoft.com>
Comment thread docs/proposals/backup-restore-scenarios.md Outdated
Comment thread docs/proposals/backup-restore-scenarios.md
Signed-off-by: Feynman Zhou <feynmanzhou@microsoft.com>

@shizhMSFT shizhMSFT 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.

LGTM

Comment thread docs/proposals/backup-restore-scenarios.md Outdated
Comment thread docs/proposals/backup-restore-scenarios.md Outdated
Signed-off-by: Feynman Zhou <feynmanzhou@microsoft.com>
@FeynmanZhou FeynmanZhou requested a review from sajayantony July 23, 2025 03:15

@shizhMSFT shizhMSFT 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.

LGTM

@Wwwsylvia Wwwsylvia left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@Wwwsylvia Wwwsylvia merged commit ec22c82 into oras-project:main Jul 24, 2025
7 checks passed
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.

5 participants