-
Notifications
You must be signed in to change notification settings - Fork 997
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into fix_remain_remove_concurrency
- Loading branch information
Showing
38 changed files
with
1,165 additions
and
663 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/bash -e | ||
for log_file in /var/log/juicefs.log $HOME/.juicefs/juicefs.log; do | ||
if [ -f $log_file ]; then | ||
break | ||
fi | ||
done | ||
echo "tail -1000 $log_file" | ||
tail -1000 $log_file | ||
grep -i "<FATAL>\|panic" $log_file && exit 1 || true |
This file was deleted.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -0,0 +1,76 @@ | ||
name: "cache" | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'main' | ||
- 'release-**' | ||
paths: | ||
- '**/cache.yml' | ||
- '**/cache.sh' | ||
pull_request: | ||
branches: | ||
- 'main' | ||
- 'release-**' | ||
paths: | ||
- '**/cache.yml' | ||
- '**/cache.sh' | ||
schedule: | ||
- cron: '30 20 * * *' | ||
workflow_dispatch: | ||
|
||
jobs: | ||
cache: | ||
timeout-minutes: 60 | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 1 | ||
|
||
- name: mount coverage dir | ||
timeout-minutes: 5 | ||
uses: ./.github/actions/mount-coverage-dir | ||
with: | ||
mount_point: cover | ||
access_key: ${{ secrets.CI_COVERAGE_AWS_AK }} | ||
secret_key: ${{ secrets.CI_COVERAGE_AWS_SK }} | ||
token: ${{ secrets.CI_COVERAGE_AWS_TOKEN }} | ||
|
||
- name: Build | ||
timeout-minutes: 10 | ||
uses: ./.github/actions/build | ||
|
||
- name: Test | ||
run: | | ||
sudo GOCOVERDIR=$(pwd)/cover .github/scripts/cache.sh | ||
- name: Check juicefs log | ||
if: always() | ||
run: | | ||
sudo .github/scripts/check_juicefs_log.sh | ||
- name: Check /tmp/juicefs.log | ||
if: always() | ||
run: | | ||
sudo tail -n 1000 /tmp/juicefs.log | ||
- name: upload coverage report | ||
timeout-minutes: 5 | ||
uses: ./.github/actions/upload-coverage | ||
with: | ||
UPLOAD_TOKEN: ${{ secrets.CI_COVERAGE_FILE_UPLOAD_AUTH_TOKEN }} | ||
|
||
- name: Send Slack Notification | ||
if: failure() | ||
uses: juicedata/slack-notify-action@main | ||
with: | ||
channel-id: "${{ secrets.SLACK_CHANNEL_ID_FOR_PR_CHECK_NOTIFY }}" | ||
slack_bot_token: "${{ secrets.SLACK_BOT_TOKEN }}" | ||
|
||
- name: Setup upterm session | ||
if: failure() && (github.event.inputs.debug == 'true' || github.run_attempt != 1) | ||
# if: failure() | ||
timeout-minutes: 60 | ||
uses: lhotari/action-upterm@v1 |
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
Oops, something went wrong.