From 4cb208e71e359cb116e85a2efcc578caaa1570a0 Mon Sep 17 00:00:00 2001 From: Muminul Islam Date: Tue, 22 Nov 2022 15:02:03 -0800 Subject: [PATCH] .buildkite: add hypervisor to special_keys Without this fix, yml is generated wrongly like below: steps: - label: coverage-x86_64 command: pytest $(find . -type f -name "test_coverage.py") retry: automatic: false agents: os: linux platform: x86_64.metal hypervisor: mshv plugins: - docker#v3.8.0: image: rustvmm/dev:v16 always-pull: true privileged: true timeout_in_minutes: 5 hypervisor: mshv // This is now right Signed-off-by: Muminul Islam --- .buildkite/autogenerate_pipeline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.buildkite/autogenerate_pipeline.py b/.buildkite/autogenerate_pipeline.py index 0c3599a..70ad44c 100755 --- a/.buildkite/autogenerate_pipeline.py +++ b/.buildkite/autogenerate_pipeline.py @@ -254,7 +254,7 @@ class BuildkiteStep: # forwarding the key, values without any change. # We need to filter for keys that have special meaning and which we # don't want to re-add. - special_keys = ['conditional', 'docker_plugin', 'platform', 'test_name', 'queue'] + special_keys = ['conditional', 'docker_plugin', 'platform', 'test_name', 'queue', 'hypervisor'] additional_keys = {k: v for k, v in input.items() if not (k in self.step_config) and not(k in special_keys)} if additional_keys: