Skip to content

Commit

Permalink
[ci] Enhancement: Platform Support Option
Browse files Browse the repository at this point in the history
  • Loading branch information
ppenna committed Jun 19, 2024
1 parent 64536c1 commit a0f80b8
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/catloop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/catmem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/catnap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/catnapw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform windows \
--server $SERVER \
--client $CLIENT \
--repository 'c:\demikernel' \
Expand Down Expand Up @@ -104,6 +105,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform windows \
--server $SERVER \
--client $CLIENT \
--repository 'c:\demikernel' \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/catnip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/catpowder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down Expand Up @@ -103,6 +104,7 @@ jobs:
branch_name="${{ github.ref_name }}"
fi
python3 tools/demikernel_ci.py \
--platform linux \
--server $SERVER \
--client $CLIENT \
--repository demikernel \
Expand Down
9 changes: 7 additions & 2 deletions tools/demikernel_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

# Runs the CI pipeline.
def run_pipeline(
platform: str,
log_directory: str, repository: str, branch: str, libos: str, is_debug:
bool, server: str, client: str, test_unit: bool, test_integration: bool,
test_system: str, server_addr: str, client_addr: str, delay: float, config_path: str,
Expand Down Expand Up @@ -45,7 +46,7 @@ def run_pipeline(
"enable_nfs": enable_nfs,
"log_directory": log_directory,
"is_sudo": is_sudo,
"platform": "linux" if libos != "catnapw" else "windows",
"platform": platform,
"install_prefix": install_prefix,
}

Expand Down Expand Up @@ -222,6 +223,7 @@ def read_args() -> argparse.Namespace:
prog="demikernel_ci.py", description=description)

# Host options.
parser.add_argument("--platform", required=True, help="set platform")
parser.add_argument("--server", required=True, help="set server host name")
parser.add_argument("--client", required=True, help="set client host name")

Expand Down Expand Up @@ -270,6 +272,7 @@ def main():
args: argparse.Namespace = read_args()

# Extract host options.
platform: str = args.platform
server: str = args.server
client: str = args.client

Expand Down Expand Up @@ -309,7 +312,9 @@ def main():
move(log_directory, old_dir)
mkdir(log_directory)

status: dict = run_pipeline(log_directory, repository, branch, libos, is_debug, server,
# TODO: check if (platform, libos) combination is valid.

status: dict = run_pipeline(platform, log_directory, repository, branch, libos, is_debug, server,
client, test_unit, test_integration, test_system, server_addr,
client_addr, delay, config_path, output_dir, enable_nfs, install_prefix)

Expand Down

0 comments on commit a0f80b8

Please sign in to comment.