Skip to content

Commit 6c5181e

Browse files
committed
release: don't run the tests before release
The tests will be run at a later stage as part of the release automation. (cherry picked from commit 169dd05) Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent dd234ca commit 6c5181e

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

tools/devtool

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -486,11 +486,6 @@ cmd_build() {
486486
}
487487

488488
function cmd_make_release {
489-
OPTS="--reruns=7"
490-
# run build tests first so that functional tests reuse compilation artifacts
491-
cmd_test -- $OPTS --json-report-file=../test_results/test-report-perf+build.json integration_tests/{build,performance} || die "Tests failed!"
492-
cmd_test -- $OPTS --json-report-file=../test_results/test-report-functional+security.json -n8 --dist=worksteal integration_tests/{functional,security,style} || die "Tests failed!"
493-
494489
run_devctr \
495490
--user "$(id -u):$(id -g)" \
496491
--workdir "$CTR_FC_ROOT_DIR" \

tools/gh_release.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ def github_release(tag_version, repo, github_token):
6262
assets.append(release_tgz)
6363
assets.append(sha256sums)
6464

65+
assets.append(Path("test_results.tar.gz"))
66+
6567
message_file = Path(f"release-{tag_version}-x86_64") / "RELEASE_NOTES"
6668
message = message_file.read_text()
6769

@@ -82,7 +84,7 @@ def github_release(tag_version, repo, github_token):
8284
content_type = "application/octet-stream"
8385
if asset.suffix == ".txt":
8486
content_type = "text/plain"
85-
elif asset.suffix == ".tgz":
87+
elif asset.suffix in {".tgz", ".gz"}:
8688
content_type = "application/gzip"
8789
print(f"Uploading asset {asset} with content-type={content_type}")
8890
gh_release.upload_asset(str(asset), label=asset.name, content_type=content_type)

tools/release.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,6 @@ cp -v -t "$RELEASE_DIR" LICENSE NOTICE THIRD-PARTY
163163
check_swagger_artifact src/api_server/swagger/firecracker.yaml "$VERSION"
164164
cp -v src/api_server/swagger/firecracker.yaml "$RELEASE_DIR/firecracker_spec-$VERSION.yaml"
165165

166-
cp -v test_results/test-report-functional+security.json "$RELEASE_DIR/"
167-
cp -v test_results/test-report-perf+build.json "$RELEASE_DIR/"
168-
169166
CPU_TEMPLATES=(c3 t2 t2s t2cl t2a v1n1)
170167
for template in "${CPU_TEMPLATES[@]}"; do
171168
cp -v tests/data/static_cpu_templates/$template.json $RELEASE_DIR/$template-$VERSION.json

0 commit comments

Comments
 (0)