Skip to content

Commit

Permalink
chore(fuser): embed fuser fork as a submodule
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeny (Zhenia) Dolgii <[email protected]>
  • Loading branch information
ujinho committed Feb 19, 2025
1 parent 75a2373 commit dd3080f
Show file tree
Hide file tree
Showing 59 changed files with 30 additions and 14,108 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Build
run: cargo build --release
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Build
run: cargo build --release
Expand Down Expand Up @@ -207,7 +207,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Build
run: cargo build --release
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/bench_s3express.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Build
run: cargo build --release
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Build
run: cargo build --release
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Package ${{ matrix.crate }} crate
# `--no-verify` avoids building using crates.io dependencies, which for local packages may not be updated yet
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Install operating system dependencies
uses: ./.github/actions/install-dependencies
Expand Down Expand Up @@ -133,7 +133,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Install operating system dependencies
uses: ./.github/actions/install-dependencies
Expand Down Expand Up @@ -174,7 +174,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
components: rust-src
- name: Install operating system dependencies
Expand Down
22 changes: 13 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Cargo cache
uses: actions/cache@v3
Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Cargo cache
uses: actions/cache@v3
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Cargo cache
uses: actions/cache@v3
Expand Down Expand Up @@ -140,7 +140,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Cargo cache
uses: actions/cache@v3
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Install operating system dependencies
uses: ./.github/actions/install-dependencies
Expand All @@ -194,11 +194,13 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
components: rustfmt
- name: Check format
Expand All @@ -221,7 +223,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
components: clippy
- name: Cargo cache
Expand Down Expand Up @@ -250,7 +252,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
components: rust-docs
- name: Cargo cache
Expand Down Expand Up @@ -279,7 +281,7 @@ jobs:
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
# setup-rust-toolchain sets "-D warnings" by default, and Rust treats any warning as compile error.
# We need to this currently because `vendor/fuser` contains some warnings and it breaks the build.
# We need to this currently because `mountpoint-s3-fuser` contains some warnings and it breaks the build.
rustflags: ""
- name: Install operating system dependencies
uses: ./.github/actions/install-dependencies
Expand All @@ -306,5 +308,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
- name: Run cargo deny
uses: EmbarkStudios/cargo-deny-action@v2
2 changes: 1 addition & 1 deletion .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,5 @@
url = https://github.com/awslabs/aws-c-s3.git
[submodule "mountpoint-s3-fuser"]
path = mountpoint-s3-fuser
url = git@github.com:awslabs/mountpoint-s3.git
url = https://github.com/awslabs/mountpoint-s3.git
branch = fuser/fork
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ members = [
"mountpoint-s3-crt-sys",
"mountpoint-s3-client",
"mountpoint-s3",
"vendor/fuser",
"mountpoint-s3-fuser",
]
resolver = "2"

Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Most of these targets just exist so we can avoid running clippy and rustfmt on the vendored
# fuser crate. If those tools ever get stabilized `ignore` features, or we stop vendoring, this can
# Most of these targets just exist so we can avoid running clippy and rustfmt on the
# `fuser`'s fork crate (`mountpoint-s3-fuser`). If those tools ever get stabilized `ignore` features, or we stop vendoring, this can
# go away.

CRATES = mountpoint-s3-crt-sys mountpoint-s3-crt mountpoint-s3-client mountpoint-s3
Expand Down
2 changes: 1 addition & 1 deletion mountpoint-s3/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ publish = false
default-run = "mount-s3"

[dependencies]
fuser = { path = "../vendor/fuser", version = "0.15.0", features = ["abi-7-28"] }
fuser = { path = "../mountpoint-s3-fuser", version = "0.15.0", features = ["abi-7-28"] }
mountpoint-s3-client = { path = "../mountpoint-s3-client", version = "0.13.1" }

anyhow = { version = "1.0.95", features = ["backtrace"] }
Expand Down
15 changes: 3 additions & 12 deletions vendor-fuser.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
#!/usr/bin/env bash
set -euo pipefail

FUSER_VENDOR_PATH="vendor/fuser"
FUSER_PATH="mountpoint-s3-fuser"
BASE_PATH=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
FUSER_FULL_PATH="$BASE_PATH/$FUSER_VENDOR_PATH"

STATUS=$(git status --porcelain $FUSER_FULL_PATH)
if [ -n "$STATUS" ]; then
echo >&2 "Refusing to re-vendor because the fuser directory is dirty"
exit 1
fi
FUSER_FULL_PATH="$BASE_PATH/$FUSER_PATH"

rm -rf $FUSER_FULL_PATH

git clone --branch fuser/fork ssh://[email protected]/awslabs/mountpoint-s3.git $FUSER_FULL_PATH
COMMIT=$(git -C $FUSER_FULL_PATH rev-parse --short HEAD)

rm -rf $FUSER_FULL_PATH/.git
git submodule update --remote $FUSER_FULL_PATH

git add $FUSER_FULL_PATH

Expand Down
14 changes: 0 additions & 14 deletions vendor/fuser/.cirrus.yml

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/fuser/.dockerignore

This file was deleted.

65 changes: 0 additions & 65 deletions vendor/fuser/.github/workflows/ci.yml

This file was deleted.

4 changes: 0 additions & 4 deletions vendor/fuser/.gitignore

This file was deleted.

Loading

0 comments on commit dd3080f

Please sign in to comment.