Skip to content

Commit af72065

Browse files
authored
Merge pull request #7351 from artemry-mlnx/artemry/enable_mlnx_ci_for_release_branches_v4
Enabled Mellanox CI for release branches (changes for v4.0.x branch).
2 parents 43ecbb1 + 0f1f13c commit af72065

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed

.ci/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Open MPI Continuous Integration (CI) Services
2+
## Mellanox Open MPI CI
3+
[![Build Status](https://dev.azure.com/mlnx-swx/mellanox-ompi/_apis/build/status/Mellanox%20CI?branchName=v4.0.x)](https://dev.azure.com/mlnx-swx/mellanox-ompi/_build/latest?definitionId=12&branchName=v4.0.x)
4+
### Scope
5+
[Mellanox](https://www.mellanox.com/) Open MPI CI is intended to verify Open MPI with recent Mellanox SW components ([Mellanox OFED](https://www.mellanox.com/page/products_dyn?product_family=26), [UCX](https://www.mellanox.com/page/products_dyn?product_family=281&mtag=ucx) and other [HPC-X](https://www.mellanox.com/page/products_dyn?product_family=189&mtag=hpc-x) components) in the Mellanox lab environment.
6+
7+
CI is managed by [Azure Pipelines](https://docs.microsoft.com/en-us/azure/devops/pipelines/?view=azure-devops) service.
8+
9+
Mellanox Open MPI CI includes:
10+
* Open MPI building with internal stable engineering versions of UCX and HCOLL. The building is run in Docker-based environment.
11+
* Sanity functional testing.
12+
### How to Run CI
13+
Mellanox Open MPI CI is triggered upon the following events:
14+
* Push a commit into the master branch or release branches (starting from v4.0.x). CI is started automatically. CI status and log files are available on the Azure DevOps server.
15+
* Create a pull request (PR). CI status is visible in the PR status. CI is restarted automatically upon each new commit within the PR. CI status and log files are also available on the Azure DevOps server.
16+
* Trigger CI with special PR comments (for example, `/azp run`). Comment triggers are available only if the comment author has write permission to the PR target repo. Detailed information about comment triggers is available in the official Azure DevOps [documentation](https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#comment-triggers).
17+
### Support
18+
In case of any issues, questions or suggestions please contact to [Mellanox Open MPI CI support team](mailto:[email protected]).

.ci/mellanox/azure-pipelines.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
trigger:
2+
- master
3+
- v*.*.x
4+
pr:
5+
- master
6+
- v*.*.x
7+
8+
pool:
9+
name: Default
10+
demands:
11+
- AGENT_CI_TARGET -equals ompi
12+
- MLNX_IB_DEVICE -equals yes
13+
14+
variables:
15+
ompi_jenkins_scripts_git_repo_url: https://github.com/mellanox-hpc/jenkins_scripts.git
16+
ompi_jenkins_scripts_git_branch: master
17+
# Enable debug information, supported values: true, false
18+
debug: true
19+
20+
jobs:
21+
- job: mellanox_ompi_ci
22+
displayName: Mellanox Open MPI CI
23+
timeoutInMinutes: 240
24+
container:
25+
image: rdmz-harbor.rdmz.labs.mlnx/hpcx/ompi_ci:latest
26+
options: -v /hpc/local:/hpc/local -v /opt:/opt --uts=host --ipc=host --ulimit stack=67108864
27+
--ulimit memlock=-1 --security-opt seccomp=unconfined --cap-add=SYS_ADMIN --device=/dev/infiniband/
28+
steps:
29+
- task: DeleteFiles@1
30+
displayName: Cleanup workspace folder
31+
inputs:
32+
sourceFolder: $(Pipeline.Workspace)
33+
contents: |
34+
**/*
35+
- checkout: self
36+
submodules: true
37+
path: ompi
38+
- bash: |
39+
set -eE
40+
[ "$(debug)" = "true" ] && set -x
41+
cd $(Pipeline.Workspace)
42+
git clone $(ompi_jenkins_scripts_git_repo_url)
43+
cd $(Pipeline.Workspace)/jenkins_scripts && git checkout $(ompi_jenkins_scripts_git_branch)
44+
export WORKSPACE=$(Pipeline.Workspace)/ompi
45+
# TODO: rework ompi_test.sh to avoid Jenkins mentions
46+
export JENKINS_RUN_TESTS=yes
47+
$(Pipeline.Workspace)/jenkins_scripts/jenkins/ompi/ompi_test.sh
48+
displayName: Build and test Open MPI

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
.cdt*
77
.project
88
.gdb*
9+
.idea
910

1011
.hgrc
1112
.hgignore

0 commit comments

Comments
 (0)