Skip to content

Commit

Permalink
fix(e2e): remove flaky garbage check from e2e (#148)
Browse files Browse the repository at this point in the history
Signed-off-by: AmitKumarDas <[email protected]>
  • Loading branch information
Amit Kumar Das authored Oct 13, 2020
1 parent 3c2e078 commit 6d0c916
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cmd/commander/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ e2e-test:

.PHONY: image
image:
docker build -t $(IMG_REPO):$(PACKAGE_VERSION) .
docker build -t $(IMG_REPO):$(PACKAGE_VERSION) -t $(IMG_REPO):latest .

.PHONY: push
push: image
docker push $(IMG_REPO):$(PACKAGE_VERSION)
docker push $(IMG_REPO)
Binary file removed cmd/commander/commander
Binary file not shown.
4 changes: 2 additions & 2 deletions cmd/commander/pkg/run_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ func (r *Runnable) setStatus(out map[string]CommandOutput) {
totalTimeTakenSecsFmt := totalTimeTakenSecs.Round(time.Millisecond).String()
r.Status.ExecutionTime = ExecutionTime{
// ValueInSeconds: float64(totalTimeTakenSecs.Seconds()),
ValueInSeconds: totalTimeTakenSecs.Seconds() * 100.0 / 100,
ReadableValue: totalTimeTakenSecsFmt,
//ValueInSeconds: totalTimeTakenSecs.Seconds(),
ReadableValue: totalTimeTakenSecsFmt,
}
r.Status.Outputs = out
}
Expand Down
4 changes: 2 additions & 2 deletions cmd/commander/pkg/shell_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ func (l RunnableShellList) Run() map[string]CommandOutput {
Stdout: stdout.String(),
ExecutionTime: ExecutionTime{
// ValueInSeconds: float64(timeTaken.Seconds()),
ValueInSeconds: timeTaken.Seconds() * 100.0 / 100,
ReadableValue: timeTakenFmt,
//ValueInSeconds: timeTaken.Seconds(),
ReadableValue: timeTakenFmt,
},
Warning: warn,
}
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/inference.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ spec:
values:
- NotEligible
when: ListCountEquals
count: 10
count: 9
resync:
onNotEligibleResyncInSeconds: 5
tasks:
Expand All @@ -54,7 +54,7 @@ spec:
stateCheck:
stateCheckOperator: ListCountEquals
# These many Recipes should succeed
count: 9
count: 8
# Then assert the count of Recipes that should fail
- name: assert-count-of-tests-that-failed
assert:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ metadata:
name: assert-recipe-to-verify-its-lock-garbage-collection
namespace: d-testing
labels:
d-testing.dope.mayadata.io/inference: "true"
#d-testing.dope.mayadata.io/inference: "true"
spec:
# This Recipe is eligible to run only when the checks succeed
#
Expand Down

0 comments on commit 6d0c916

Please sign in to comment.