Skip to content

Commit

Permalink
Merge pull request #257 from pablintino/automation/add-uni-net-env-de…
Browse files Browse the repository at this point in the history
…f-mock-files

Use uni* specific Net Env Def in CI

Depends-On: openstack-k8s-operators/ci-framework#1816

Reviewed-by: John Fulton <[email protected]>
  • Loading branch information
softwarefactory-project-zuul[bot] authored Jun 11, 2024
2 parents f8b153f + 915968a commit e841efb
Show file tree
Hide file tree
Showing 11 changed files with 2,007 additions and 1,268 deletions.
507 changes: 0 additions & 507 deletions automation/mocks/bgp.yaml

This file was deleted.

754 changes: 0 additions & 754 deletions automation/mocks/pidone.yaml

This file was deleted.

506 changes: 506 additions & 0 deletions automation/net-env/bgp.yaml

Large diffs are not rendered by default.

753 changes: 753 additions & 0 deletions automation/net-env/pidone.yaml

Large diffs are not rendered by default.

719 changes: 719 additions & 0 deletions automation/net-env/uni01alpha.yaml

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions automation/net-env/uni02beta.yaml
1 change: 1 addition & 0 deletions automation/net-env/uni04delta.yaml
1 change: 1 addition & 0 deletions automation/net-env/uni05epsilon.yaml
1 change: 1 addition & 0 deletions automation/net-env/uni06zeta.yaml
16 changes: 11 additions & 5 deletions create-zuul-jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,25 @@ def create_job(name, data):
if os.path.exists(os.path.join(i, name)):
_paths.append(os.path.join(i, name))
_mock = os.path.join('automation', 'mocks', '{}.yaml'.format(name))
if os.path.exists(_mock):
_paths.append(_mock)
_paths.sort()
_net_env = os.path.join('automation', 'net-env', '{}.yaml'.format(name))
job = {
'job': {
'name': j_name,
'parent': 'rhoso-architecture-base-job',
'vars': {
'cifmw_architecture_scenario': name,
'cifmw_architecture_scenario': name
},
'files': _paths,
}
}

if os.path.exists(_mock):
_paths.append(_mock)

if os.path.exists(_net_env):
_paths.append(_net_env)
job['job']['vars']['cifmw_networking_env_def_file'] = _net_env

job['job']['files'] = sorted(_paths)
_JOBS.append(job)
_PROJECTS.append(j_name)

Expand Down
16 changes: 14 additions & 2 deletions zuul.d/validations.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
- job:
files:
- automation/mocks/bgp.yaml
- automation/net-env/bgp.yaml
- dt/bgp
- examples/dt/bgp/control-plane
- examples/dt/bgp/control-plane/nncp
Expand All @@ -11,6 +11,7 @@
parent: rhoso-architecture-base-job
vars:
cifmw_architecture_scenario: bgp
cifmw_networking_env_def_file: automation/net-env/bgp.yaml
- job:
files:
- automation/mocks/bgp_dt01.yaml
Expand Down Expand Up @@ -64,7 +65,7 @@
cifmw_architecture_scenario: ovs-dpdk-sriov
- job:
files:
- automation/mocks/pidone.yaml
- automation/net-env/pidone.yaml
- examples/va/pidone
- examples/va/pidone/edpm/deployment
- examples/va/pidone/edpm/nodeset
Expand All @@ -75,6 +76,7 @@
parent: rhoso-architecture-base-job
vars:
cifmw_architecture_scenario: pidone
cifmw_networking_env_def_file: automation/net-env/pidone.yaml
- job:
files:
- automation/mocks/sriov.yaml
Expand All @@ -89,6 +91,7 @@
cifmw_architecture_scenario: sriov
- job:
files:
- automation/net-env/uni01alpha.yaml
- dt/uni01alpha
- examples/dt/uni01alpha
- examples/dt/uni01alpha/control-plane
Expand All @@ -101,8 +104,10 @@
parent: rhoso-architecture-base-job
vars:
cifmw_architecture_scenario: uni01alpha
cifmw_networking_env_def_file: automation/net-env/uni01alpha.yaml
- job:
files:
- automation/net-env/uni02beta.yaml
- dt/uni02beta
- examples/dt/uni02beta
- examples/dt/uni02beta/control-plane
Expand All @@ -112,8 +117,10 @@
parent: rhoso-architecture-base-job
vars:
cifmw_architecture_scenario: uni02beta
cifmw_networking_env_def_file: automation/net-env/uni02beta.yaml
- job:
files:
- automation/net-env/uni04delta.yaml
- dt/uni04delta
- examples/dt/uni04delta
- examples/dt/uni04delta/control-plane
Expand All @@ -126,8 +133,10 @@
parent: rhoso-architecture-base-job
vars:
cifmw_architecture_scenario: uni04delta
cifmw_networking_env_def_file: automation/net-env/uni04delta.yaml
- job:
files:
- automation/net-env/uni05epsilon.yaml
- dt/uni05epsilon
- examples/dt/uni05epsilon
- examples/dt/uni05epsilon/control-plane
Expand All @@ -138,8 +147,10 @@
parent: rhoso-architecture-base-job
vars:
cifmw_architecture_scenario: uni05epsilon
cifmw_networking_env_def_file: automation/net-env/uni05epsilon.yaml
- job:
files:
- automation/net-env/uni06zeta.yaml
- dt/uni06zeta
- examples/dt/uni06zeta
- examples/dt/uni06zeta/control-plane
Expand All @@ -149,3 +160,4 @@
parent: rhoso-architecture-base-job
vars:
cifmw_architecture_scenario: uni06zeta
cifmw_networking_env_def_file: automation/net-env/uni06zeta.yaml

0 comments on commit e841efb

Please sign in to comment.