Skip to content

Conversation

gbionescu
Copy link

Reason for This PR

./devtool strip was failing due to incorrect path.

Description of Changes

Fix strip command and add a command called ci to use to test the release process end to end.

  • This functionality can be added in rust-vmm.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license.

PR Checklist

[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any newly added unsafe code is properly documented.
  • Any API changes are reflected in firecracker/swagger.yaml.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

alindima
alindima previously approved these changes May 17, 2021
tools/devtool Outdated
# 1. devtool -y test
# 2. devtool -y build --release
# 3. devtool strip
cmd_ci() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to use in our CI pipelines?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, we should test that a PR also doesn't break the release steps, whatever those steps are.

@@ -775,13 +775,13 @@ cmd_strip() {
strip $strip_flags\
"$CTR_CARGO_TARGET_DIR/$target/$profile/firecracker" \
"$CTR_CARGO_TARGET_DIR/$target/$profile/jailer" \
"$CTR_CARGO_TARGET_DIR/$target/$profile/seccompiler/seccompiler"
"$CTR_CARGO_SECCOMPILER_TARGET_DIR/$target/$profile/seccompiler"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice catch!

@gbionescu gbionescu marked this pull request as draft May 17, 2021 11:27
@gbionescu
Copy link
Author

Given this a second thought and we need to enable proper flexibility when testing with the ci command. I'll circle back on this once I have a better proposal.

I'll remove the ci command commit and mark it as ready again.

Gabriel Ionescu added 2 commits May 17, 2021 18:50
When stripping binaries, the path pointing to the seccompiler binary was
incorrect.

Since we're putting the seccomp binary in a different location than
standard binaries, this commit also adds a message for where to find the
stripped seccompiler binary.

Signed-off-by: Gabriel Ionescu <[email protected]>
@gbionescu gbionescu marked this pull request as ready for review May 17, 2021 15:52
@alindima alindima merged commit a7b4d0d into firecracker-microvm:main May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants