Skip to content

Add builders parameters to groups in composition files #1357

@laurentsenta

Description

@laurentsenta

Description

Subtask for #1340

We're working on interoperability tests with the go & rust libp2p projects, see #1340 and #1305.

We need the ability to write a test that uses different builders (like docker:go and docker:generic).

Example of a desired composition file:

[global]
  plan = "integrations_mixed_builders"
  case = "issue-1357-mix-builder-configuration"
  total_instances = 2
  runner = "local:docker"

[[groups]]
  id = "go"
  instances = { count = 1 }
  builder = "docker:go" # override builder here

  [groups.build_config]
    path = "go/" # define base path here

  [groups.run.test_params]
    expected_implementation = "go"

[[groups]]
  id = "generic"
  instances = { count = 1 }
  builder = "docker:generic" # override builder here

  [groups.build_config]
    path = "generic/" # define base path here
    build_args = { image = "golang:1.16-buster" }

  [groups.run.test_params]
    expected_implementation = "generic"

What defines this endeavor to be complete?

  • create a corresponding integration test with a similar manifest,
  • move the build configuration fields to the groups,
  • make sure the overrides manifest > composition.global > composition.groups are working as expected,
  • have the test passing & use in libp2p.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

✅ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions