Skip to content

Commit 169dd05

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. Signed-off-by: Pablo Barbáchano <[email protected]>
1 parent eb83708 commit 169dd05

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
@@ -56,6 +56,8 @@ def github_release(tag_version, repo, github_token):
5656
assets.append(release_tgz)
5757
assets.append(sha256sums)
5858

59+
assets.append("test_results.tar.gz")
60+
5961
message_file = Path(f"release-{tag_version}-x86_64") / "RELEASE_NOTES"
6062
message = message_file.read_text()
6163

@@ -76,7 +78,7 @@ def github_release(tag_version, repo, github_token):
7678
content_type = "application/octet-stream"
7779
if asset.suffix == ".txt":
7880
content_type = "text/plain"
79-
elif asset.suffix == ".tgz":
81+
elif asset.suffix in {".tgz", ".gz"}:
8082
content_type = "application/gzip"
8183
print(f"Uploading asset {asset} with content-type={content_type}")
8284
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
(
170167
cd "$RELEASE_DIR"
171168
find . -type f -not -name "SHA256SUMS" |sort |xargs sha256sum >SHA256SUMS

0 commit comments

Comments
 (0)