Skip to content

fix: update test & ci to use the sync service#1353

Merged
laurentsenta merged 4 commits intomasterfrom
fix/update-examples-and-kind
Jun 14, 2022
Merged

fix: update test & ci to use the sync service#1353
laurentsenta merged 4 commits intomasterfrom
fix/update-examples-and-kind

Conversation

@laurentsenta
Copy link
Copy Markdown
Contributor

@laurentsenta laurentsenta commented Jun 8, 2022

We're patching testground run --wait to make the CLI exit code consistent with the testground outcome in #1347. We want to make sure that if the test outcome is a failure, the command fails.

But now, integrations tests in #1347 fail because the placebo test outcome is failure (see comments in #1304 for more details) and the CLI catches this outcome (which is the new, expected, behavior).

Todo

  • Update the tests to signal success to the sync service
  • Tweak the CI setup (kind) to get minimal testground support
  • Fix the status conversion error in k8s

@laurentsenta laurentsenta marked this pull request as draft June 8, 2022 10:49
@mxinden
Copy link
Copy Markdown
Member

mxinden commented Jun 8, 2022

@laurentsenta mind stating the motivation here for folks like me that are not too familiar with testground to be able to follow along?

@laurentsenta
Copy link
Copy Markdown
Contributor Author

@mxinden I updated the description :)

@laurentsenta laurentsenta force-pushed the fix/update-examples-and-kind branch from 6ce526f to e2847da Compare June 9, 2022 09:17
@laurentsenta laurentsenta marked this pull request as ready for review June 9, 2022 15:30
laurentsenta added a commit that referenced this pull request Jun 10, 2022
Squashed commit of the following:

commit e2847da
Author: Laurent Senta <laurent@singulargarden.com>
Date:   Thu Jun 9 10:43:38 2022 +0200

    fix: converstion error in k8s

    ```
    Jun  9 08:39:50.154528  INFO    cleaning up finished pods...
    {"runner": "cluster:k8s", "run_id": "cagr3jtah42asoqjl390"}
    panic: interface conversion: runtime.Object is *v1.Status, not *v1.Event

    goroutine 105 [running]:
    github.com/testground/testground/pkg/runner.(*ClusterK8sRunner).watchRunPods.func1(0xc000d89980,
    0xc0003d0700, 0xc0005ff020, 0xc000b864c0)
            /home/circleci/project/pkg/runner/cluster_k8s.go:736 +0x4a9
    created by
    github.com/testground/testground/pkg/runner.(*ClusterK8sRunner).watchRunPods
            /home/circleci/project/pkg/runner/cluster_k8s.go:734 +0x2e7
    ```

commit a53077f
Author: Laurent Senta <laurent@singulargarden.com>
Date:   Wed Jun 8 18:26:08 2022 +0200

    ci: tweak the configuration so sync service passes

commit f2ab852
Author: Laurent Senta <laurent@singulargarden.com>
Date:   Wed Jun 8 17:34:34 2022 +0200

    fix: minimal init the placebo test

commit b6d65c2
Author: Laurent Senta <laurent@singulargarden.com>
Date:   Wed Jun 8 12:49:05 2022 +0200

    fix: placebo examples relies on initialized test
@laurentsenta
Copy link
Copy Markdown
Contributor Author

@brdji coming from discord, have you had a chance to ask some of the k8s experts on your team for a review?

```
Jun  9 08:39:50.154528  INFO    cleaning up finished pods...
{"runner": "cluster:k8s", "run_id": "cagr3jtah42asoqjl390"}
panic: interface conversion: runtime.Object is *v1.Status, not *v1.Event

goroutine 105 [running]:
github.com/testground/testground/pkg/runner.(*ClusterK8sRunner).watchRunPods.func1(0xc000d89980,
0xc0003d0700, 0xc0005ff020, 0xc000b864c0)
        /home/circleci/project/pkg/runner/cluster_k8s.go:736 +0x4a9
created by
github.com/testground/testground/pkg/runner.(*ClusterK8sRunner).watchRunPods
        /home/circleci/project/pkg/runner/cluster_k8s.go:734 +0x2e7
```
@laurentsenta laurentsenta force-pushed the fix/update-examples-and-kind branch from e2847da to 40bed76 Compare June 14, 2022 11:37
@laurentsenta laurentsenta changed the title fix: update test & ci to use initialized test cases fix: update test & ci to use the sync service Jun 14, 2022
@laurentsenta laurentsenta merged commit 3e21db6 into master Jun 14, 2022
@laurentsenta laurentsenta deleted the fix/update-examples-and-kind branch June 14, 2022 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants