Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
88 changes: 44 additions & 44 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:
needs-kubernetes-tests: ${{ steps.selective-checks.outputs.needs-kubernetes-tests }}
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Fetch incoming commit ${{ github.sha }} with its parent
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
fetch-depth: 2
Expand Down Expand Up @@ -81,9 +81,9 @@ jobs:
fail-fast: false
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache for npm dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.pnpm-store
Expand All @@ -92,7 +92,7 @@ jobs:
restore-keys: |
${{ runner.os }}-pnpm-
- name: Cache for maven dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.m2/repository
Expand All @@ -101,7 +101,7 @@ jobs:
restore-keys: |
maven-repo-
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand All @@ -110,21 +110,21 @@ jobs:
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
- name: Store binaries for tests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ozone-bin
path: |
hadoop-ozone/dist/target/ozone-*.tar.gz
!hadoop-ozone/dist/target/ozone-*-src.tar.gz
retention-days: 1
- name: Store source tarball for compilation
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ozone-src
path: hadoop-ozone/dist/target/ozone-*-src.tar.gz
retention-days: 1
- name: Store Maven repo for tests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ozone-repo
path: |
Expand All @@ -144,7 +144,7 @@ jobs:
fail-fast: false
steps:
- name: Download Ozone source tarball
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ozone-src
- name: Untar sources
Expand All @@ -157,7 +157,7 @@ jobs:
git config user.email '[email protected]'
git commit --allow-empty -a -m 'workaround for HADOOP-19011'
- name: Cache for maven dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
~/.m2/repository
Expand All @@ -166,7 +166,7 @@ jobs:
restore-keys: |
maven-repo-
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
Expand All @@ -187,15 +187,15 @@ jobs:
fail-fast: false
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
if: matrix.check != 'bats'
- name: Checkout project with history
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
if: matrix.check == 'bats'
- name: Cache for maven dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
~/.m2/repository
Expand All @@ -205,7 +205,7 @@ jobs:
maven-repo-
if: ${{ !contains('author,bats,docs', matrix.check) }}
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
Expand All @@ -218,7 +218,7 @@ jobs:
run: hadoop-ozone/dev-support/checks/_summary.sh target/${{ matrix.check }}/summary.txt
if: ${{ !cancelled() }}
- name: Archive build results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: ${{ matrix.check }}
Expand All @@ -237,9 +237,9 @@ jobs:
fail-fast: false
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache for maven dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
~/.m2/repository
Expand All @@ -248,7 +248,7 @@ jobs:
restore-keys: |
maven-repo-
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
Expand All @@ -261,7 +261,7 @@ jobs:
run: hadoop-ozone/dev-support/checks/_summary.sh target/${{ matrix.check }}/summary.txt
if: ${{ !cancelled() }}
- name: Archive build results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: ${{ matrix.check }}
Expand All @@ -276,9 +276,9 @@ jobs:
if: needs.build-info.outputs.needs-dependency-check == 'true'
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download compiled Ozone binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ozone-bin
- name: Untar binaries
Expand All @@ -290,7 +290,7 @@ jobs:
export OZONE_DIST_DIR=`pwd`/dist
./hadoop-ozone/dev-support/checks/dependency.sh
- name: Archive build results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: dependency
Expand All @@ -305,9 +305,9 @@ jobs:
if: needs.build-info.outputs.needs-dependency-check == 'true'
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache for maven dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
~/.m2/repository
Expand All @@ -317,7 +317,7 @@ jobs:
maven-repo-
- name: Download Ozone repo
id: download-ozone-repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ozone-repo
path: |
Expand All @@ -330,7 +330,7 @@ jobs:
run: hadoop-ozone/dev-support/checks/_summary.sh target/${{ github.job }}/summary.txt
if: ${{ !cancelled() }}
- name: Archive build results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: ${{ github.job }}
Expand All @@ -350,9 +350,9 @@ jobs:
fail-fast: false
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download compiled Ozone binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ozone-bin
- name: Untar binaries
Expand All @@ -376,7 +376,7 @@ jobs:
run: hadoop-ozone/dev-support/checks/_summary.sh target/${{ github.job }}/summary.txt
if: ${{ !cancelled() }}
- name: Archive build results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: acceptance-${{ matrix.suite }}
Expand All @@ -392,9 +392,9 @@ jobs:
if: needs.build-info.outputs.needs-kubernetes-tests == 'true'
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Download compiled Ozone binaries
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ozone-bin
- name: Untar binaries
Expand All @@ -412,7 +412,7 @@ jobs:
run: hadoop-ozone/dev-support/checks/_summary.sh target/${{ github.job }}/summary.txt
if: ${{ !cancelled() }}
- name: Archive build results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: kubernetes
Expand Down Expand Up @@ -441,9 +441,9 @@ jobs:
fail-fast: false
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache for maven dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
~/.m2/repository
Expand All @@ -453,14 +453,14 @@ jobs:
maven-repo-
- name: Download Ozone repo
id: download-ozone-repo
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: ozone-repo
path: |
~/.m2/repository/org/apache/ozone
continue-on-error: true
- name: Setup java
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 8
Expand All @@ -483,7 +483,7 @@ jobs:
run: hadoop-ozone/dev-support/checks/_summary.sh target/${{ github.job }}/summary.txt
if: ${{ !cancelled() }}
- name: Archive build results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: it-${{ matrix.profile }}
Expand All @@ -499,11 +499,11 @@ jobs:
- integration
steps:
- name: Checkout project
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache for maven dependencies
uses: actions/cache/restore@v3
uses: actions/cache/restore@v4
with:
path: |
~/.m2/repository
Expand All @@ -512,7 +512,7 @@ jobs:
restore-keys: |
maven-repo-
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path: target/artifacts
- name: Untar binaries
Expand All @@ -522,7 +522,7 @@ jobs:
- name: Calculate combined coverage
run: ./hadoop-ozone/dev-support/checks/coverage.sh
- name: Setup java 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: 17
Expand All @@ -533,7 +533,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
- name: Archive build results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: coverage
path: target/coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/close-pending.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Execute close-pending script
if: github.repository == 'apache/ozone'
run: ./.github/close-pending.sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/comments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-20.04
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Execute process-comment script
run: ./.github/process-comment.sh
env:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dependabot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
#Delete the lockfile created by dependabot
rm -rf hadoop-ozone/recon/src/main/resources/webapps/recon/ozone-recon-web/pnpm-lock.yaml
- name: Install NodeJS v${{ env.NODE_VERSION }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install pnpm v${{ env.PNPM_VERSION }} and recreate lockfile
Expand All @@ -75,4 +75,4 @@ jobs:
git config --global user.name 'Github Actions'
git config --global user.email '[email protected]'
git commit -m "[auto] Generated pnpm-lock from actions for $OZONE_SHA" || true
git push origin HEAD:${{ steps.get_branch_name.outputs.branch_name }}
git push origin HEAD:${{ steps.get_branch_name.outputs.branch_name }}
Loading