Skip to content

fix: skip dirs with no permissions for release-1.0 (#4125) #533

fix: skip dirs with no permissions for release-1.0 (#4125)

fix: skip dirs with no permissions for release-1.0 (#4125) #533

name: "ltp-syscalls-middle"
on:
push:
branches:
- 'release-**'
paths-ignore:
- 'docs/**'
pull_request:
#The branches below must be a subset of the branches above
branches:
- 'release-**'
paths-ignore:
- 'docs/**'
schedule:
- cron: '30 20 * * *'
workflow_dispatch:
jobs:
ltpsyscallsmiddle:
runs-on: ubuntu-20.04
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.18.x'
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 1
- name: Build linux target
run: |
make juicefs
cp .github/workflows/bash/rm_syscalls /tmp/
cp .github/workflows/bash/rm_list.sh /tmp/
- 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 --trash-days 0 redis://127.0.0.1:6379/1 pics
- name: Juicefs Mount
run: |
sudo ./juicefs mount --enable-xattr -d redis://127.0.0.1:6379/1 /tmp/jfs --no-usage-report &
- name: LTP Syscalls
run: |
wget -O ltp.tar.gz https://github.com/linux-test-project/ltp/archive/refs/tags/20210927.tar.gz
mkdir ltp
tar -xvf ltp.tar.gz -C ltp --strip-components 1
cd ltp
make autotools
./configure
make
sudo make install
cd /opt/ltp
sudo chmod +x /tmp/rm_list.sh
sudo chmod 777 runtest/syscalls
sudo /tmp/rm_list.sh /tmp/rm_syscalls /opt/ltp/runtest/syscalls
sudo head -n 1300 runtest/syscalls > runtest/syscallstmp
sudo tail -n 700 runtest/syscallstmp > runtest/syscallsmiddle
sudo chmod 777 runtest/syscallsmiddle
sudo ./runltp -d /tmp/jfs -f syscallsmiddle -C result.log.failed -T result.log.tconf -l result.log
- name: Log
if: ${{ always() }}
run: |
sudo tail -n 100 /opt/ltp/output/result.log.failed
tail -300 /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