Skip to content

Commit e2e15fe

Browse files
committed
chore: unemojify remaining bk pipelines
Update names for remaining BK pipelines. This is needed because BK labels are used as a part of the s3 path where the BK artifacts are uploaded. Removing emojis and normalizing names simplifies these paths. Signed-off-by: Egor Lazarchuk <[email protected]>
1 parent 65965b8 commit e2e15fe

File tree

8 files changed

+24
-27
lines changed

8 files changed

+24
-27
lines changed

.buildkite/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def __init__(self, with_build_step=True, **kwargs):
273273
if not args.binary_dir and with_build_step:
274274
build_cmds, self.shared_build = shared_build()
275275
self.build_group_per_arch(
276-
"🏗️ Build", build_cmds, depends_on_build=False, set_key=self.shared_build
276+
"build", build_cmds, depends_on_build=False, set_key=self.shared_build
277277
)
278278
else:
279279
self.shared_build = None

.buildkite/pipeline_coverage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
pipeline = BKPipeline(with_build_step=False)
1010

1111
pipeline.build_group(
12-
":coverage: Coverage",
12+
"coverage",
1313
pipeline.devtool_test(
1414
devtool_opts="--no-build",
1515
pytest_opts="integration_tests/build/test_coverage.py",

.buildkite/pipeline_cpu_template.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class BkStep(str, Enum):
2525
BkStep.COMMAND: [
2626
"tools/devtool -y test --no-build -- -m no_block_pr -n4 --dist worksteal integration_tests/functional/test_cpu_features_x86_64.py -k 'test_cpu_rdmsr' "
2727
],
28-
BkStep.LABEL: "📖 rdmsr",
28+
BkStep.LABEL: "rdmsr",
2929
"instances": [
3030
"m5n.metal",
3131
"m6i.metal",
@@ -39,7 +39,7 @@ class BkStep(str, Enum):
3939
BkStep.COMMAND: [
4040
"tools/devtool -y test --no-build -- -m no_block_pr integration_tests/functional/test_cpu_template_helper.py -k test_guest_cpu_config_change",
4141
],
42-
BkStep.LABEL: "🖐️ fingerprint",
42+
BkStep.LABEL: "fingerprint",
4343
},
4444
"cpuid_wrmsr": {
4545
"snapshot": {
@@ -48,7 +48,7 @@ class BkStep(str, Enum):
4848
"mkdir -pv tests/snapshot_artifacts_upload/{instance}_{os}_{kv}",
4949
"sudo mv tests/snapshot_artifacts/* tests/snapshot_artifacts_upload/{instance}_{os}_{kv}",
5050
],
51-
BkStep.LABEL: "📸 create snapshots",
51+
BkStep.LABEL: "snapshot-create",
5252
BkStep.ARTIFACTS: "tests/snapshot_artifacts_upload/**/*",
5353
BkStep.TIMEOUT: 30,
5454
},
@@ -58,7 +58,7 @@ class BkStep(str, Enum):
5858
"mv tests/snapshot_artifacts_upload/{instance}_{os}_{kv} tests/snapshot_artifacts",
5959
"tools/devtool -y test --no-build -- -m nonci -n4 --dist worksteal integration_tests/functional/test_cpu_features_x86_64.py -k 'test_cpu_wrmsr_restore or test_cpu_cpuid_restore'",
6060
],
61-
BkStep.LABEL: "📸 load snapshot artifacts created on {instance} {snapshot_os} {snapshot_kv} to {restore_instance} {restore_os} {restore_kv}",
61+
BkStep.LABEL: "snapshot-restore-src-{instance}-{snapshot_os}-{snapshot_kv}-dst-{restore_instance}-{restore_os}-{restore_kv}",
6262
BkStep.TIMEOUT: 30,
6363
},
6464
"cross_instances": {
@@ -137,7 +137,7 @@ def group_snapshot_restore(test_step):
137137
)
138138

139139
groups.append(
140-
{"group": "📸 restores snapshots", "steps": steps, "depends_on": "snapshot"}
140+
{"group": "snapshot-restore", "steps": steps, "depends_on": "snapshot"}
141141
)
142142
return groups
143143

.buildkite/pipeline_cross.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"tar cSvf snapshots/{instance}_{kv}.tar snapshot_artifacts",
3737
]
3838
pipeline.build_group(
39-
"📸 create snapshots",
39+
"snapshot-create",
4040
commands,
4141
timeout=30,
4242
artifact_paths="snapshots/**/*",
@@ -93,13 +93,13 @@
9393
pytest_opts=f"-m nonci -n8 --dist worksteal {k_val} integration_tests/functional/test_snapshot_restore_cross_kernel.py",
9494
),
9595
],
96-
"label": f"🎬 {src_instance} {src_kv} ➡️ {dst_instance} {dst_kv}",
96+
"label": f"snapshot-restore-src-{src_instance}-{src_kv}-dst-{dst_instance}-{dst_kv}",
9797
"timeout": 30,
9898
"agents": {"instance": dst_instance, "kv": dst_kv, "os": dst_os},
9999
**per_instance,
100100
}
101101
steps.append(step)
102102
pipeline.add_step(
103-
{"group": "🎬 restore across instances and kernels", "steps": steps}
103+
{"group": "snapshot-restore-across-instances-and-kernels", "steps": steps}
104104
)
105105
print(pipeline.to_json())

.buildkite/pipeline_docker_popular.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
ROOTFS_TAR = f"rootfs_$(uname -m)_{random_str(k=8)}.tar.gz"
1414

1515
pipeline.build_group_per_arch(
16-
":ship: Rootfs build",
16+
"rootfs-build",
1717
[
1818
"sudo yum install -y systemd-container",
1919
"cd tools/test-popular-containers",
@@ -26,7 +26,7 @@
2626
)
2727

2828
pipeline.build_group(
29-
":whale: Docker Popular Containers",
29+
"docker-popular-containers",
3030
[
3131
"./tools/devtool download_ci_artifacts",
3232
f'buildkite-agent artifact download "{ROOTFS_TAR}" .',

.buildkite/pipeline_pr.py

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@
2727
pipeline.add_step(
2828
{
2929
"command": "./tools/devtool -y checkstyle",
30-
"label": "🪶 Style",
30+
"label": "style",
3131
},
3232
depends_on_build=False,
3333
)
3434

3535
# run sanity build of devtool if Dockerfile is changed
3636
if any(x.parent.name == "devctr" for x in changed_files):
3737
pipeline.build_group_per_arch(
38-
"🐋 Dev Container Sanity Build",
38+
"dev-container-sanity-build",
3939
"./tools/devtool -y build_devctr && DEVCTR_IMAGE_TAG=latest ./tools/devtool test --no-build -- integration_tests/functional/test_api.py",
4040
)
4141

@@ -44,7 +44,7 @@
4444
for x in changed_files
4545
):
4646
pipeline.build_group_per_arch(
47-
"📦 Release Sanity Build",
47+
"release-sanity-build",
4848
"./tools/devtool -y make_release",
4949
depends_on_build=False,
5050
)
@@ -56,7 +56,7 @@
5656
or any(x.name == "test_kani.py" for x in changed_files)
5757
):
5858
kani_grp = pipeline.build_group(
59-
"🔍 Kani",
59+
"kani",
6060
"./tools/devtool -y test --no-build -- ../tests/integration_tests/test_kani.py -n auto",
6161
# Kani step default
6262
# Kani runs fastest on m6a.metal
@@ -66,26 +66,23 @@
6666
**DEFAULTS_PERF,
6767
depends_on_build=False,
6868
)
69-
# modify Kani steps' label
70-
for step in kani_grp["steps"]:
71-
step["label"] = "🔍 Kani"
7269

7370
if run_all_tests(changed_files):
7471
pipeline.build_group(
75-
"📦 Build",
72+
"build",
7673
pipeline.devtool_test(pytest_opts="integration_tests/build/"),
7774
depends_on_build=False,
7875
)
7976

8077
pipeline.build_group(
81-
"⚙ Functional and security 🔒",
78+
"functional-and-security",
8279
pipeline.devtool_test(
8380
pytest_opts="-n 16 --dist worksteal integration_tests/{{functional,security}}",
8481
),
8582
)
8683

8784
pipeline.build_group(
88-
"⏱ Performance",
85+
"performance",
8986
pipeline.devtool_test(
9087
devtool_opts="--performance -c 1-10 -m 0",
9188
pytest_opts="../tests/integration_tests/performance/",

.buildkite/pipeline_pr_no_block.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
)
2020

2121
pipeline.build_group(
22-
"❓ Optional",
22+
"optional",
2323
pipeline.devtool_test(
2424
devtool_opts="--performance -c 1-10 -m 0",
2525
pytest_opts="integration_tests/ -m no_block_pr --log-cli-level=INFO",

.buildkite/pipeline_release_qa.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
pipeline.add_step(
1616
{
17-
"label": "Download release",
17+
"label": "download-release",
1818
"if": 'build.env("VERSION") != "dev"',
1919
"command": [
2020
"aws s3 sync --no-sign-request s3://spec.ccfc.min/firecracker-ci/firecracker/$$VERSION release-$$VERSION",
@@ -25,7 +25,7 @@
2525
)
2626

2727
pipeline.build_group_per_arch(
28-
":building_construction: Make release",
28+
"make-release",
2929
# if is a keyword for python, so we need this workaround to expand it as a kwarg
3030
**{"if": 'build.env("VERSION") == "dev"'},
3131
command=[
@@ -48,7 +48,7 @@
4848
# The devtool expects the examples to be in the same folder as the binaries to run some tests
4949
# (for example, uffd handler tests). Build them and upload them in the same folder.
5050
pipeline.build_group_per_arch(
51-
":hammer_and_wrench: Build examples",
51+
"build-examples",
5252
command=[
5353
"CARGO_TARGET=$$(uname -m)-unknown-linux-musl",
5454
"./tools/devtool -y sh cargo build --target $$CARGO_TARGET --release --examples",
@@ -63,7 +63,7 @@
6363

6464
pipeline.add_step(
6565
{
66-
"label": ":pipeline: PR",
66+
"label": "pr",
6767
"command": (
6868
".buildkite/pipeline_pr.py --binary-dir release-$$VERSION "
6969
"| jq '(..|select(.priority? != null).priority) += 100' "

0 commit comments

Comments
 (0)