Default for building ONOS will be switching to Bazel

424 views
Skip to first unread message

Thomas Vachuska

unread,
Aug 7, 2018, 1:35:55 PM8/7/18
to ONOS Developers, ONOS Technical Steering Team
Hi everyone,

This is a heads up that in preparation for the upcoming release of ONOS 1.14.0 (Owl), we are switching to using Bazel as the default (and official) means of building ONOS. This means that a number of developer aliases and release scripts that help us manage the release build will start to refer to Bazel rather than to Buck.

To prepare for this change, developers should install Bazel 0.15.2 on their developer machines. (Note that Bazel 0.16.0 and above will not work for ONOS until the next release when we tackle building ONOS with the most recent versions of Java compiler.) Buck build will continue to work, but increasing number of the aliases and scripts will no longer refer to it. The dev environment already knows how to give priority to Bazel built bits when invoking STC.

To install Bazel, please consult documentation here: https://docs.bazel.build/versions/master/install.html
Information on how to import Bazel projects into various IDEs is here: https://docs.bazel.build/versions/master/ide.html


Expect various changes in this vein to start appearing in the code-base over the course of the next view days. Also, Bazel validation job will be setup on Jenkins very shortly. ONOS 1.14.0-rc1 build will be run early next week.

As usual, please do not hesitate to contact the onos-dev list if you have any issues, questions or suggestions regarding this.

Cheers...

Thomas

Thomas Vachuska

unread,
Aug 7, 2018, 1:51:49 PM8/7/18
to ONOS Developers, ONOS Technical Steering Team
One thing I should add is that in order to run Bazel or Buck builds, their counterpart’s cache directories need to be removed. So, in order to run Bazel build, one must first remove the buck-out directory, and conversely, to run Buck build, one must first remove the bazel-* directories from the top of the ONOS workspace.

Failure to do this, will likely result in either build breaking as both Bazel and Buck will mistakenly find build targets in the caches where they should not even be looking.

Thomas

Andrea Campanella

unread,
Aug 8, 2018, 4:10:48 AM8/8/18
to Thomas Vachuska, ONOS Developers, ONOS Technical Steering Team
Hi All,

I’ve also updated the wiki page here:
To reflect some of these changes and to have a fixed point for tracking the presentation that was linked by Tom.

Thanks, 
Andrea Campanella

Member of Technical Staff at ONF
Member of ONOS Technical Steering Team
Member of Ambassador Steering Team, ONOS and CORD Community

--
You received this message because you are subscribed to the Google Groups "ONOS Technical Steering Team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-tech-steerin...@onosproject.org.
To post to this group, send email to onos-tech-s...@onosproject.org.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-tech-steering-team/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-tech-steering-team/026D4DCD-E1A9-459C-8578-0C3F1CEFDEA2%40opennetworking.org.
For more options, visit https://groups.google.com/a/onosproject.org/d/optout.

mxiaon...@gmail.com

unread,
Dec 20, 2018, 4:23:27 AM12/20/18
to ONOS Developers, onos...@onosproject.org
Can you tell me why used Bazel instead of Buck?Does this changed has any promote to build work?Thanks.

在 2018年8月8日星期三 UTC+8上午1:35:55,tom写道:
在 2018年8月8日星期三 UTC+8上午1:35:55,tom写道:

laszl...@hubersuhner.com

unread,
Dec 20, 2018, 4:33:35 AM12/20/18
to mxiaon...@gmail.com, onos...@onosproject.org, onos...@onosproject.org
The things that I have heard (neglecting cons and my opinions)

1) More reliable builds

2) Faster incremental builds

3) More vanilla code



For information
concerning the processing of your personal data according to Art. 13, 14 GDPR
please refer to our Data Protection Statement at
https://www.hubersuhner.com/en/data-protection-statement.

This message
is confidential. It may also be privileged or otherwise protected by work
product immunity or other legal rules. If you are not the named addressee you
should not disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and delete
this e-mail from your system. Please note that any views or opinions presented
in this email are solely those of the author and do not necessarily represent
those of the company. All deliveries and services are subject to our General
Terms and Conditions of Sales.

Although the company has taken reasonable
precautions to ensure no viruses are present in this email, the company cannot
accept responsibility for any loss or damage arising from the use of this email
or attachments.


________________________________________
From: mxiaon...@gmail.com [mxiaon...@gmail.com]
Sent: 20 December 2018 09:23
To: ONOS Developers
Cc: onos...@onosproject.org
Subject: [onos-dev] Re: Default for building ONOS will be switching to Bazel
--
You received this message because you are subscribed to the Google Groups "ONOS Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+u...@onosproject.org<mailto:onos-dev+u...@onosproject.org>.
To post to this group, send email to onos...@onosproject.org<mailto:onos...@onosproject.org>.
Visit this group at https://groups.google.com/a/onosproject.org/group/onos-dev/.
To view this discussion on the web visit https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/9dbc57a6-5463-4a81-a5f8-4a28765669c2%40onosproject.org<https://groups.google.com/a/onosproject.org/d/msgid/onos-dev/9dbc57a6-5463-4a81-a5f8-4a28765669c2%40onosproject.org?utm_medium=email&utm_source=footer>.

马肖男

unread,
Dec 20, 2018, 4:41:26 AM12/20/18
to ONOS Developers, onos...@onosproject.org
hi,developer

 I get you point ,thanks.
在 2018年12月20日星期四 UTC+8下午5:33:35,laszlo.papp写道:
To unsubscribe from this group and stop receiving emails from it, send an email to onos-dev+u...@onosproject.org<mailto:onos-dev+unsubscribe@onosproject.org>.
Reply all
Reply to author
Forward
0 new messages