forked from firecracker-microvm/firecracker
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'v1.2.1' into uffd-superbranch-3
Changed * Upgraded Rust toolchain from 1.64.0 to 1.66.1. Fixed * A race condition that has been identified between the API thread and the VMM thread due to a misconfiguration of the `api_event_fd`.
- Loading branch information
Showing
100 changed files
with
2,053 additions
and
1,297 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Copyright 2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
""" | ||
Common helpers to create Buildkite pipelines | ||
""" | ||
|
||
import json | ||
|
||
DEFAULT_INSTANCES = [ | ||
"m5d.metal", | ||
"m6i.metal", | ||
"m6a.metal", | ||
"m6g.metal", | ||
] | ||
|
||
DEFAULT_PLATFORMS = [("al2", "linux_4.14"), ("al2", "linux_5.10")] | ||
|
||
DEFAULT_QUEUE = "public-prod-us-east-1" | ||
|
||
|
||
def group(label, command, instances, platforms, agent_tags=None, **kwargs): | ||
""" | ||
Generate a group step with specified parameters, for each instance+kernel | ||
combination | ||
https://buildkite.com/docs/pipelines/group-step | ||
""" | ||
if agent_tags is None: | ||
agent_tags = [] | ||
# Use the 1st character of the group name (should be an emoji) | ||
label1 = label[0] | ||
steps = [] | ||
for instance in instances: | ||
for (os, kv) in platforms: | ||
agents = [f"instance={instance}", f"kv={kv}", f"os={os}"] + agent_tags | ||
step = { | ||
"command": command, | ||
"label": f"{label1} {instance} {os} {kv}", | ||
"agents": agents, | ||
**kwargs, | ||
} | ||
steps.append(step) | ||
|
||
return {"group": label, "steps": steps} | ||
|
||
|
||
def pipeline_to_json(pipeline): | ||
"""Serialize a pipeline dictionary to JSON""" | ||
return json.dumps(pipeline, indent=4, sort_keys=True, ensure_ascii=False) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ __pycache__ | |
.vscode | ||
test_results/* | ||
*.core | ||
*.profraw |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[title-max-length] | ||
line-length=50 | ||
line-length=72 | ||
|
||
[body-max-line-length] | ||
line-length=72 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.