fix: skip dirs with no permissions for release-1.0 #6711
Workflow file for this run
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
name: "pjdfstest" | |
on: | |
push: | |
branches: | |
- 'main' | |
- 'release-**' | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
pull_request: | |
#The branches below must be a subset of the branches above | |
branches: | |
- 'main' | |
- 'release-**' | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
workflow_dispatch: | |
jobs: | |
pjdfstest: | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Set up Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: '1.18.x' | |
- uses: shogo82148/actions-setup-perl@v1 | |
with: | |
perl-version: '5.34' | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 1 | |
- name: Build linux target | |
run: make juicefs | |
- name: Run Redis | |
run: | | |
sudo docker run -d --name redis -v redis-data:/data \ | |
-p 6379:6379 redis redis-server --appendonly yes | |
- name: Juicefs Format | |
run: | | |
sudo ./juicefs format redis://127.0.0.1:6379/1 --trash-days 0 pics | |
- name: Juicefs Mount | |
run: | | |
sudo ./juicefs mount -d redis://127.0.0.1:6379/1 /tmp/jfs --no-usage-report & | |
- name: Pjdfstest | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libtap-harness-archive-perl | |
cd /tmp/jfs/ | |
git clone https://github.com/sanwan/pjdfstest.git | |
cd pjdfstest | |
autoreconf -ifs | |
./configure | |
make pjdfstest | |
sudo prove -rv tests/ | |
- name: Log | |
if: ${{ always() }} | |
run: | | |
tail -n 1000 /var/log/juicefs.log | |
grep "<FATAL>:" /var/log/juicefs.log && exit 1 || true | |
- 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() }} | |
uses: lhotari/action-upterm@v1 |