Skip to content

Commit

Permalink
[v1.15.x] github/actions: Synchronize with main
Browse files Browse the repository at this point in the history
Actions are failing on the branch due to out-of-date settings.

Signed-off-by: Jianxin Xiong <[email protected]>
  • Loading branch information
j-xiong committed Nov 14, 2023
1 parent 026719a commit cc16558
Show file tree
Hide file tree
Showing 7 changed files with 72 additions and 56 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ env:
abi-dumper
build-essential
debhelper
dh-systemd
fakeroot
gcc
git
Expand All @@ -21,7 +20,7 @@ env:
ninja-build
pandoc
pkg-config
python
python-is-python3
rpm
sparse
valgrind
Expand All @@ -37,17 +36,18 @@ env:
--enable-udp
--enable-usnic
--enable-verbs=rdma-core/build
--enable-sm2
RDMA_CORE_PATH: 'rdma-core/build'
RDMA_CORE_VERSION: v34.1
jobs:
coverity:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- name: Install dependencies (Linux)
run: |
sudo apt-get update
sudo apt-get install -y ${{ env.APT_PACKAGES }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Download Coverity tools
run: |
wget https://scan.coverity.com/download/linux64 --post-data "token=${{ secrets.COVERITY_SCAN_TOKEN }}&project=ofiwg%2Flibfabric" -O coverity_tool.tgz
Expand Down Expand Up @@ -78,13 +78,13 @@ jobs:
tar czvf libfabric.tgz cov-int
curl \
--form token=${{ secrets.COVERITY_SCAN_TOKEN }} \
--form email=[email protected] \
--form email=[email protected] \
--form [email protected] \
--form version="main" \
--form description="`$PWD/install/bin/fi_info -l`" \
https://scan.coverity.com/builds?project=ofiwg%2Flibfabric
- name: Upload build logs
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: coverity-build-log.txt
path: cov-int/build-log.txt
21 changes: 12 additions & 9 deletions .github/workflows/gh-man.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ fi
# Yes, we committed something. Push the branch and make a PR.
# Extract the PR number.
git push --set-upstream origin $branch_name
url=`hub pull-request -b gh-pages -m 'Update GH man pages'`
url=`gh pr create --base gh-pages --title 'Update GH man pages' --body ''`
pr_num=`echo $url | cut -d/ -f7`

# Wait for the required "DCO" CI to complete
Expand All @@ -67,9 +67,9 @@ echo "Waiting up to $max_seconds seconds for DCO CI to complete..."
while test $i -lt $i_max; do
date
set +e
status=`hub ci-status --format "%t %S%n" | egrep '^DCO' | awk '{ print $2 }'`
status=`gh pr checks | egrep '^DCO' | awk '{ print $2 }'`
set -e
if test "$status" = "success"; then
if test "$status" = "pass"; then
echo "DCO CI is complete!"
break
fi
Expand All @@ -79,12 +79,15 @@ done

status=0
if test $i -lt $i_max; then
# Sadly, there is no "hub" command to merge a PR. So do it by
# hand.
curl \
-XPUT \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/$GITHUB_REPOSITORY/pulls/$pr_num/merge
# rebase the commit onto the base branch
gh pr merge $pr_num -r

# command to do it by hand when "hub" was used which didn't have command
# to merge a PR. keep it here for reference.
#curl \
# -XPUT \
# -H "Authorization: token $GITHUB_TOKEN" \
# https://api.github.com/repos/$GITHUB_REPOSITORY/pulls/$pr_num/merge
else
echo "Sad panda; DCO CI didn't complete -- did not merge $url"
status=1
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/gh-man.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- main
paths:
- 'man/*.md'
- 'fabtests/man/*.md'
workflow_dispatch:

jobs:
Expand All @@ -21,7 +22,7 @@ jobs:
echo "$GITHUB_DATA"
- name: Check out the git repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Update the man pages in branch gh-pages
run: .github/workflows/gh-man.sh
Expand Down
25 changes: 16 additions & 9 deletions .github/workflows/nroff-elves.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ for file in `ls man/*.md`; do
perl config/md2nroff.pl --source=$file
done

for file in `ls fabtests/man/*.md`; do
perl config/md2nroff.pl --source=$file
done

git config --global user.name "OFIWG Bot"
git config --global user.email "[email protected]"

Expand All @@ -63,7 +67,7 @@ fi
# Yes, we committed something. Push the branch and make a PR.
# Extract the PR number.
git push --set-upstream origin $branch_name
url=`hub pull-request -b $BASE_REF -m 'Update nroff-generated man pages'`
url=`gh pr create --base $BASE_REF --title 'Update nroff-generated man pages' --body ''`
pr_num=`echo $url | cut -d/ -f7`

# Wait for the required "DCO" CI to complete
Expand All @@ -76,9 +80,9 @@ echo "Waiting up to $max_seconds seconds for DCO CI to complete..."
while test $i -lt $i_max; do
date
set +e
status=`hub ci-status --format "%t %S%n" | egrep '^DCO' | awk '{ print $2 }'`
status=`gh pr checks | egrep '^DCO' | awk '{ print $2 }'`
set -e
if test "$status" = "success"; then
if test "$status" = "pass"; then
echo "DCO CI is complete!"
break
fi
Expand All @@ -88,12 +92,15 @@ done

status=0
if test $i -lt $i_max; then
# Sadly, there is no "hub" command to merge a PR. So do it by
# hand.
curl \
-XPUT \
-H "Authorization: token $GITHUB_TOKEN" \
https://api.github.com/repos/$GITHUB_REPOSITORY/pulls/$pr_num/merge
# rebase the commit onto the base branch
gh pr merge $pr_num -r

# command to do it by hand when "hub" was used which didn't have command
# to merge a PR. keep it here for reference.
#curl \
# -XPUT \
# -H "Authorization: token $GITHUB_TOKEN" \
# https://api.github.com/repos/$GITHUB_REPOSITORY/pulls/$pr_num/merge
else
echo "Sad panda; DCO CI didn't complete -- did not merge $url"
status=1
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nroff-elves.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
paths:
- 'man/*.md'
- 'fabtests/man/*.md'
workflow_dispatch:

jobs:
Expand All @@ -19,10 +20,10 @@ jobs:
echo "$GITHUB_DATA"
- name: Check out the git repo
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Get the required packages
run: sudo apt install -y pandoc hub
run: sudo apt install -y pandoc

- name: Build the nroff man pages
run: .github/workflows/nroff-elves.sh
Expand Down
60 changes: 32 additions & 28 deletions .github/workflows/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ env:
abi-dumper
build-essential
debhelper
dh-systemd
fakeroot
gcc
git
liblttng-ust-dev
libnl-3-200 libnl-3-dev libnl-route-3-200 libnl-route-3-dev
libnuma-dev
libudev-dev
Expand All @@ -18,63 +18,68 @@ env:
ninja-build
pandoc
pkg-config
python
python-is-python3
rpm
sparse
valgrind
wget
APT_REPOS: >-
ppa:lttng/ppa
OFI_PROVIDER_FLAGS: >-
--enable-efa=rdma-core/build
--enable-efa=$PWD/rdma-core/build
--enable-mrail
--enable-psm3=rdma-core/build
--enable-psm3=$PWD/rdma-core/build
--enable-rxd
--enable-rxm
--enable-shm
--enable-tcp
--enable-udp
--enable-usnic
--enable-verbs=rdma-core/build
RDMA_CORE_PATH: 'rdma-core/build'
--enable-verbs=$PWD/rdma-core/build
RDMA_CORE_PATH: '$PWD/rdma-core/build'
RDMA_CORE_VERSION: v34.1
jobs:
linux:
runs-on: '${{ matrix.os }}'
strategy:
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-22.04
cc:
- gcc
- clang
fail-fast: false
steps:
- name: Install dependencies (Linux)
run: |
sudo apt-add-repository ${{ env.APT_REPOS }}
sudo apt-get update
sudo apt-get install -y ${{ env.APT_PACKAGES }}
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build Check
run: |
set -x
git clone --depth 1 -b ${{ env.RDMA_CORE_VERSION }} https://github.com/linux-rdma/rdma-core.git
pushd rdma-core; bash build.sh; popd
export LD_LIBRARY_PATH="${{ env.RDMA_CORE_PATH }}/lib:$LD_LIBRARY_PATH"
./autogen.sh
./configure --prefix=$PWD/install ${{ env.OFI_PROVIDER_FLAGS }} CC=${{ matrix.cc }}
./configure --prefix=$PWD/install ${{ env.OFI_PROVIDER_FLAGS }} CC=${{ matrix.cc }} --with-lttng
make -j 2; make install
DISTCHECK_CONFIGURE_FLAGS="${{ env.OFI_PROVIDER_FLAGS }}" make -j 2 distcheck
$PWD/install/bin/fi_info -l
- name: Upload build logs
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: config.log
name: ${{ matrix.os }}-${{ matrix.cc }}-config.log
path: config.log
hmem:
runs-on: ubuntu-20.04
steps:
- name: Install dependencies (Linux)
run: |
sudo apt-add-repository ${{ env.APT_REPOS }}
sudo apt-get update
sudo apt-get install -y ${{ env.APT_PACKAGES }}
- name: Install CUDA
Expand All @@ -88,17 +93,11 @@ jobs:
run: |
echo "Installing Ze SDK"
sudo apt-get install -y gpg-agent wget
# Temporary workaround to avoid 1.6.2 (current version in the distro) which is failing to build
wget -q https://github.com/oneapi-src/level-zero/releases/download/v1.7.4/level-zero_1.7.4+u18.04_amd64.deb
wget -q https://github.com/oneapi-src/level-zero/releases/download/v1.7.4/level-zero-devel_1.7.4+u18.04_amd64.deb
sudo apt install ./level-zero_1.7.4+u18.04_amd64.deb ./level-zero-devel_1.7.4+u18.04_amd64.deb
#wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | sudo apt-key add -
#sudo apt-add-repository 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main'
#sudo apt-get update
#sudo apt-get install -y level-zero level-zero-dev
- uses: actions/checkout@v2
wget -qO - https://repositories.intel.com/graphics/intel-graphics.key | sudo apt-key add -
sudo apt-add-repository 'deb [arch=amd64] https://repositories.intel.com/graphics/ubuntu focal main'
sudo apt-get update
sudo apt-get install -y level-zero level-zero-dev
- uses: actions/checkout@v4
- name: HMEM Checks
run: |
set -x
Expand All @@ -110,33 +109,38 @@ jobs:
./autogen.sh
./configure --prefix=$PWD/install ${{ env.OFI_PROVIDER_FLAGS }} \
--with-cuda=/usr/local/cuda --with-ze \
--with-lttng \
CC=${{ matrix.cc }}
make -j 2; make install
$PWD/install/bin/fi_info -l
$PWD/install/bin/fi_info -c FI_HMEM
- name: Upload build logs
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: config.log
name: hmem-config.log
path: config.log
macos:
runs-on: macos-10.15
runs-on: macos-12
steps:
- name: Install dependencies (Mac OS)
run: |
brew install automake
brew install libtool
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Build Check
run: |
./autogen.sh
./configure --prefix=$PWD/install
make -j 2; make install
$PWD/install/bin/fi_info -l
cd fabtests
./autogen.sh
./configure --with-libfabric=$PWD/../install
make -j2
- name: Upload build logs
if: failure()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: config.log
name: macos-12-config.log
path: config.log
2 changes: 1 addition & 1 deletion .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
pull-requests: write

steps:
- uses: actions/stale@v3
- uses: actions/stale@v8
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-stale: 360
Expand Down

0 comments on commit cc16558

Please sign in to comment.