-
Notifications
You must be signed in to change notification settings - Fork 84
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move automation default vars into seperate scenario files #375
Move automation default vars into seperate scenario files #375
Conversation
ab6d3e1
to
499cc3f
Compare
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request adds cifmw_arch_automation_file var to include different scenario files. Depends-On: openstack-k8s-operators/architecture#375 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request adds cifmw_arch_automation_file var to include different scenario files. Depends-On: openstack-k8s-operators/architecture#375 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
3bc9ccd
to
8380941
Compare
This looks fine to me. Do we need to merge a change to CIFMW in parallel, @cjeanner ? |
@abays we indeed need a change on our side. @raukadah has proposed one already (openstack-k8s-operators/ci-framework#2267), but we can make it better by ensuring the file name matches the scenario name. BTW, we might want to get a new linter here, in architecture repo, to ensure files only have ONE scenario, and that file name matches the scenario. WDYT? |
@cjeanner A new linter as you suggest sounds like a solid idea 👍 |
@abays I think we can edit the YAML schema check to get only one entry in |
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request uses cifmw_architecture_scenario to set proper automation file. Depends-On: openstack-k8s-operators/architecture#375 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request uses cifmw_architecture_scenario to set proper automation file. Depends-On: openstack-k8s-operators/architecture#375 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
Shouldn't this change be done in multiple steps?
|
I have a linter that seems to do what we want.
and yamele is also unhappy:
So we're getting to a nice place. |
This is in addition to a coming PR, #375. This change here is allowing to ensure we follow those practices: - only one scenario per file - filename matches "scenario_name.yaml" pattern
#379 FYI (it's independent from that PR) |
8380941
to
0e73ae8
Compare
openstack-k8s-operators#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes. Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes. By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs. Let's keep the defaults.yaml file till we finish the migration. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
0e73ae8
to
216f1cc
Compare
This is in addition to a coming PR, #375. This change here is allowing to ensure we follow those practices: - only one scenario per file - filename matches "scenario_name.yaml" pattern
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request uses cifmw_architecture_scenario to set proper automation file. It drops cifmw_arch_automation_file params from scenario files. Depends-On: openstack-k8s-operators/architecture#375 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
@abays @raukadah proposal sounds good indeed, allowing to not have to hurry-merge the ci-framework side. So we can go with it. My linter is ready, once we're good with the migration, we'll be able to merge it and make things consistent. It can also be used to test the cleaning PR, btw :). |
sounds good to me. |
This is in addition to a coming PR, #375. This change here is allowing to ensure we follow those practices: - only one scenario per file - filename matches "scenario_name.yaml" pattern
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request uses cifmw_architecture_scenario to set proper automation file. It drops cifmw_arch_automation_file params from scenario files. Depends-On: openstack-k8s-operators/architecture#375 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request uses cifmw_architecture_scenario to set proper automation file. It drops cifmw_arch_automation_file params from scenario files. Depends-On: openstack-k8s-operators/architecture#375 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request uses cifmw_architecture_scenario to set proper automation file. It drops cifmw_arch_automation_file params from scenario files. Depends-On: openstack-k8s-operators/architecture#375 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
Move bgp_dt01 into its own automation file #375 splits the default vars into different scenario files. We need to follow similar pattern for bgp_dt01 also. Depends-On: openstack-k8s-operators/ci-framework#2267 Reviewed-by: Marios Andreou
openstack-k8s-operators#375 splits the default vars into different scenario files. openstack-k8s-operators/ci-framework#2267 suggests to use Use cifmw_architecture_scenario to set proper automation file. So we are no longer needing default.yaml file. Depends-On: openstack-k8s-operators/ci-framework#2267 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
#375 splits the default vars into different scenario files. openstack-k8s-operators/ci-framework#2267 suggests to use Use cifmw_architecture_scenario to set proper automation file. So we are no longer needing default.yaml file. Depends-On: openstack-k8s-operators/ci-framework#2267 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
This is in addition to a coming PR, #375. This change here is allowing to ensure we follow those practices: - only one scenario per file - filename matches "scenario_name.yaml" pattern
Drop default.yaml file #375 splits the default vars into different scenario files. openstack-k8s-operators/ci-framework#2267 suggests to use Use cifmw_architecture_scenario to set proper automation file. So we are no longer needing default.yaml file. Depends-On: openstack-k8s-operators/ci-framework#2292 Reviewed-by: Cédric Jeanneret
This is in addition to a coming PR, #375. This change here is allowing to ensure we follow those practices: - only one scenario per file - filename matches "scenario_name.yaml" pattern
openstack-k8s-operators#375 splits the default vars into different scenario files. We need to follow similar pattern for bgp_dt01 also. Depends-On: openstack-k8s-operators/ci-framework#2267 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com> (cherry picked from commit 116ab90)
When are you planing to land this change in 18.0.0-proposed ? |
@raukadah do you want to cherry pick this to 18.0.0-proposed as described here? Same for these two? |
@ciecierski @fultonj Hello, Since we merged #383 and #379. we saw breakage in downstream jobs due to mixing of upstream and downstream content. We fixed that. |
After discussing with @cjeanner , we need to cherry-pick following prs
|
It backports following patches: openstack-k8s-operators#375 - Move automation default vars into seperate scenario files openstack-k8s-operators#383 - Drop default.yaml file openstack-k8s-operators#379 - Ensure we have one scenario per automation file openstack-k8s-operators#384 - Move bgp_dt01 into its own automation file Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request uses cifmw_architecture_scenario to set proper automation file. It drops cifmw_arch_automation_file params from scenario files. Depends-On: openstack-k8s-operators/architecture#375 Note: it excludes zuul.d/architecture-jobs.yaml changes. Cherry-picked from 07a6146#diff-693e3f6ce03f7b6994b1195bcced3d58c89f1c286667356f827c3aecd4518ef6 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
Cherry-pick patches
Feel free to test it before merging. |
It backports following patches: openstack-k8s-operators#375 - Move automation default vars into seperate scenario files openstack-k8s-operators#383 - Drop default.yaml file openstack-k8s-operators#379 - Ensure we have one scenario per automation file openstack-k8s-operators#384 - Move bgp_dt01 into its own automation file openstack-k8s-operators#373 - NFV-HCI minor fixes Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#375 splits the default vars into different scenario files. We need to fix the reproducer to adapt this change. This pull-request uses cifmw_architecture_scenario to set proper automation file. It drops cifmw_arch_automation_file params from scenario files. Depends-On: openstack-k8s-operators/architecture#375 Note: it excludes zuul.d/architecture-jobs.yaml changes. Cherry-picked from 07a6146#diff-693e3f6ce03f7b6994b1195bcced3d58c89f1c286667356f827c3aecd4518ef6 Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#383 drops defaults.yaml scenario file in favor of openstack-k8s-operators/architecture#375. #2267 suggests to use Use cifmw_architecture_scenario to set proper automation file. Whereever default.yaml is used, the job broke. This pr fixes the same using cifmw_architecture_scenario file. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#383 drops defaults.yaml scenario file in favor of openstack-k8s-operators/architecture#375. #2267 suggests to use Use cifmw_architecture_scenario to set proper automation file. Whereever default.yaml is used, the job broke. This pr fixes the same using cifmw_architecture_scenario file. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#383 drops defaults.yaml scenario file in favor of openstack-k8s-operators/architecture#375. #2267 suggests to use Use cifmw_architecture_scenario to set proper automation file. Whereever default.yaml is used, the job broke. This pr fixes the same using cifmw_architecture_scenario file. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#383 drops defaults.yaml scenario file in favor of openstack-k8s-operators/architecture#375. openstack-k8s-operators#2267 suggests to use Use cifmw_architecture_scenario to set proper automation file. Whereever default.yaml is used, the job broke. This pr fixes the same using cifmw_architecture_scenario file. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
openstack-k8s-operators/architecture#383 drops defaults.yaml scenario file in favor of openstack-k8s-operators/architecture#375. #2267 suggests to use Use cifmw_architecture_scenario to set proper automation file. Whereever default.yaml is used, the job broke. This pr fixes the same using cifmw_architecture_scenario file. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
#374 adds the trigger job which will run different Baremetal VA jobs downstream on different architecture file changes.
Currently automation/vars/default.yaml contains different multiple scenarios, stored in a single file. Trigger job may run unwanted jobs downstream without testing the proper architecture changes.
By moving automations vars into different scenario files allow us to run selective trigger job and test the proper prs.