47 Commits

Author SHA1 Message Date
pierventre
b59c51dd4e [SDFAB-933] Integrate atomix-3.1.12 and expose demote API
Additionally, this patch adds unit tests for demote and
updates a bunch of testing tools

Change-Id: I9636078b08486c9167ae253f0251f72239ad2802
2022-02-15 17:05:26 +01:00
pier
790202aaf6 [AETHER-72][AETHER-75] Update atomix to 3.1.9
Additionally fix an issue brough by 24302

Change-Id: I60192953f0ebef6730ad6268b10bbf8a59934156
2021-04-06 13:03:51 +02:00
Sean Condon
436c60a1f6 Upgraded to bazel 3.7.2 and rules_nodejs 2.3.2
Change-Id: If53686f2475c4f367909de577b4da95de8e16768
2021-01-04 15:42:57 +00:00
Sean Condon
e4e8f6a889 Upgraded to Angular 9.1.0 and rules_nodejs to 1.6
Added in command to generate gui2-fw-lib as NPM package

Change-Id: Id21f6f17b6edcd09cffd237f7ece90cf97a71bc2
2020-04-13 10:14:32 +00:00
Sean Condon
6ceebf0392 GUI2 Upgraded Angular to 9rc10 and rules_nodejs to 1.10
Change-Id: I56f5f28dffb9102b2b7920fcbf6a0b084051662c
2020-01-24 09:04:29 +00:00
Ray Milkey
0b67f5d66a Run onos-lib-gen to fix the maven central URLs
Change-Id: Ifc010518cb0df9d61245eaf8b398ad91c452b6ec
2020-01-15 14:04:41 -08:00
Sean Condon
a3ad779274 Added back in Bazel tests for gui2-fw-lib and gui2-topo-lib
Also used a named path in typescript for gui2-fw-lib

Change-Id: I7233565e53b9b86e1766228ecc96b21ea6f7499d
2020-01-08 13:11:31 +00:00
Sean Condon
8bba394216 Added --frozen-lockfile to yarn_install in WORKSPACE
As recommended on https://yarnpkg.com/en/docs/cli/install to fix problems in CI

Also upgraded Third Party Products for legacy GUI

Change-Id: I538aff2b111d599c74d3b484af839b52599b3fb2
2020-01-08 11:01:34 +00:00
Sean Condon
6b85be95cf Stop using a global cache for yarn - build fails on Jenkins
Change-Id: Id39fc94315b70c927f87e281101ab761d6444f10
2020-01-05 23:04:18 +00:00
Sean Condon
98b6ddb28a Added native Bazel build to GUI2. Reduced a lot of the unused Angular CLI structures
Reviewers should look at the changes in WORKSPACE, BUILD, BUILD.bazel, README.md files
This is only possible now as rules_nodejs went to 1.0.0 on December 20
gui2 has now been made the entry point (rather than gui2-fw-lib)
No tests or linting are functional yet for Typescript
Each NgModule now has its own BUILD.bazel file with ng_module
gui2-fw-lib is all one module and has been refactored to simplify the directory structure
gui2-topo-lib is also all one module - its directory structure has had 3 layers removed
The big bash script in web/gui2/BUILD has been removed - all is done through ng_module rules
in web/gui2/src/main/webapp/BUILD.bazel and web/gui2/src/main/webapp/app/BUILD.bazel

Change-Id: Ifcfcc23a87be39fe6d6c8324046cc8ebadb90551
2020-01-04 12:17:01 +00:00
Thomas Vachuska
13433eb01a Adding skeletal onos-topo integration app
Change-Id: I80f39193ef25fb5d46b0053d76409165d07ec4ea
2019-12-06 06:10:24 +00:00
Sean Condon
dfc6dbab27 Added BUILD file for gui2-fw-lib bazel build
This is another step along the way of having Native Bazel builds for Angular
Not fully there yet - waiting for Angular v9 in next 2 weeks
but don't want to wait that long to merge all of this

For most people the main concern is updates to WORKSPACE

Change-Id: I28170b8f8daaa2959327c259fe6a10df075113bb
2019-11-21 20:40:38 +00:00
Sean Condon
0a884ad26a Upgrading NodeJS to 10.16 and GUI2 to Angular 8
Change-Id: I722ffd8438728e6658a0589aa12b087ad5da8864
2019-11-04 21:07:45 +00:00
Carmelo Cascone
71ba99f75a Bazel workspace cleanup
- Remove redundant protobuf import (already imported in
   protobuf_workspace.bzl)
- Use released version of bazel buildtools instead of master to achieve
   reproducible builds

Change-Id: I92ebcfd2a0dc0352324461b9356dd348fceae2ff
2019-10-31 16:31:22 +00:00
Thomas Vachuska
2bf2453809 Updated to build and test with Bazel 1.0 official release.
Change-Id: Ie47df8a3a11aeeb11b6c5f43cc1608827f8ddf8f
2019-10-15 21:38:23 +00:00
Carmelo Cascone
cf6a828975 Bump Protobuf to 3.9.0 and grpc-java to 1.22.1
Along with transitive dependencies:

- Netty 4.1.35
- tcnative-boringsll 2.0.25

Change-Id: Icfb9f0c9a9de316f02fefa833be496ca1dd4ec4b
2019-07-16 18:02:29 +00:00
Carmelo Cascone
21eb042dba Enforce build with Java 11 for all by default
- Build with JDK11 and language levels (source and target) are now
enforced in .bazelrc, which depends on our own Java toolchain (defined
in tools/build/bazel/BUILD)
- Easymock bumped to v4.0.2 with support for Java 11 (minor API changes)
- The minimum required Bazel version is now 0.27.*

Change-Id: I0bb6dfe7fc1ea134b5a53dd249c369d58259688c
2019-06-18 22:26:33 +00:00
Carmelo Cascone
b9536696f6 First attempt at supporting builds with Java 11
Includes:
- Bump protobuf to 3.8.0 and grpc-java to 1.21.0 (along with transitive
  dependencies such as Netty)
- Add jaxb_api at compile time when needed (removed in JDK 11)
- Bump Bnd to 4.1 (adds support for Java 11)

To build with JDK 11, uncomment lines in .bazelrc.
Tested with Bazel 0.26.0.

Change-Id: Ib8e0c7310eacf97328762606e57c01e4834e5565
2019-05-30 18:11:06 +00:00
Ray Milkey
bca5d0c865 Eliminate some warnings from bazel about external references
Change-Id: I09107bbe2f7168eafa007cb409ecd47aaf789997
2019-04-30 18:59:46 +00:00
Ray Milkey
efb6cc53df Fix build behind web proxy - provide all jars needed by grpc java
Change-Id: Ibb925f6d261917c42a6f9a3e3aac27533083d8e9
2019-04-24 22:11:05 +00:00
oleksandr.yashchuk@plvision.eu
3dbcaafa0c Initial gNOI implementation added. Introduced system Time and Reboot RPC
Change-Id: I8accdcc6c1ff247408ce54490ceff3972fdf850f
2019-03-26 21:35:33 +00:00
Ray Milkey
40b62fd42c upgrade nodejs bazel rules to version 0.26.0
Change-Id: Iee23d220e2cf2ca5d089ecf271f4a6ef8c9df3a8
2019-02-27 15:00:38 +00:00
Carmelo Cascone
ef478a6089 Bump grpc-java to 1.18.0
Requires bumping other dependencies in deps.json such as Netty (4.1.32)
and error_prone_annotations. Includes also fixes detected by updated
errorprone.

Change-Id: Ic2bd86931cc89bfb2cf1a4cb11a4586bc8cac608
2019-02-07 18:49:22 +00:00
Ray Milkey
973d11e81c remove hack to suppress warnings about the git_repository() rule
Change-Id: Icb5fd8f9e785280d9d57e9ebf523db4efe31fef0
2018-12-14 03:40:54 +00:00
Ray Milkey
e7b7c699d5 Fixes for bazel version 0.20
Change-Id: Id40ca9c5ee939d462953570d7e59311cbc678708
2018-12-11 10:41:25 -08:00
Thomas Vachuska
c4d037797d Allow ONOS to be built against locally built ONOS YANG Tools.
Change-Id: If4373245be901cae0f620aadcbea557fea35c4e7
2018-11-26 21:05:49 +00:00
Yi Tseng
e671fc9624 Update gNMI version and build script
Change-Id: I0f2d3c84a7a13111dc5da966b21836338d327929
2018-11-02 03:59:16 +00:00
Thomas Vachuska
d389a6ee5e Fixing local_jar stuff to work with runtime.
Change-Id: I3209167bc9660c6cd2e80521e3edd96b479bba71
Note: There's still a small cosmetic glitch in that the jars still get included under the original version; internally they are the new version though and OSGi recognizes them as such.
(cherry picked from commit 6a17acd1cb91d48078cc5015e562e3ef65a9f1ad)
2018-10-30 20:10:34 +00:00
Sean Condon
2f1fb8de50 Updating NodeJS to v8.11.1 as it was with BUCK
Change-Id: I9c3440a4692b3eeb1ecc874000663007248513e9
2018-09-06 00:40:59 +00:00
Sean Condon
f6af2a508c Adding GUI2 to the Bazel build system
Change-Id: Ieb39ade1a8713a50fdf885e2bb43f53f8f725ea8
2018-08-28 16:12:10 +00:00
Thomas Vachuska
9379a078dc Adding local_jar and local_deps workspace rules to allow ONOS development
against locally built 3rd party artifacts.

Change-Id: I719da113894c4e3b1513244b2b92ba510f232c90
2018-08-22 06:04:46 +00:00
Ray Milkey
92cc268559 remove redundant definition for ONOS_VERSION
Change-Id: I222e203fa587329b7fe38c4afebc6f102b819a1c
2018-08-17 17:51:20 +00:00
Ray Milkey
5063f5bd0b Add bazel rule to run buildifier; fix up formatting problems in bazel files
Change-Id: Ifa8ab12ed564fa2eaf5edd781281aa5cae52d17a
2018-08-16 21:12:34 +00:00
ONOS Jenkins User
03e5521fba Starting snapshot 1.14.0-SNAPSHOT 2018-08-14 22:13:58 +00:00
ONOS Jenkins User
3594c24cb2 Tagging 1.14.0-rc2 2018-08-14 22:13:02 +00:00
ONOS Jenkins User
4e5f2d67ac Starting snapshot 1.14.0-SNAPSHOT 2018-08-13 23:16:37 +00:00
ONOS Jenkins User
cff0bd8922 Tagging 1.14.0-rc1 2018-08-13 23:15:43 +00:00
Thomas Vachuska
46848a8cab Adding check for Bazel version 0.15.*
Change-Id: I96da2721947a41c91dc5eac250b3016aa16a2fcb
2018-08-13 22:18:15 +00:00
Carmelo Cascone
6a1ae71db1 Fix p4runtime runtime dependencies when building with Bazel
A convenient macro for packaging together all proto and gRPC libraries
in an OSGi jar is provided. Also re-packaging of gRPC core (to avoid OSGi
split problem) is simplified by depending on a patched fork of grpc-java.

Change-Id: Idb79a5bea8ae0bc57b146bda1fc47a4568d12c60
2018-08-13 18:51:36 +00:00
Ray Milkey
4867af2f9c Revert "Tagging 1.14.0-b1"
This reverts commit 78ce40093ac008fd6d169ab83d2d5961f91f6e31.

Change-Id: I8482f550c30f75d65333f6be9c9115a930abc56f
2018-08-10 16:53:10 -07:00
Ray Milkey
78ce40093a Tagging 1.14.0-b1 2018-08-10 11:16:44 -07:00
Carmelo Cascone
72893b7755 [WIP] Attempt at building grpc and p4runtime protocols with Bazel
STILL NOT WORKING AT RUNTIME

Change-Id: I1f9e60b12a12e09edad2a714ec2921a4f71c6d35
2018-08-09 20:33:39 +00:00
Ray Milkey
3077358d1a Bazel build for the combined GRPC runtime jar file
Change-Id: I76ff5f1b81a0985cb45c70c8f63640668207cd4e
2018-08-03 16:04:05 +00:00
Ray Milkey
d7be362607 Make onos-gui bazel build hermetic
Change-Id: I24abb9c1a54314fb0dd00f40936e57f11280ebce
2018-07-16 16:45:23 +00:00
Ray Milkey
6b3775ada6 Bazel build of ONOS GUI package
Change-Id: Id5f9931c38f82afcdcefc49171dd79f2f5bdad14
2018-07-11 09:35:13 -07:00
Ray Milkey
472d839809 Start bazel support for protobuf models and p4runtime build
Change-Id: Ib3beb70c1b401854444b106b4af3723cd40635e4
2018-05-29 21:26:37 +00:00
Ray Milkey
7dac7dadf5 Initial builds using bazel
Change-Id: I38123b396a2ffda5f36cdca43f3ad1fa67a7ab52
2018-05-23 20:38:54 +00:00