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

chore: Do not commit generated files #983

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

Conversation

akrejcir
Copy link
Collaborator

@akrejcir akrejcir commented May 9, 2024

What this PR does / why we need it:
This commit removes these generated files from the repository:

  • data/olm-catalog/ssp-operator.clusterserviceversion.yaml
  • data/crd/ssp.kubevirt.io_ssps.yaml

Instead of these files, the csv-generator uses the generated bundle directory.

This change will be useful in the future when we update operator-sdk, because then the generated files will contain a creation timestamp, which would be updated in every new PR.

Release note:

None

This commit removes these generated files from the repository:
- data/olm-catalog/ssp-operator.clusterserviceversion.yaml
- data/crd/ssp.kubevirt.io_ssps.yaml

Instead of these files, the csv-generator uses the generated
"bundle" directory.

Signed-off-by: Andrej Krejcir <akrejcir@redhat.com>
@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. labels May 9, 2024
@akrejcir
Copy link
Collaborator Author

akrejcir commented May 9, 2024

/cc @ksimon1 @0xFelix @jcanocan

Copy link

sonarcloud bot commented May 9, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

Copy link

openshift-ci bot commented May 9, 2024

@akrejcir: 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/unittests 8cd2c0a link true /test unittests
ci/prow/e2e-functests 8cd2c0a link true /test e2e-functests
ci/prow/e2e-upgrade-functests 8cd2c0a link true /test e2e-upgrade-functests
ci/prow/e2e-single-node-functests 8cd2c0a link true /test e2e-single-node-functests

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
Member

@0xFelix 0xFelix left a comment

Choose a reason for hiding this comment

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

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 0xFelix

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

The pull request process is described 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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 27, 2024
@@ -52,4 +52,5 @@ USER 1000

# Copy csv generator
COPY --from=builder /workspace/bin/csv-generator .
COPY bundle/manifests/ bundle/manifests/
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this is not working well :(

error: build error: building at STEP "COPY bundle/manifests/ bundle/manifests/": checking on sources under "/tmp/build/inputs": copier: stat: "/bundle/manifests": no such file or directory

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes. The issue is that OCP CI builds the image simply using podman build Dockerfile, so it does not call Makefile to generate missing files.

@akrejcir
Copy link
Collaborator Author

Holding until I figure out how to change the build process, so that image can be build in the CI by podman build Dockerfile.

/hold

@kubevirt-bot kubevirt-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 27, 2024
@kubevirt-bot kubevirt-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 4, 2024
@kubevirt-bot
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.

@kubevirt-bot
Copy link
Contributor

Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

@kubevirt-bot kubevirt-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. release-note-none Denotes a PR that doesn't merit a release note. size/XXL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants