Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/actions/get-endpoints/get-endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def main():
with open(ci_config_file) as fh:
config = json.load(fh)

endpoint_configs = config.get("endpoints", {})
endpoints = set()
if config["config"]["enabled"]:
for benchmark in config["benchmarks"]:
Expand All @@ -46,7 +47,9 @@ def main():
for scenario in benchmark["scenarios"]:
if scenario["enabled"]:
for endpoint in scenario["endpoints"]:
endpoints.add(endpoint)
ep_config = endpoint_configs.get(endpoint, {})
if ep_config.get("enabled", True):
endpoints.add(endpoint)

result = sorted(endpoints)

Expand Down
11 changes: 6 additions & 5 deletions .github/actions/get-job-parameters/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ inputs:
required: false
default: "all"
runner-type:
description: "What type of CI runner are the jobs for (github or self-hosted)?"
required: true
description: "Deprecated: ignored when capability-based config is used"
required: false
default: ""
runner-tags:
description: "Comma separated list of tags the runner has"
description: "Deprecated: ignored when capability-based config is used"
required: false
default: ""
runner-pool:
description: "Which pool of self-hosted runners to use (e.g., 'kmr-cloud-1', 'aws-cloud-1')"
description: "Which runner pool to use (e.g., 'aws-cloud-1')"
required: false
default: ""
benchmark:
Expand All @@ -40,4 +41,4 @@ runs:
- name: "Generate jobs list"
id: generate-jobs
shell: bash
run: TOOLBOX_HOME=${{ inputs.toolbox-directory }} ${{ inputs.rickshaw-directory }}/util/generate-ci-jobs.py --runner-type "${{ inputs.runner-type }}" --runner-tags "${{ inputs.runner-tags }}" --runner-pool "${{ inputs.runner-pool }}" --userenv-filter "${{ inputs.userenv-filter }}" --runtime-env "github" --benchmark "${{ inputs.benchmark }}" --endpoint "${{ inputs.endpoint }}"
run: TOOLBOX_HOME=${{ inputs.toolbox-directory }} ${{ inputs.rickshaw-directory }}/util/generate-ci-jobs.py --runner-pool "${{ inputs.runner-pool }}" --userenv-filter "${{ inputs.userenv-filter }}" --runtime-env "github" --benchmark "${{ inputs.benchmark }}" --endpoint "${{ inputs.endpoint }}"
2 changes: 0 additions & 2 deletions .github/workflows/core-endpoint-crucible-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,6 @@ jobs:
id: get-job-parameters
uses: ./crucible-ci/.github/actions/get-job-parameters
with:
runner-type: "github"
runner-tags: "k8s,kube,cpu-partitioning,remotehosts"
runner-pool: ${{ inputs.runner_pool }}
userenv-filter: ${{ inputs.userenv_filter }}
endpoint: ${{ inputs.endpoint }}
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/endpoint-crucible-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,6 @@ jobs:
id: get-job-parameters
uses: ./crucible-ci/.github/actions/get-job-parameters
with:
runner-type: "github"
runner-tags: "k8s,kube,cpu-partitioning,remotehosts"
runner-pool: ${{ inputs.runner_pool }}
userenv-filter: ${{ inputs.userenv_filter }}
benchmark: ${{ inputs.benchmark }}
Expand Down
Loading