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

Add a task to build iotedged with feature=runtime-kubernetes during checkin. #1606

Merged
merged 7 commits into from
Aug 29, 2019

Conversation

darobs
Copy link
Contributor

@darobs darobs commented Aug 21, 2019

In order to make sure changes in one module runtime (Docker) don't break the other module runtime (Kubernetes), I added a step in the linux amd64 Checkin build to build iotedged with the runtime-kubernetes feature turned on.

@darobs darobs changed the title Add a task to build iotedged with feature=runtime-kuberenetes during checkin. Add a task to build iotedged with feature=runtime-kubernetes during checkin. Aug 21, 2019
dmolokanov
dmolokanov previously approved these changes Aug 21, 2019
Copy link
Contributor

@dmolokanov dmolokanov left a comment

Choose a reason for hiding this comment

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

Looks good to me! :shipit:

@arsing
Copy link
Member

arsing commented Aug 21, 2019

In that case, please change the regular build.sh to build with -p ... instead of --all, so that Kubernetes-specific crates are only built in the second step.

listed are all the projects which do not require features set.
###############################################################################
# These are the packages this script will build.
###############################################################################
packages=(iotedge iotedged iotedge-diagnostics iotedge-proxy)
Copy link
Member

Choose a reason for hiding this comment

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

We need iotedge-proxy for non-Kubernetes?

Copy link
Contributor Author

@darobs darobs Aug 23, 2019

Choose a reason for hiding this comment

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

iotedge-proxy is not build with the feature "runtime-kubernetes" - it's built with the default features.

I've gone back and forth on this. It was easier to add to the list of packages, and where it is placed does not impact build time, but it is not required for non-k8s work. If other people have strong opinions on placement, I'll gladly move it.

Copy link
Member

Choose a reason for hiding this comment

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

If it was meant for non-Kubernetes I would've liked to be on the code review for when it was merged. Just from a quick glance I see it's not doing error-handling correctly.

Anyway, what features it's built with isn't the way we should differentiate. Was it planned to ship in iotedge.deb ? Then it's part of the regular build. If it wasn't, then it's not.

I'm fine with leaving it where it is, but in the future if you're planning on doing non-Kubernetes work, please involve the non-Kubernetes team in the code reviews.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added a bug to our backlog to get our error handling in sync with the rest of the project.

@darobs darobs merged commit aa33983 into Azure:master Aug 29, 2019
@darobs darobs deleted the darobs/add-k8s-build-to-checkin branch August 29, 2019 02:03
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