-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial concept for enhanced ssstar API (#116)
* Update deps and reorganize Update to the latest AWS SDK releases, dealing with the usual breakage as a result. Re-arrange dependencies and other workspace properties to avoid duplication by using workspace-level properties. Format TOML files with taplo consistent with the other Elastio projects. Update to Rust toolchain 1.69 * Add new `storage` module and initial API design. This new storage abstraction isn't implemented yet and isn't actually part of the create or extract logic. It's just the initial outline. * Refactor a bit and make the tar builder report where the data goes This is still a WIP but I was able to get code working reliably (and with a test) that calculates where in the tar stream the data for each object is stored. That will be important in Elastio later when we need to construct an index. * Fix warnings and clippy lints * Add byte offset to `tar_archive_object_written` progress reporter method * Remove `tar_` prefix from progress methods. Now that we have a new storage abstraction coming, the archive might not actually be tar format so keeping the `tar_` prefix would lead to confusion. * Fix warnings and lints * Uncomment some temporarily disabled test code * Fix windows build * Fix rustfmt (fuck!) * Add object timestamp to progress callback * Fix windows build harder * Disable coverage since it's always broken * Update `release.toml` for latest version of `cargo-release`
- Loading branch information
Showing
29 changed files
with
1,564 additions
and
967 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 |
---|---|---|
|
@@ -30,7 +30,7 @@ jobs: | |
toolchain: nightly | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
arguments: --all-features | ||
|
@@ -60,7 +60,7 @@ jobs: | |
profile: minimal | ||
override: true | ||
components: rustfmt | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Check formatting | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
@@ -79,7 +79,7 @@ jobs: | |
profile: minimal | ||
override: true | ||
components: clippy | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Clippy check | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
@@ -107,7 +107,7 @@ jobs: | |
with: | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Cache the minio binary | ||
id: cache-minio | ||
uses: actions/cache@v3 | ||
|
@@ -178,7 +178,7 @@ jobs: | |
- name: Install MUSL deps | ||
run: | | ||
sudo apt-get install musl musl-dev musl-tools | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Cargo build | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
|
@@ -202,7 +202,7 @@ jobs: | |
toolchain: stable | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
- name: Check documentation | ||
env: | ||
RUSTDOCFLAGS: -D warnings | ||
|
@@ -211,39 +211,3 @@ jobs: | |
command: doc | ||
args: --no-deps --document-private-items --all-features --workspace --examples | ||
|
||
coverage: | ||
needs: test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
- name: Install Rust toolchain | ||
uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
profile: minimal | ||
override: true | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Install minio | ||
shell: bash | ||
run: | | ||
mkdir -p $HOME/.local/bin | ||
cd $HOME/.local/bin | ||
wget https://dl.min.io/server/minio/release/linux-amd64/minio | ||
chmod +x minio | ||
echo "$HOME/.local/bin" >> $GITHUB_PATH | ||
- name: Run cargo-tarpaulin | ||
uses: actions-rs/[email protected] | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
with: | ||
args: '--all-features --workspace --ignore-tests --ignored --out Lcov' | ||
- name: Upload to Coveralls | ||
# upload only if push | ||
if: ${{ github.event_name == 'push' }} | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: './lcov.info' | ||
|
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
Oops, something went wrong.