Skip to content

Create a Github action for MCAD CI check #497

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

Merged

Conversation

Srihari1192
Copy link
Contributor

Fixes #480

@Srihari1192 Srihari1192 requested review from sutaakar and z103cb July 20, 2023 11:47
@Srihari1192
Copy link
Contributor Author

I have been testing this in my fork branch and will update the PR once testing is done

@Srihari1192 Srihari1192 force-pushed the automate-PRCheck-480 branch 2 times, most recently from 5419465 to fe43ea0 Compare July 20, 2023 12:28
Copy link
Contributor

@z103cb z103cb left a comment

Choose a reason for hiding this comment

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

These changes look good to me so far, but I think you should consider the following enhancements:

  1. Pre-install the following things:
  • kind (latest version available)
  • kubectl
  • kuttl (kubectl plugin)
  1. Configure the docker daemon to only have
  • 2 CPU
  • 8 GB of RAM.

The last bit is important for getting the end to end to run correctly, as they assume a certain amount of CPU's available to MCAD's kind cluster.

@sutaakar
Copy link
Contributor

AFAIK the current GitHub runner has 2 CPU and 7GB of memory. Not sure if the memory difference may cause some issues.

@Srihari1192
Copy link
Contributor Author

Tested this workflow in my fork repository , tests are looks good https://github.com/Srihari1192/multi-cluster-app-dispatcher/actions/workflows/mcad-CI.yml

@Srihari1192
Copy link
Contributor Author

Srihari1192 commented Jul 21, 2023

These changes look good to me so far, but I think you should consider the following enhancements:

  1. Pre-install the following things:
  • kind (latest version available)
  • kubectl
  • kuttl (kubectl plugin)
  1. Configure the docker daemon to only have
  • 2 CPU
  • 8 GB of RAM.

The last bit is important for getting the end to end to run correctly, as they assume a certain amount of CPU's available to MCAD's kind cluster.

@z103cb Thanks for review
For now we are using existing scripts run-e2e-kind.sh to install and run the test. I think we can refactor Pre-install things when we remove completely travis CI , as the changes will impact to Travis CI main branch merge build trigger

@z103cb
Copy link
Contributor

z103cb commented Jul 21, 2023

These changes look good to me so far, but I think you should consider the following enhancements:

  1. Pre-install the following things:
  • kind (latest version available)
  • kubectl
  • kuttl (kubectl plugin)
  1. Configure the docker daemon to only have
  • 2 CPU
  • 8 GB of RAM.

The last bit is important for getting the end to end to run correctly, as they assume a certain amount of CPU's available to MCAD's kind cluster.

@z103cb Thanks for review For now we are using existing scripts run-e2e-kind.sh to install and run the test. I think we can refactor Pre-install things when we remove completely travis CI , as the changes will impact to Travis CI main branch merge build trigger

@Srihari1192 Hopefully this line is not causing a problem for your test.

@z103cb
Copy link
Contributor

z103cb commented Jul 21, 2023

AFAIK the current GitHub runner has 2 CPU and 7GB of memory. Not sure if the memory difference may cause some issues.

I don't think they would most of the e2e tests depend mostly on available CPU. @Srihari1192 would be possible to view the output of your run ?

@Srihari1192
Copy link
Contributor Author

These changes look good to me so far, but I think you should consider the following enhancements:

  1. Pre-install the following things:
  • kind (latest version available)
  • kubectl
  • kuttl (kubectl plugin)
  1. Configure the docker daemon to only have
  • 2 CPU
  • 8 GB of RAM.

The last bit is important for getting the end to end to run correctly, as they assume a certain amount of CPU's available to MCAD's kind cluster.

@z103cb Thanks for review For now we are using existing scripts run-e2e-kind.sh to install and run the test. I think we can refactor Pre-install things when we remove completely travis CI , as the changes will impact to Travis CI main branch merge build trigger

@Srihari1192 Hopefully this line is not causing a problem for your test.

Yes the mentioned line is not causing a problem in test and also Unit test and E2E tests results looks good https://github.com/Srihari1192/multi-cluster-app-dispatcher/actions/runs/5619138250/job/15225780359

@Srihari1192 Srihari1192 marked this pull request as ready for review July 21, 2023 09:46
z103cb
z103cb previously approved these changes Jul 21, 2023
Copy link
Contributor

@z103cb z103cb left a comment

Choose a reason for hiding this comment

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

We'll need a follow on PR/issue to remove travis support (i.e .travis.yaml) all together, but this is looking good.

@Srihari1192 Srihari1192 force-pushed the automate-PRCheck-480 branch 2 times, most recently from cbc91cc to 3c24fc6 Compare July 24, 2023 07:28
Copy link
Contributor

@z103cb z103cb left a comment

Choose a reason for hiding this comment

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

@Srihari1192 we need to make sure that these variables are set when calling make images.

"---"
"MAKE GLOBAL VARIABLES:"
"  "BIN_DIR="_output/bin"
"  "GIT_BRANCH=""
"  "RELEASE_VER=""
"  "TAG=""
"  "GO_BUILD_ARGS=""
"---"
# Check for 

@Srihari1192
Copy link
Contributor Author

@Srihari1192 we need to make sure that these variables are set when calling make images.

"---"
"MAKE GLOBAL VARIABLES:"
"  "BIN_DIR="_output/bin"
"  "GIT_BRANCH=""
"  "RELEASE_VER=""
"  "TAG=""
"  "GO_BUILD_ARGS=""
"---"
# Check for 

Yes Build is failing to fetch branch and tag.. looks like some permission required, looking into it

@Srihari1192 Srihari1192 force-pushed the automate-PRCheck-480 branch 5 times, most recently from 9f8c81e to 986c728 Compare July 24, 2023 10:52
@Srihari1192 Srihari1192 force-pushed the automate-PRCheck-480 branch 3 times, most recently from 1521b34 to f46ab48 Compare July 24, 2023 11:30
z103cb
z103cb previously approved these changes Jul 25, 2023
Copy link
Contributor

@z103cb z103cb left a comment

Choose a reason for hiding this comment

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

LGTM.

@Srihari1192 Srihari1192 force-pushed the automate-PRCheck-480 branch from f46ab48 to 4cb5ec8 Compare July 25, 2023 10:32
@sutaakar sutaakar marked this pull request as draft July 25, 2023 10:51
@Srihari1192 Srihari1192 force-pushed the automate-PRCheck-480 branch from 4cb5ec8 to f67ee62 Compare July 25, 2023 14:07
@Srihari1192 Srihari1192 marked this pull request as ready for review July 26, 2023 05:47
@Srihari1192 Srihari1192 requested a review from sutaakar July 26, 2023 05:47
@openshift-ci openshift-ci bot requested review from dimakis and tardieu July 26, 2023 05:47
@Srihari1192 Srihari1192 requested a review from z103cb July 26, 2023 05:47
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.

Looks good to me

@z103cb
Copy link
Contributor

z103cb commented Jul 26, 2023

This is looking good to me. Letting @asm582 chime in.

@openshift-ci
Copy link

openshift-ci bot commented Jul 26, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sutaakar, z103cb

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-merge-robot openshift-merge-robot merged commit 586eb13 into project-codeflare:main Jul 26, 2023
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.

Create a Github action for MCAD PR check
4 participants