Skip to content

Commit 5d96bb7

Browse files
committed
chore: Merge branch 'main' into release
2 parents c692310 + 01e2058 commit 5d96bb7

File tree

717 files changed

+4376
-151262
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

717 files changed

+4376
-151262
lines changed

.gitconfig/hooks/commit-msg

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env bash
2+
3+
if [ -z "$1" ]; then
4+
echo "Missing argument (commit message). Did you try to run this manually?"
5+
exit 1
6+
fi
7+
8+
commitTitle="$(cat $1 | head -n1)"
9+
10+
# ignore merge requests
11+
if echo "$commitTitle" | grep -qE "^Merge branch \'"; then
12+
echo "Commit hook: ignoring branch merge"
13+
exit 0
14+
fi
15+
16+
# check semantic versioning scheme
17+
if ! echo "$commitTitle" | grep -qE '^(style|feat|fix|docs|refactor|perf|test|chore)(\([a-zA-Z0-9\-_]+\))?:\s.+'; then
18+
echo "Your commit title did not follow semantic versioning: $commitTitle"
19+
echo "Please see https://www.conventionalcommits.org/en/v1.0.0/"
20+
exit 1
21+
fi
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Cluster Test
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Install test dependencies
17+
run: sudo apt-get install -y s3cmd
18+
19+
- name: Build linux amd64
20+
run: env CGO_ENABLED=0 go build -o tigrisfs-linux-amd64 -v && ln -s tigrisfs-linux-amd64 tigrisfs
21+
22+
- name: Run cluster tests
23+
run: NUM_ITER=100 SAME_PROCESS_MOUNT=1 make run-cluster-test
24+
timeout-minutes: 25

.github/workflows/go-releaser.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: goreleaser
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
goreleaser:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Fetch Git tags
17+
run: git fetch --force --tags
18+
19+
- name: Import GPG key
20+
id: import_gpg
21+
uses: crazy-max/ghaction-import-gpg@v6
22+
with:
23+
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
24+
passphrase: ${{ secrets.PASSPHRASE }}
25+
26+
- name: Setup Go
27+
uses: actions/setup-go@v5
28+
with:
29+
go-version: '>=1.22'
30+
cache: true
31+
32+
- name: Run GoReleaser
33+
uses: goreleaser/goreleaser-action@v6
34+
with:
35+
distribution: goreleaser
36+
version: latest
37+
args: release
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
40+
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}

.github/workflows/lint.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup golangci-lint
17+
run: |
18+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $HOME/.local/bin v1.64.7
19+
echo "$HOME/.local/bin" >> $GITHUB_PATH
20+
21+
- name: Lint
22+
run: make run-lint

.github/workflows/release.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: release
2+
on:
3+
push:
4+
branches:
5+
- "release"
6+
jobs:
7+
test:
8+
uses: ./.github/workflows/test.yaml
9+
10+
cluster-test:
11+
uses: ./.github/workflows/cluster_test.yaml
12+
13+
xfs-test:
14+
uses: ./.github/workflows/xfstests.yaml
15+
16+
release:
17+
runs-on: ubuntu-latest
18+
needs: [test,cluster-test,xfs-test]
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-node@v4
22+
with:
23+
node-version: 20
24+
- name: release
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GH_BOT_ACCESS_TOKEN }}
27+
run: npx semantic-release --debug

.github/workflows/release.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/test.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Unittests
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Build linux amd64
17+
run: env CGO_ENABLED=0 go build -o tigrisfs-linux-amd64 -v && ln -s tigrisfs-linux-amd64 tigrisfs
18+
19+
- name: Run tests
20+
run: SAME_PROCESS_MOUNT=1 make run-test

.github/workflows/test.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

.github/workflows/xfstests.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: XFS Tests
2+
3+
on:
4+
workflow_call:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Build linux amd64
17+
run: env CGO_ENABLED=0 go build -o tigrisfs-linux-amd64 -v && ln -s tigrisfs-linux-amd64 tigrisfs
18+
19+
- name: Run xfstests
20+
run: make run-xfstests
21+
timeout-minutes: 10

.gitmodules

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)