-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Support compression for Actions logs #31761
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
Merged
wolfogre
merged 25 commits into
go-gitea:main
from
wolfogre:feature/compress_actions_log
Aug 9, 2024
Merged
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
03de907
feat: pkg zstd
wolfogre 2d98663
refactor: merge readers and writers
wolfogre a2560ff
Revert "refactor: merge readers and writers"
wolfogre 708f46b
chore: improve SeekableReader
wolfogre 1ddeaac
chore: rename
wolfogre 6b8c75c
test: TestWriterReader
wolfogre 481c2f6
test: more cases
wolfogre 54ca6fb
docs: zstd
wolfogre 40d4d7d
feat: TransferLogs
wolfogre 1a18aef
feat: OpenLogs
wolfogre 750cafa
test: test closer
wolfogre 77edd86
Merge branch 'main' into feature/compress_actions_log
wolfogre 5fa8edb
feat: add LOG_COMPRESSION
wolfogre f7977d2
docs: config comments
wolfogre 9c7e983
chore: go mod tidy
wolfogre 48092ff
refacotr: use code.gitea.io/gitea/modules/zstd
wolfogre e06fbdc
chore: update comments
wolfogre 3c015a9
chore: make go-licenses
wolfogre 4706d21
chore: tidy
wolfogre 33ecbd4
test: less test data
wolfogre 5ba49aa
chore: bump zstd-seekable-format-go
wolfogre 8b61b3a
chore: go mod tidy
wolfogre b180736
Merge branch 'main' into feature/compress_actions_log
GiteaBot 9e61772
Merge branch 'main' into feature/compress_actions_log
GiteaBot 5d61559
Merge branch 'main' into feature/compress_actions_log
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Copyright 2024 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package zstd | ||
|
||
import "github.com/klauspost/compress/zstd" | ||
|
||
type WriterOption = zstd.EOption | ||
|
||
var ( | ||
WithEncoderCRC = zstd.WithEncoderCRC | ||
WithEncoderConcurrency = zstd.WithEncoderConcurrency | ||
WithWindowSize = zstd.WithWindowSize | ||
WithEncoderPadding = zstd.WithEncoderPadding | ||
WithEncoderLevel = zstd.WithEncoderLevel | ||
WithZeroFrames = zstd.WithZeroFrames | ||
WithAllLitEntropyCompression = zstd.WithAllLitEntropyCompression | ||
WithNoEntropyCompression = zstd.WithNoEntropyCompression | ||
WithSingleSegment = zstd.WithSingleSegment | ||
WithLowerEncoderMem = zstd.WithLowerEncoderMem | ||
WithEncoderDict = zstd.WithEncoderDict | ||
WithEncoderDictRaw = zstd.WithEncoderDictRaw | ||
) | ||
|
||
type EncoderLevel = zstd.EncoderLevel | ||
|
||
const ( | ||
SpeedFastest EncoderLevel = zstd.SpeedFastest | ||
SpeedDefault EncoderLevel = zstd.SpeedDefault | ||
SpeedBetterCompression EncoderLevel = zstd.SpeedBetterCompression | ||
SpeedBestCompression EncoderLevel = zstd.SpeedBestCompression | ||
) | ||
|
||
type ReaderOption = zstd.DOption | ||
|
||
var ( | ||
WithDecoderLowmem = zstd.WithDecoderLowmem | ||
WithDecoderConcurrency = zstd.WithDecoderConcurrency | ||
WithDecoderMaxMemory = zstd.WithDecoderMaxMemory | ||
WithDecoderDicts = zstd.WithDecoderDicts | ||
WithDecoderDictRaw = zstd.WithDecoderDictRaw | ||
WithDecoderMaxWindow = zstd.WithDecoderMaxWindow | ||
WithDecodeAllCapLimit = zstd.WithDecodeAllCapLimit | ||
WithDecodeBuffersBelow = zstd.WithDecodeBuffersBelow | ||
IgnoreChecksum = zstd.IgnoreChecksum | ||
) | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.