79 Commits

Author SHA1 Message Date
Carmelo Cascone
b1936bd93f Bumped version of gRPC to 1.3.1
Change-Id: I7798476bd443a796e0e6a6e149ab8f66435ba4fa
2017-12-13 03:24:50 +00:00
Brian O'Connor
bd0e720a4a Fixing checkstyle test hang with nc version >= 1.110
netcat (nc) 1.110 changed the behavior of how sockets are closed when
stdin is at EOF or closed. Previously, nc would call shutdown (TCP FIN
on the write side of the socket) when the end of stdin was reached.
Now, shutdown is only called if '-N' is passed as an argument.

This change was introduced into Ubuntu's fork of OpenBSD nc in Nov. 2016.
So, the affected versions were Ubuntu 17.04+ as well as any other
distribution that uses nc >= 1.110.

This change of behavior causes the call to ByteStreams.toByteArray()
to hang indefinietly, and thus checkstyle tests to hang indefinitely.

Rather than try to figure out which version of nc is present and set
the -N option, we will use an empty line as a sentinel and stop parsing
input when the first empty line is encountered. For this, we need two
changes: (1) send a newline when checking the socket in start-buck-daemon
and (2) send a newline at the end of the file list in onos.bucklet

We also set SO_TIMEOUT to 1 second and will return an exception if
the socket times out. This will prevent tests from hanging indefinitely.

Change-Id: If46b4b78ae89312e1afa0563f63100ae67762f0a
2017-11-27 19:04:44 -08:00
Yuta HIGUCHI
514ef1a4ed Exclude tests from onos_jar
Change-Id: Ia2fd62bbd18336f4e3b4b45d3faa66595ad3a5d8
2017-11-22 22:53:00 +00:00
Yuta HIGUCHI
b1aec663f9 Fix gRPC buck util not to pickup random .proto files
- should address issue reported in
  https://gerrit.onosproject.org/15958

Change-Id: Id02b950e3a732c89b1c9f71499a6a23b18ad7123
2017-11-15 22:52:09 +00:00
Heedo Kang
3cda3f3003 ONOS-6987 To enable declarlation of required permissions of application in BUCK file
Change-Id: I7081769474d7a40ad527c56bf74bfba105ef6af3
2017-11-01 23:40:26 +00:00
Ray Milkey
84dafd9e94 Increase timeout for checkstyle run
Change-Id: I27c6ce33b52b4860221f2e1994b9b0f6562462d6
2017-10-25 16:20:23 -07:00
Thomas Vachuska
803278eda7 Adding support for custom model registrator and supporting Java code
to be built and packaged along with the auto-generated artifacts that
represent the YANG model.

Change-Id: I62c121f22680d483df40662da6a73c1bae43826b
2017-10-06 22:47:48 +00:00
Gaurav Agrawal
f2a8c2bdbf Adding application level dependencies between dependent models.
Change-Id: I3b37da04c962094852d47d24e49287ce30648016
2017-10-06 20:45:11 +05:30
Gaurav Agrawal
28920d8101 Addition of common model.
Change-Id: If5fd6bae01a59ebf9d27f8369ac3403c83f70fad
2017-10-06 18:18:10 +05:30
Charles Chan
47c6e26275 Fix dependency and permission issue in docker build
Change-Id: Ie0263b2ba6d98f5ca2bc63029987e7ad3e84fd6c
2017-10-04 13:36:48 -07:00
Thomas Vachuska
4d9051eebd Fixing YANG bucklet to properly generate the name of the model registrator class.
Also fixing yang-live-compile scenario.

Change-Id: I614726d1a3220c06bc7146d2445ec8d6b6b57417
2017-09-06 13:34:05 -07:00
Thomas Vachuska
c98aa2a8a8 Cleaning up app names, descriptions and categories.
Change-Id: I684fdf23fcd8a8078d82bc6ff5e3d1af664b20c2
2017-08-29 15:23:11 +00:00
Thomas Vachuska
b002968a83 Cleaning up application titles, descriptions and categories.
Change-Id: I80f9770697cbf29b6bde2b20778c341b0f403d9f
2017-08-24 10:19:33 -07:00
Brian O'Connor
30322dd4cb Fixing tar_file and proxy-stc
Change-Id: I51ee55151975ba22d168ccad58efe92d55acd9e1
2017-08-15 16:52:33 +00:00
Yuta HIGUCHI
a1c1bbccc1 Search only for .yang files under src/main/yang
Change-Id: I50bfbabf3d55199d9acccfbe7855a2e3da368eda
2017-08-08 23:23:11 +00:00
Thomas Vachuska
8953445c86 Bumping ONOS to point to ONOS YANG Tools 2.2.0-b2
Change-Id: I23b2ed67ed0fb5ef4ec0731a37dcd8b058102298
2017-07-28 19:49:29 +00:00
Steven Burrows
a145e10376 ONOS-628 - Download and extract node binaries for the GUI build step
- Added gulp build task the:
	- Bundles Vendor JS files
	- Bundles ONOS JS Files
	- Bundles ONOS CSS Files
	- Added SourceMaps to JS bundles - Helps with debugging during development
- Added Bundles to index.js and removed old references
- Git Ignored any generated files
- Ensured the build step is able to build without a local copy of node installed
- Added BUCK genrules (provided by Viswa)
- Added BUCK Dependency to GUI
- Buck Rule to run when src changes
- Node/NPM downloaded using BUCK remote_file

Change-Id: Ia6ca3b952ff801850ade7469c23aac76c8520400
2017-07-11 01:39:46 +00:00
Carmelo Cascone
569d4ad93f Bumped version of P4Runtime and P4 tools for dev VM
+fixed protobuf version according to p4c documentation.

Change-Id: I16471b70b9b2ebc0e0a30c733f1e6ce47d40e30b
2017-07-10 16:24:53 -04:00
Ray Milkey
53edb38323 Don't compile against maven artifacts in buck build
Change-Id: Iabdc61a51b0c13debb97dd9a96fccc5a787d8c30
2017-07-05 21:02:50 +00:00
Carmelo Cascone
65f98ff1e9 Support for the protobuf standard lib in gRPC buck tools
Required for building P4Runtime stuff.

Also:
- support in grpc_jar for building external protobuf files
- minor code refactoring/cleanups

Change-Id: I50c09f967cc9257366eb028d4ea1502767d8d4a0
2017-06-23 20:20:16 +00:00
Aaron Kruglikov
9f95f99a0e Refactoring file structure for protobufs.
Change-Id: I50daf100d54750f97158304d87813e67861b1422
2017-06-23 17:19:50 +09:00
Yuta HIGUCHI
295ee07f94 revisit checkstyle buck rule
- checkstyle execution only needs to depend on
  input source files (filename list)

Change-Id: I070b9b5a317a8f777cfced7b3873cda5b7acc221
2017-06-22 01:37:30 +00:00
Yuta HIGUCHI
9312a80bdd Fix checkstyle buck daemon issue
- checkstyle buck daemon was not processing a file listed at end of the list.
- fix issues, which hasn't been detected due to above bug
- cosmetic fixes

Change-Id: I15f24311835726757f0974b7e5c12ff1c79a3d4e
2017-06-15 16:41:40 +00:00
Aaron Kruglikov
e630fb1d5b Adding build tools for gRPC compilation.
ONOS-6095

Change-Id: I80687eb2a91ad60c4dbec0bb966e917555d46151
2017-05-31 11:50:32 -07:00
Viswanath KSP
d4923cfde2 [onos-6359] Extending BUCK for embedded dependencies Stage-2 changes
Change-Id: I12d32a38d5916acbc01ed1767c44d68755df6c92
2017-05-25 22:55:38 +00:00
Gaurav Agrawal
10396be4c2 Removing external dependencies which are not required after b8 release.
Change-Id: Icb699a993520b168db9dd63364dd07e6d29c577f
2017-05-11 17:36:02 +00:00
Ray Milkey
2d572dd363 Use buck version of checkstyle rules in maven build
- build and package the checkstyle rules in the onos-build-conf artifact
- modify maven build to use new version of artifact
- fix checkstyle problems in maven-only code

Change-Id: I4e4dc890ca909e47463629c732a2fc5335bb4d2a
2017-05-04 16:03:51 +00:00
Ray Milkey
442c8f2ab3 cp -r -L is illegal on iOS
Change-Id: I802709d45ebe26d5964633672fcbc2439a03d3f7
2017-05-02 11:23:55 -07:00
Yuta HIGUCHI
29d640cd4f Do not export package containing .impl, .internal
- Imitate to bundle plugin's default behaviour
  http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html#default-behavior

Note: buck does not seem to pick up this bucklet change,
need to wipe cache in order to get a binary with updated MANIFEST file.

Change-Id: I194d64e25f43a79736d18b63d9a06342508f9b81
2017-04-21 21:29:41 +00:00
Thomas Vachuska
315ff1c991 Fixing yang_model macro to narrow down the dependency list.
Change-Id: I6ae11cec370bfca4a1e4fe0598f84c7e354ea5b8
2017-03-29 01:39:20 +00:00
Thomas Vachuska
d92f6eb523 Fixing yang_library macro.
Change-Id: I31c2faf3f66d8e24fb93c2760d6cc6985625fd41
2017-03-27 20:57:54 +00:00
Thomas Vachuska
e6dc244a39 Simplifying yang_model usage.
Change-Id: I9a15522c1d081b8fa7480c744476fae0e9a94e88
2017-03-24 01:29:11 +00:00
Thomas Vachuska
22f731c007 Created yang_model bucklet.
Change-Id: I01986161ef40abe4f0df3a9d9a1e7bc43f0eba71
2017-03-23 22:12:06 +00:00
Thomas Vachuska
73436b52c6 Adding demo yang models and working on yang model packaging.
Change-Id: Ief674880920cf6165c863909298eb4fa6dd3fb64
2017-03-23 21:38:35 +00:00
Brian O'Connor
649d024a06 Updating proxy-stc to use basename of test tar
Change-Id: I786d788196413c5c57e8ce42ad631bfd8554b217
2017-03-21 23:19:27 +00:00
Jon Hall
b84df5deb9 Bump karaf from 3.0.5 to 3.0.8
Change-Id: Ic5bc130f5110f4ff9da6ec22d066a5dd3069288d
2017-02-02 23:22:40 +00:00
Ray Milkey
e46d31a69c Fix ONOS-5927 - Fix top level POM generation on Linux
Change-Id: I1f0f4c4541a087dec3268bf88d2759371d6ea6b9
2017-02-01 21:25:17 +00:00
Ray Milkey
5c5454b414 Publish top level Maven POMs as part of release build
Change-Id: I6e10d4af4d8b59e3f5e15f001d160838a3c35266
2017-01-26 16:59:26 -08:00
Ray Milkey
e88d69b61c bucklet for yang based OSGI libraries
Change-Id: Ieeef6357250c4e74e9c78310a65c809b3edd102b
2016-12-19 18:25:11 +00:00
Ray Milkey
033b9f9bea updates to publish app and driver feature files
Change-Id: Id0789738df46a19a8356d6121ee0e5105f62d9a0
2016-12-13 13:05:20 -08:00
Ray Milkey
85267006aa checkstyle rule to check copyrights
Change-Id: Ia9bab40b5fe64fca539058a4316371f7acc0f387
2016-11-18 18:40:44 +00:00
Brian O'Connor
9c2c823ec9 Adding script to set up sonar-project.properties
Change-Id: I6820092d57ffe9b47aef14712c522878f6f67b45
2016-11-12 18:11:59 -08:00
Thomas Vachuska
be1a1964bb Migrated release script to use Buck exclusively.
Change-Id: I04371594b68071488788c4ecbdb896a6306a2a14
2016-10-27 17:03:35 +00:00
Brian O'Connor
79b7067e72 Updating buck plugin to track web resources
Also, renaming onosjar to onos.

Change-Id: Ia726772462b0bc997b92dbcb4bdc477ee7b590b0
2016-10-20 14:21:46 -07:00
Brian O'Connor
8cc10ecc26 Adding maven coords to OAR and onos features.xml genrules
Change-Id: Id2d3b0f4686888a48feb09eacef3f27136c1df0e
2016-09-14 00:19:07 +00:00
Brian O'Connor
ee674955c2 Enhancing OnosJar to build OSGi jars and wars if required.
Also, simplifying onos.bucklet by using the rule

Change-Id: If89633db2d83cbfc56a8e70d2bea665ffaf186ff
2016-09-14 00:18:28 +00:00
Yuta HIGUCHI
f05db4017e Fix for Netty wiring issue after 4.0 bump.
- After updating Netty 4.0 version,
  we sometimes see java.lang.NoClassDefFoundError: io/netty/util/internal/TypeParameterMatcher
  with backtrace insisting there's some dynamic class resolution inside Netty.

  It might be side-effect of recent native-epoll support inside karaf?
   https://github.com/netty/netty/issues/5119

- Add DynamicImport-Package for io.netty to allow deferred wiring
  http://felix.apache.org/documentation/tutorials-examples-and-presentations/apache-felix-osgi-faq.html#how-to-provide-optional-services
- Add a way to pass DynamicImport-Package on BUCK build

Change-Id: I50ec3400e940c56fb52563d84659ebb30c302235
2016-08-16 00:59:48 +00:00
Brian O'Connor
e8468b5743 ONOS Swagger Plugin
just does swagger now
to build the plugin, you need to download to following:
https://github.com/bocon13/buck/releases/download/v2016.07.29.01-wip/buck.jar

put the buck.jar in tools/build/buck-plugin/lib

Change-Id: Id1b833dd013fbc5581f8e884e755920829c4a17e
2016-08-03 22:27:51 +00:00
Ray Milkey
c21ff708dd remove buck warnings again - merging put them back
Change-Id: I695e31755280ab2b7ee11dea89778dce8646d64f
2016-08-03 09:47:17 -07:00
Ray Milkey
2a749835b7 Top level build of component Javadocs
Change-Id: Iceb2a7c84b3dd0b354b27f93a0f746913cd9b778
2016-08-03 09:38:07 -07:00