Skip to content
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

Add a comment to auto-generated file #4328

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stephenfin
Copy link

Useful breadcrumb for people who do not touch openshift/release as often as they probably should.

This is half-baked. I'm mainly pushing to see if it's a good idea. If it is, I'll flesh it out more/do it better (TM).

Useful breadcrumb for people who do not touch openshift/release as often as
they probably should.

Signed-off-by: Stephen Finucane <[email protected]>
Copy link
Contributor

openshift-ci bot commented Sep 17, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: stephenfin
Once this PR has been reviewed and has the lgtm label, please assign smg247 for approval. For more information see the Kubernetes Code Review Process.

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

Copy link
Contributor

openshift-ci bot commented Sep 17, 2024

@stephenfin: The following tests 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/security d6834b8 link false /test security
ci/prow/breaking-changes d6834b8 link false /test breaking-changes
ci/prow/integration d6834b8 link true /test integration
ci/prow/unit d6834b8 link true /test unit

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.

@smg247
Copy link
Member

smg247 commented Sep 20, 2024

@stephenfin, I appreciate the attempt to make it more clear, but this isn't something that we will want to do. The file actually can be edited by hand, and there are many usecases for doing so. Individual jobs are generated by prowgen, but even those are tolerant of specific manual changes. This comment will be more confusing than helpful, I think

@stephenfin
Copy link
Author

stephenfin commented Nov 15, 2024

@smg247 Apologies, I missed your response. I wasn't aware that you could modify these by hand. Is that possible in openshift/release or are you talking about other places that prowgen is used (are there any)? For openshift/release, I had assumed the generated-config job (i.e. the hack/validate-generated-config.sh script) and other related jobs like ordered-prow-config would prevent this.

Happy to close this of course, but before I do, I'll ask would it make sense to add an alternative note? Ideally something like the below that would provide helpful breadcrumbs to newer contributors?

# This file was initially auto-generated by prowgen from the following sources:
# 
# <path/to/config/file/a>
# <path/to/config/file/b>
# ...
#
# You can modify this by hand, but you may need to run prowgen after the fact to
# ensure conflicts are not introduced.

(assuming we even have the context at this stage of the pipeline to populate this list, of course).

It's a totally different problem and totally different toolkit, but the storage folks do something like this in openshift/csi-operator and it is indeed very helpful at the outset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants