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 scorecard to ci #241

Merged
merged 5 commits into from
Sep 12, 2023
Merged

Add scorecard to ci #241

merged 5 commits into from
Sep 12, 2023

Conversation

dimakis
Copy link
Contributor

@dimakis dimakis commented Aug 21, 2023

Issue link

Closes #205

What changes have been made

Addition of operator-sdk scorecard check to the CI and make target.

I've had to remove a failing test, olm-crds-have-resources-test from the CI. This appears to be a known bug

Verification steps

Look at CI run

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • Testing is not required for this change

run: |
yq e 'del(.stages[].tests[] | select(.labels.test == "olm-crds-have-resources-test"))' -i bundle/tests/scorecard/config.yaml

- name: Scorecard check
Copy link
Contributor

Choose a reason for hiding this comment

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

Thinking whether it would have sense to move this test into separate workflow, as it is not related to OLM install or upgrade testing.

Copy link
Member

Choose a reason for hiding this comment

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

I agree that moving it to a separate workflow makes sense

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it does, but I had it here to try and reduce time, moving it to its own workflow means we'd have to build it again.
no issue either way really, I just hate doing things twice when there is no need

.github/workflows/olm_scorecard.yml Outdated Show resolved Hide resolved
.github/workflows/olm_scorecard.yml Show resolved Hide resolved
@dimakis dimakis force-pushed the add-scorecard-to-ci branch 2 times, most recently from 37b547c to 6bedfc8 Compare September 1, 2023 11:01
@dimakis dimakis force-pushed the add-scorecard-to-ci branch 3 times, most recently from dacf529 to 05ef655 Compare September 11, 2023 13:11
Makefile Outdated Show resolved Hide resolved
Copy link
Contributor

@sutaakar sutaakar left a comment

Choose a reason for hiding this comment

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

/lgtm

@dimakis
Copy link
Contributor Author

dimakis commented Sep 12, 2023

@anishasthana can you LGTM this, you're requested changes have been implemented

@openshift-ci openshift-ci bot removed the lgtm label Sep 12, 2023
@openshift-ci openshift-ci bot added the lgtm label Sep 12, 2023
@openshift-ci
Copy link

openshift-ci bot commented Sep 12, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: anishasthana

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

@anishasthana
Copy link
Member

/lgtm

@openshift-merge-robot openshift-merge-robot merged commit 7153445 into main Sep 12, 2023
12 checks passed
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.

Run Scorecard Tests as part of CI
4 participants