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 test for deferPhase in blueprint actions #1337

Merged
merged 13 commits into from
Apr 11, 2022
Merged

Conversation

viveksinghggits
Copy link
Contributor

@viveksinghggits viveksinghggits commented Mar 28, 2022

Change Overview

As part of this PR we tried to add an eventual phase in the kanister blueprint action.
This PR adds test for that change.

Pull request type

Please check the type of change your PR introduces:

  • 🚧 Work in Progress
  • 🌈 Refactoring (no functional changes, no api changes)
  • 🐹 Trivial/Minor
  • 🐛 Bugfix
  • 🌻 Feature
  • 🗺️ Documentation
  • 🤖 Test

Issues

  • #XXX

Test Plan

  • 💪 Manual
  • ⚡ Unit test
  • 💚 E2E
» go test -check.f "ControllerSuite"

The logs can be found here.

@viveksinghggits viveksinghggits changed the base branch from master to eventual-phase March 28, 2022 21:37
@shuguet shuguet added this to In Progress in Kanister via automation Mar 28, 2022
@viveksinghggits viveksinghggits force-pushed the eventual-phase-test branch 2 times, most recently from 3bf40c9 to 5aaf6bc Compare March 29, 2022 07:09
@viveksinghggits
Copy link
Contributor Author

travis is somehow not run in the last commit, its just mergify thats run. 😶‍🌫️

@viveksinghggits
Copy link
Contributor Author

@ihcsim this can also be reviewed.

Copy link
Contributor

@ihcsim ihcsim left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for adding tests!

pkg/controller/controller_test.go Outdated Show resolved Hide resolved
pkg/controller/controller_test.go Show resolved Hide resolved
pkg/controller/controller_test.go Show resolved Hide resolved
Kanister automation moved this from In Progress to Reviewer approved Apr 6, 2022
Blueprints can now define `deferPhase` for every action
that would be run once all (some in case of failure) the
phases of a blueprint action are run.
This commit adds a test that uses a blueprint with
`deferPhase` and consumes artifacts in other action.
1. travis CI has been consistently failing recenlty with below error

```
FAIL: crd_test.go:30: CRDSuite.TestCRDMatcher

crd_test.go:49:
    c.Assert(len(igvrs)+len(egvrs), Equals, len(gvrs))
... obtained int = 64
... expected int = 32

OOPS: 0 passed, 1 FAILED

```
And this happens if there are no CRDs present in the cluster. This
commit installs CSI hostpath that installs some CRDs.

2. We were running `helm-test` twice unknowlingly, this resolves that as
well.
@mergify mergify bot merged commit 019530e into master Apr 11, 2022
Kanister automation moved this from Reviewer approved to Done Apr 11, 2022
@mergify mergify bot deleted the eventual-phase-test branch April 11, 2022 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

None yet

2 participants