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 github workflows #564

Merged
merged 14 commits into from
Oct 10, 2023
Merged

Conversation

ajaypratap003
Copy link
Contributor

@ajaypratap003 ajaypratap003 commented Sep 26, 2023

Description

Resolve : #576
Add below Github workflows

  • When PR is open then Unit tests workflow trigger and run unit tests

How Has This Been Tested?

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Note: need Github username and email for some workflows.

@ajaypratap003 ajaypratap003 changed the base branch from main to incubation September 28, 2023 22:28
@ajaypratap003 ajaypratap003 changed the base branch from incubation to main September 28, 2023 22:31
@ajaypratap003 ajaypratap003 marked this pull request as ready for review September 28, 2023 22:32
@openshift-ci openshift-ci bot requested a review from LaVLaS September 28, 2023 22:32
@ajaypratap003 ajaypratap003 changed the base branch from main to incubation September 29, 2023 15:23
Copy link
Member

@zdtsw zdtsw left a comment

Choose a reason for hiding this comment

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

in general , i do not think i have a very clear picture of the whole workflow.
It would be good to have a list:

  • when "what happens" , then "what will be triggered to do what" in the PR description.

it looks like this PR covers 3 workflows:

  • build image:
    • open new pr, new commit on pr: get commit info, pass to build action, push to quay.io
    • new commit on main branch: build image, push to quay.io
    • manual build image:
  • move issue to project
  • run unit test

we should simplify the implementation, and try to use make target instead of calling inline bash scripts.

.github/workflows/unit-tests.yaml Show resolved Hide resolved
.github/workflows/unit-tests.yaml Outdated Show resolved Hide resolved
.github/workflows/image-check.yaml Outdated Show resolved Hide resolved
.github/workflows/image-check.yaml Outdated Show resolved Hide resolved
.github/workflows/image-check.yaml Outdated Show resolved Hide resolved
.github/workflows/build-prs-trigger.yaml Outdated Show resolved Hide resolved
.github/workflows/build-prs-trigger.yaml Outdated Show resolved Hide resolved
.github/workflows/build-prs.yaml Outdated Show resolved Hide resolved
.github/workflows/image-check.yaml Outdated Show resolved Hide resolved
Makefile Show resolved Hide resolved
@ajaypratap003
Copy link
Contributor Author

ajaypratap003 commented Oct 9, 2023

I've removed build workflow as we have already OpenShift-CI tool workflow for build on PR and push. We will add custom workflow later if required.

Copy link
Member

@zdtsw zdtsw left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Oct 9, 2023
Copy link
Member

@VaishnaviHire VaishnaviHire left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Oct 9, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: VaishnaviHire, zdtsw

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 label Oct 9, 2023
@zdtsw zdtsw merged commit 9f2a753 into opendatahub-io:incubation Oct 10, 2023
6 of 7 checks passed
VaishnaviHire pushed a commit to VaishnaviHire/opendatahub-operator that referenced this pull request Oct 10, 2023
* add github workflows
* update make cmd for unit-test
VaishnaviHire pushed a commit to VaishnaviHire/opendatahub-operator that referenced this pull request Oct 10, 2023
* add github workflows
* update make cmd for unit-test
zdtsw added a commit that referenced this pull request Oct 12, 2023
* fix: adds missing CRDs and installs them for testenv

- introduces make func to download needed CRDs to config/crd/external when running make manifests target
- adds missing scheme installation in test setup
- marks one test as Pending due to NetworkPolicies being disabled right now

* fix: passes ns when creating UserGroup resource

* chore: updates CRD download func

* Linter: add golangci-linter and fix issues (#540)

- Update Makefile
- Add linter in GH action and make target to download binary
 - set timeout for 5m for GH aciton when cache is not hit
 - set to use 1.54.0 of golangci-lint
 - add lll linter and set to 180, skip lines out of range
 - set max-complicity back to default 30, skip lines out of scope
 - disable degarud linter
Fix linter after adding function test on DSCI

Signed-off-by: Wen Zhou <[email protected]>
Co-authored-by: Bartosz Majsak <[email protected]>

* feat(manifests): allows configuring manifest repositories using flags (#585)

* feat(manifests): allows configuring manifest repos using flags
* feat(docs): extended section about usage of get_all_manifests script
* chore: prints available components when key does not match
* chore(docs): updates manifests customization

* Feature: add networkpolicy in dsci (#590)

Signed-off-by: Wen Zhou <[email protected]>

* fix(crds): updates docs after godoc fixes (#594)

* Enable test case after networkpolicy is added (#592)

* fix(make): removes duplicated e2e flag declaration (#595)

* chore: removes GetComponentDevFlags as it is exported field of the struct (#591)

and it is already accessed this way.

* fix: populate entire dscispec (#597)

* Update Dashboard branch in incubation (#598)

* Remove sync dashboard CRD since we do not have CRD any more (#599)

Signed-off-by: Wen Zhou <[email protected]>

* feat: uses reflect to reconcile defined components (#593)

* feat: uses reflect to reconcile defined components

This way we do not have to add call in reconcile for newly created component as it will be handled automatically.

* chore: reworks component collection to return slice

* chore: organizes code in dashboard component (#589)

* chore: organizes code in dashboard component

extracts certain config/deployment work to their own funcs for better readability

* fix: removes unused directive

* fix: removes duplicated interface conformance check

* fix(lint): removes extra line

* Auto Add Issues to Tracking boards (#601)

* Add check on the replace image on the component level overwrite (#583)

Signed-off-by: Wen Zhou <[email protected]>

* Fix autoadd issues (#611)

* Add github workflows (#564)

* add github workflows
* update make cmd for unit-test

* fix(make): test is renamed to unit-test (#624)

Signed-off-by: Wen Zhou <[email protected]>

* Update common monitoring config

* Add feature/functional tests in DSCInitialization

---------

Signed-off-by: Wen Zhou <[email protected]>
Co-authored-by: bartoszmajsak <[email protected]>
Co-authored-by: Wen Zhou <[email protected]>
Co-authored-by: Ajay Pratap <[email protected]>
Co-authored-by: AJAY_JAGANATHAN <[email protected]>
VaishnaviHire pushed a commit to VaishnaviHire/opendatahub-operator that referenced this pull request Oct 20, 2023
* add github workflows
* update make cmd for unit-test

(cherry picked from commit 9f2a753)
@ajaypratap003 ajaypratap003 deleted the gh-workflows branch October 24, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Add Github Workflows to Automate Build
4 participants