-
Notifications
You must be signed in to change notification settings - Fork 61
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
fix(ci): build images before running sanity test #129
Conversation
Signed-off-by: Niladri Halder <[email protected]>
Codecov Report
@@ Coverage Diff @@
## develop #129 +/- ##
========================================
Coverage 49.79% 49.79%
========================================
Files 38 38
Lines 2705 2705
========================================
Hits 1347 1347
Misses 1255 1255
Partials 103 103 Continue to review full report at Codecov.
|
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
…anity-test job item higher up the list for readability Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
@@ -12,7 +12,7 @@ | |||
#See the License for the specific language governing permissions and | |||
#limitations under the License. | |||
# | |||
FROM alpine:3.11.5 | |||
FROM alpine:3.12 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Info: Changes in this file are done to sync with buildx docker file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✔️
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes are good
Signed-off-by: Niladri Halder <[email protected]>
Signed-off-by: Niladri Halder <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Signed-off-by: Niladri Halder <[email protected]>
# to ignore builds on release | ||
if: ${{ (github.event.ref_type != 'tag') }} | ||
runs-on: ubuntu-latest | ||
needs: ['lint', 'unit-test'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@niladrih Running sanity test parallel is causing test to get timeout(May be due to less resources)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One of the tests failed a due to 404 error.
2 other sanity-tests running in #272 and #273 passed.
Likely cause is test flakiness.
Signed-off-by: Niladri Halder [email protected]
Why is this PR required? What issue does it fix?:
The GitHub Actions CI runs
make sanity-test
against existing docker hub images. The images with the changes are not built correctly before running the sanity test. The sanity test does not produce results against the latest changes.Additionally, the apt install for the nfs-common prerequisite will require interactive Y/N command if the nfs-common prerequisite is absent, and the install needs to go through. Added the
-y
flag to make the Y option non-interactive.What this PR does?:
Build workflow: Both the provisioner-nfs and nfs-server-alpine image builds are added before the test run.
Pull Request workflow: The build for the nfs-server-alpine image is now added.
The Dockerfile file in buildscripts/provisioner-nfs/ directory now uses the same base image as provisioner-nfs.Dockerfile.
Changed the CMD directive to ENTRYPOINT directive in 'Dockerfile' file.
Go setup in GitHub actions is added to provisioner-nfs workflow.
Updated minikube action to latest version -- 2.4.2
Minikube used is now v1.24.0
Kubernetes version is now 1.20.13
Added flag to disable minikube storage-provisioner addon (nfs_claim_released_pv test, nfs_sc_delayed_binding_test.go, nfs_server_param_test.go now use openebs-hostpath BackendStorageClass instead of the default one)
Build and Pull Request workflow runs will be avoided for pushes to docs/ directory
The sanity-test now runs in parallel with the multi-arch build tests for the provisioner-nfs and nfs-server-alpine image.
Does this PR require any upgrade changes?:
No.
If the changes in this PR are manually verified, list down the scenarios covered::
Not manually verified.
Any additional information for your reviewer? :
The PR #125 depends on this.