Skip to content

Commit

Permalink
contrib/aws: Add Windows Test
Browse files Browse the repository at this point in the history
Signed-off-by: Seth Zegelstein <szegel@amazon.com>
  • Loading branch information
a-szegel committed Apr 5, 2024
1 parent e928120 commit 3adde39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 3 additions & 2 deletions contrib/aws/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pipeline {
stages["1_g4dn_ubuntu2004_shm_disable-cma"] = common.get_test_stage("1_g4dn_ubuntu2004_shm_disable-cma", env.BUILD_TAG, "ubuntu2004", "g4dn.8xlarge", 1, "us-east-1", "libfabric_pr_test.yaml", addl_args_pr + "--test-libfabric-provider shm --enable-cma false")

// TODO: Get Single Node Windows test working
// stages["EFA_Windows_Test"] = common.get_single_node_windows_test_stage("EFA_Windows_Test")
stages["EFA_Windows_Test"] = common.get_single_node_windows_test_stage("EFA_Windows_Test")

// Multi Node Tests - EFA
stages["2_hpc6a_alinux2_efa"] = common.get_test_stage("2_hpc6a_alinux2_efa", env.BUILD_TAG, "alinux2", "hpc6a.48xlarge", 2, "eu-north-1", "libfabric_pr_test.yaml", addl_args_pr)
Expand Down Expand Up @@ -114,7 +114,8 @@ pipeline {
}
failure {
sh '''
echo FAILURE
. venv/bin/activate
./PortaFiducia/scripts/delete_manual_cluster.py --cluster-name WindowsLibfabricCi_${env.CHANGE_ID}_*
'''
}
aborted {
Expand Down
8 changes: 6 additions & 2 deletions contrib/aws/common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,18 @@ def get_cluster_name(build_tag, os, instance_type) {
return cluster_name
}

def get_single_node_windows_test_stage(stage_name) {
def get_single_node_windows_test_stage(stage_name, pr_id) {
/*
* Get Windows Stage
*/
return {
stage("${stage_name}") {
def ret = sh (
script: ". venv/bin/activate; cd PortaFiducia/scripts; env AWS_DEFAULT_REGION=us-west-2 ./test_orchestrator_windows.py public",
script: """
. venv/bin/activate;
cd PortaFiducia/scripts;
env AWS_DEFAULT_REGION=us-west-2 ./test_orchestrator_windows.py --ci public --s3-bucket-name libfabric-ci-windows-prod-test-output --pull-request-id ${env.CHANGE_ID};
""",
returnStatus: true
)
if (ret == 65)
Expand Down

0 comments on commit 3adde39

Please sign in to comment.