Fix "BLOCK_SIZE_S3 unrecognized" error caused by config reuse #4794
Workflow file for this run
This file contains hidden or 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: Checks | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| jobs: | |
| check-ck: | |
| name: Check Repository Dependency | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: 'recursive' | |
| - name: Verify 4rdparty commits | |
| if: github.ref != 'refs/heads/main' | |
| run: ./.github/scripts/check_deps.sh | |
| - name: Skip check on main branch | |
| if: github.ref == 'refs/heads/main' | |
| run: echo "Skipping dependency check on main branch, considered success." | |
| black: | |
| name: Check Code Style with Black | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run Black | |
| uses: psf/black@stable | |
| ruff: | |
| name: Check Code Style with Ruff | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python environment | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: pip3 install ruff | |
| - name: Install reviewdog | |
| uses: reviewdog/action-setup@e04ffabe3898a0af8d0fb1af00c188831c4b5893 | |
| - name: Run ruff with reviewdog | |
| env: | |
| REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| ruff check . \ | |
| --output-format=rdjson \ | |
| --exit-zero \ | |
| --no-fix \ | |
| | reviewdog \ | |
| -f=rdjson \ | |
| -name="ruff" \ | |
| -reporter=github-pr-review \ | |
| -filter-mode=diff_context \ | |
| -fail-on-error=true | |
| upload-success-artifact: | |
| name: Upload Success Signal | |
| runs-on: ubuntu-latest | |
| needs: [check-ck, black, ruff] | |
| steps: | |
| - name: Create success signal file | |
| run: echo "success" > checks_signal.txt | |
| - name: Upload success artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: checks-signal-${{ github.sha }} | |
| path: checks_signal.txt | |
| upload-failure-artifact: | |
| name: Upload Failure Signal | |
| runs-on: ubuntu-latest | |
| needs: [check-ck, black, ruff] | |
| if: ${{ always() && (needs.check-ck.result != 'success' || needs.black.result != 'success' || needs.ruff.result != 'success') }} | |
| steps: | |
| - name: Create failure signal file with failed jobs | |
| run: | | |
| echo "failure" > checks_signal.txt | |
| if [ "${{ needs.check-ck.result }}" != "success" ]; then | |
| echo "FAILED: check-ck (${{ needs.check-ck.result }})" >> checks_signal.txt | |
| fi | |
| if [ "${{ needs.black.result }}" != "success" ]; then | |
| echo "FAILED: black (${{ needs.black.result }})" >> checks_signal.txt | |
| fi | |
| if [ "${{ needs.ruff.result }}" != "success" ]; then | |
| echo "FAILED: ruff (${{ needs.ruff.result }})" >> checks_signal.txt | |
| fi | |
| - name: Upload failure artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: checks-signal-${{ github.sha }} | |
| path: checks_signal.txt |