1
1

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).
Этот коммит содержится в:
Ralph Castain 2020-02-22 13:31:33 -08:00 коммит произвёл GitHub
родитель 43ecbb1734 0f1f13c67a
Коммит af72065ca7
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 67 добавлений и 0 удалений

18
.ci/README.md Обычный файл
Просмотреть файл

@ -0,0 +1,18 @@
# Open MPI Continuous Integration (CI) Services
## Mellanox Open MPI CI
[![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)
### Scope
[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.
CI is managed by [Azure Pipelines](https://docs.microsoft.com/en-us/azure/devops/pipelines/?view=azure-devops) service.
Mellanox Open MPI CI includes:
* Open MPI building with internal stable engineering versions of UCX and HCOLL. The building is run in Docker-based environment.
* Sanity functional testing.
### How to Run CI
Mellanox Open MPI CI is triggered upon the following events:
* 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.
* 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.
* 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).
### Support
In case of any issues, questions or suggestions please contact to [Mellanox Open MPI CI support team](mailto:swx-azure-svc@mellanox.com).

48
.ci/mellanox/azure-pipelines.yml Обычный файл
Просмотреть файл

@ -0,0 +1,48 @@
trigger:
- master
- v*.*.x
pr:
- master
- v*.*.x
pool:
name: Default
demands:
- AGENT_CI_TARGET -equals ompi
- MLNX_IB_DEVICE -equals yes
variables:
ompi_jenkins_scripts_git_repo_url: https://github.com/mellanox-hpc/jenkins_scripts.git
ompi_jenkins_scripts_git_branch: master
# Enable debug information, supported values: true, false
debug: true
jobs:
- job: mellanox_ompi_ci
displayName: Mellanox Open MPI CI
timeoutInMinutes: 240
container:
image: rdmz-harbor.rdmz.labs.mlnx/hpcx/ompi_ci:latest
options: -v /hpc/local:/hpc/local -v /opt:/opt --uts=host --ipc=host --ulimit stack=67108864
--ulimit memlock=-1 --security-opt seccomp=unconfined --cap-add=SYS_ADMIN --device=/dev/infiniband/
steps:
- task: DeleteFiles@1
displayName: Cleanup workspace folder
inputs:
sourceFolder: $(Pipeline.Workspace)
contents: |
**/*
- checkout: self
submodules: true
path: ompi
- bash: |
set -eE
[ "$(debug)" = "true" ] && set -x
cd $(Pipeline.Workspace)
git clone $(ompi_jenkins_scripts_git_repo_url)
cd $(Pipeline.Workspace)/jenkins_scripts && git checkout $(ompi_jenkins_scripts_git_branch)
export WORKSPACE=$(Pipeline.Workspace)/ompi
# TODO: rework ompi_test.sh to avoid Jenkins mentions
export JENKINS_RUN_TESTS=yes
$(Pipeline.Workspace)/jenkins_scripts/jenkins/ompi/ompi_test.sh
displayName: Build and test Open MPI

1
.gitignore поставляемый
Просмотреть файл

@ -6,6 +6,7 @@
.cdt*
.project
.gdb*
.idea
.hgrc
.hgignore