Skip to content

Conversation

sauragar
Copy link

@sauragar sauragar commented Sep 24, 2025

Testing my script to update the README.md file to sync variables of test-operator role from defaults/main.yml in README.md automatically via script

Ticket: OSPRH-19423

@sauragar sauragar requested review from a team as code owners September 24, 2025 07:37
Copy link
Contributor

openshift-ci bot commented Sep 24, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sauragar sauragar force-pushed the OSPRH-19423 branch 5 times, most recently from 48da28a to 8cc7aea Compare September 24, 2025 09:46
Copy link

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://softwarefactory-project.io/zuul/t/rdoproject.org/buildset/9891cc2d5b67440bba00da71a8abbdda

✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 05m 57s
✔️ podified-multinode-edpm-deployment-crc SUCCESS in 1h 25m 03s
✔️ cifmw-crc-podified-edpm-baremetal SUCCESS in 1h 35m 44s
✔️ cifmw-multinode-tempest SUCCESS in 1h 50m 49s
✔️ noop SUCCESS in 0s
✔️ cifmw-pod-ansible-test SUCCESS in 9m 46s
cifmw-pod-pre-commit FAILURE in 10m 14s
✔️ build-push-container-cifmw-client SUCCESS in 16m 46s
✔️ cifmw-molecule-test_operator SUCCESS in 3m 23s

@tosky
Copy link
Contributor

tosky commented Sep 25, 2025

I would say the commit message should not be "Testing my script to update the README.md file to sync variables of tesat-operator role from defaults/main.yml" but closer to the message of the merge request

@openshift-merge-robot
Copy link
Contributor

PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,1a0a2090142bf5b5176447ec89e99d4f1b18fb95

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,e10c50d309fe591aa65e8d46e244ac53040b3699

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,a9b970a9f1e0b2d8fb2a839e601734499542aa89

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,18d7d7408745a919f342ad22a7f61fbe1eae59c7

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,49fca3cf0c1cdbdd656f47463ac28b2679ae572f

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,62b3a97ebd0321379f878aa07d66cc2a1d6b4c25

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,babc6fb940a056ad9aa166740960b9df3b5a6e15

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,c1dfe5baafaaf0103e5943cbd7bd6be2a8b62880

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,8d92a8bc5ab44c7331998f6cdf3dfe2536aac31e

Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,34fca03881743f025f245f6dd19e6741996e7211

…esat-operator role from defaults/main.yml

Ticket: OSPRH-19423
Copy link

Merge Failed.

This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset.
Warning:
Error merging github.com/openstack-k8s-operators/ci-framework for 3327,46d94564c09df5fedb04e7c75a31ae51373a1d5f

Copy link
Contributor

openshift-ci bot commented Oct 3, 2025

@sauragar: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/images 46d9456 link true /test images

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

Copy link
Contributor

@kstrenkova kstrenkova left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! In my opinion the main issue is that we lose parameter descriptions. Please focus on that part, other comments are just suggestions on improving the code.

- name: tempest
type: tempest
cifmw_test_operator_fail_on_test_failure: true
cifmw_test_operator_temp_var: test
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When you are ready to merge this please remove all the test variables.

# Please refer to https://openstack-k8s-operators.github.io/test-operator/guide.html#executing-tempest-tests
cifmw_test_operator_tempest_debug: false
cifmw_test_operator_tempest_temp_var: "{{ stage_vars_dict.cifmw_test_operator_tempest_name }}-{{ _stage_vars.name }}"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this variable is needed, but if it's test please remove it later as well.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure that the script is just changing the defaults and the format stays the same as it is now. If I understand it correctly, now all the text explaining the variables is gone. A README without variable explanations is not very useful.

Additionally, please keep the markdown the same -> * variable: (Type) text Default value: value

return cat
# Check keyword in variable name
lowered = key.lower()
for keyword, cat in [("tempest", "Tempest"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't this be done a bit more simple? Is it not possible to use lowered version everywhere until you want to create the comment, e.g. Horizontest Variables and make the first letter capital in that moment? :D

Also I would keep the name the same, e.g. Horizontest specific parameters.

for cat, items in categorized.items():
if not items:
continue
md_sections.append(f"### {cat} Variables\n")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Based on my comment above I would change this part where the markdown sections are created.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure the Generic section comes first. I would also not add the header if we know it comes first -> it will look the same as the current README.

def update_readme(defaults):
readme = readme_file.read_text()

start_marker = "<!-- START DEFAULTS -->"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this could also be named start parameters because it will not only be the defaults, but also parameters descriptions and types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants