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

Update Verify CI job to check CRD generation #946

Merged
merged 2 commits into from
Nov 23, 2021

Conversation

shahulsonhal
Copy link
Member

@shahulsonhal shahulsonhal commented Nov 22, 2021

Changes

We have a Verify CI job that runs the basic static analysis, like code linting. This step should also ensure that CRD definitions for the Build APIs are aligned with what is in the golang code.

Fixes #943

Update hack/verify-generate.sh to check CRDs and deep copy generation
Update deep copy generation file not in sync

Submitter Checklist

  • Includes tests if functionality changed/was added
  • Includes docs if changes are user-facing
  • Set a kind label on this PR
  • Release notes block has been filled in, or marked NONE

See the contributor guide
for details on coding conventions, github and prow interactions, and the code review process.

Release Notes

NONE

@openshift-ci openshift-ci bot added the release-note-none Label for when a PR does not need a release note label Nov 22, 2021
@shahulsonhal shahulsonhal added the kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. label Nov 22, 2021
Copy link
Contributor

@HeavyWombat HeavyWombat left a comment

Choose a reason for hiding this comment

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

Thanks for the work here. So @SaschaSchwarze0 and I were looking into this PR and we were wondering: It would make more sense to refactor the current setup in the following way:

  • Only have one Makefile target for generation: make generate. This should generate both the CRDs and the client code.
  • Also, only have one verify target: make verify-generate. Same idea, check both uncommited/unstaged changes for CRDs and the client code.

As a side effect, this should simplify the whole setup and number of targets.

We have a Verify CI job that runs the basic static analysis, like code linting. This step should also ensure that CRD definitions for the Build APIs are aligned with what is in the golang code.
Fixes shipwright-io#943

Update hack/verify-generate.sh to check CRDs and deep copy generation
Update deep copy generation file not in sync
Copy link
Member

@SaschaSchwarze0 SaschaSchwarze0 left a comment

Choose a reason for hiding this comment

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

/approve
/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Nov 23, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Nov 23, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: SaschaSchwarze0

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

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 23, 2021
@openshift-merge-robot openshift-merge-robot merged commit 99f1262 into shipwright-io:main Nov 23, 2021
@SaschaSchwarze0 SaschaSchwarze0 added this to the release-v0.7.0 milestone Dec 9, 2021
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm Indicates that a PR is ready to be merged. release-note-none Label for when a PR does not need a release note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verify CI job doesn't check CRD generation
4 participants