Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forward-Port 1.5 branch hot-fixes + correctly bump snapshot version for 1.6 #4169

Merged
merged 8 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .buildkite/pipeline_pr.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@

release_grp = group(
"📦 Release Sanity Build",
"mkdir -p ./test_results && touch ./test_results/test-report.json && ./tools/devtool -y sh ./tools/release.sh --libc musl --profile release --make-release",
"./tools/devtool -y make_release",
**defaults_once_per_architecture,
)

Expand Down
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
# Changelog

## [Unreleased]
## Unreleased

### Added

### Changed

### Fixed

## [1.5.0]

### Added

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/snapshot-editor/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "snapshot-editor"
version = "1.5.0"
version = "1.6.0-dev"
authors = ["Amazon Firecracker team <[email protected]>"]
edition = "2021"
license = "Apache-2.0"
Expand Down
3 changes: 2 additions & 1 deletion src/vmm/src/version_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ lazy_static! {
version_map.set_type_version(VcpuState::type_id(), 2);

version_map.set_type_version(VmState::type_id(), 2);
version_map.set_type_version(VirtioDeviceState::type_id(), 2);

// v1.6 state change mappings
version_map.new_version();

version_map.set_type_version(VirtioDeviceState::type_id(), 2);

version_map
};

Expand Down
2 changes: 1 addition & 1 deletion tests/framework/microvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ def kill(self):
class Serial:
"""Class for serial console communication with a Microvm."""

RX_TIMEOUT_S = 20
RX_TIMEOUT_S = 60

def __init__(self, vm):
"""Initialize a new Serial object."""
Expand Down
1 change: 1 addition & 0 deletions tests/integration_tests/functional/test_concurrency.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def test_run_concurrency(microvm_factory, guest_kernel, rootfs):

def launch1():
microvm = microvm_factory.build(guest_kernel, rootfs)
microvm.time_api_requests = False # is flaky because of parallelism
microvm.spawn()
microvm.basic_config(vcpu_count=1, mem_size_mib=128)
microvm.add_net_iface()
Expand Down
5 changes: 4 additions & 1 deletion tools/devtool
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,10 @@ cmd_build() {
}

function cmd_make_release {
cmd_test -- --reruns 2 || die "Tests failed!"
OPTS="--reruns=7"
# run build tests first so that functional tests reuse compilation artifacts
cmd_test -- $OPTS --json-report-file=../test_results/test-report-perf+build.json integration_tests/{build,performance} || die "Tests failed!"
cmd_test -- $OPTS --json-report-file=../test_results/test-report-functional+security.json -n8 --dist=worksteal integration_tests/{functional,security,style} || die "Tests failed!"

run_devctr \
--user "$(id -u):$(id -g)" \
Expand Down
11 changes: 4 additions & 7 deletions tools/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,13 @@ if [ "$PROFILE" = "release" ]; then
CARGO_OPTS+=" --release"
fi

# Artificially trigger a re-run of the build script,
# to make sure that `firecracker --version` reports the latest changes.
touch build.rs

ARTIFACTS=(firecracker jailer seccompiler-bin rebase-snap cpu-template-helper)
ARTIFACTS=(firecracker jailer seccompiler-bin rebase-snap cpu-template-helper snapshot-editor)

if [ "$LIBC" == "gnu" ]; then
# Don't build jailer. See commit 3bf285c8f
echo "Not building jailer because glibc selected instead of musl"
CARGO_OPTS+=" --exclude jailer"
ARTIFACTS=(firecracker seccompiler-bin rebase-snap cpu-template-helper)
ARTIFACTS=(firecracker seccompiler-bin rebase-snap cpu-template-helper snapshot-editor)
fi

say "Building version=$VERSION, profile=$PROFILE, target=$CARGO_TARGET..."
Expand Down Expand Up @@ -167,7 +163,8 @@ cp -v -t "$RELEASE_DIR" LICENSE NOTICE THIRD-PARTY
check_swagger_artifact src/api_server/swagger/firecracker.yaml "$VERSION"
cp -v src/api_server/swagger/firecracker.yaml "$RELEASE_DIR/firecracker_spec-$VERSION.yaml"

cp -v test_results/test-report.json "$RELEASE_DIR/"
cp -v test_results/test-report-functional+security.json "$RELEASE_DIR/"
cp -v test_results/test-report-perf+build.json "$RELEASE_DIR/"

(
cd "$RELEASE_DIR"
Expand Down
2 changes: 1 addition & 1 deletion tools/update-credits.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ written in Rust with a focus on safety and security. Thanks go to:
Contributors to the Firecracker repository:
EOH
echo
git log --format='* %aN <%aE>' | LC_ALL=C.UTF-8 sort -uf
git log --format='* %aN <%aE>' | LC_ALL=C.UTF-8 sort -uf | grep -v "dependabot"
} > CREDITS.md
Loading