-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stream archives to Azure Blob Storage in
bbs2gh migrate-repo
, rathe…
…r than loading the whole archive into memory (#978) When running a `bbs2gh migrate-repo` migration with Azure Blob Storage where the archive is larger than 2GB, currently it fails with a `System.IO.IOException` stating: > The file is too long. This operation is currently limited to supporting files less than 2 gigabytes in size. This switches to streaming the file, rather than reading it all into memory, mirroring the approach (and using the code!) from `gh gei`. Fixes #974. <!-- For the checkboxes below you must check each one to indicate that you either did the relevant task, or considered it and decided there was nothing that needed doing --> - [x] Did you write/update appropriate tests - [x] Release notes updated (if appropriate) - [x] Appropriate logging output - [x] Issue linked - [ ] Docs updated (or issue created) - [ ] New package licenses are added to `ThirdPartyNotices.txt` (if applicable) <!-- For docs we should review the docs at: https://docs.github.com/en/migrations/using-github-enterprise-importer and the README.md in this repo If a doc update is required based on the changes in this PR, it is sufficient to create an issue and link to it here. The doc update can be made later/separately. --> --------- Co-authored-by: Dylan Smith <dylanfromwinnipeg@gmail.com>
- Loading branch information
1 parent
7bf64fe
commit 103db85
Showing
3 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
- Include the migration ID in the default output filename when running `download-logs` | ||
- Include the date with the timestamp when writing to the log | ||
- When blob storage credentials are provided to the CLI but will not be used for a GHES migration, log a clear warning, not an info message | ||
- Unhide the `--archive-download-host` argument in the documentation for `gh bbs2gh migrate-repo` and `gh bbs2gh generate-script` | ||
- Fix support for Azure Blob Storage in `bbs2gh` migrations when the archive is larger than 2GB | ||
- Unhide the `--archive-download-host` argument in the documentation for `gh bbs2gh migrate-repo` and `gh bbs2gh generate-script` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters