aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java
Commit message (Collapse)AuthorAge
* Don't allow subclasses of AQV to treat Errors as non-critical. Also update ↵Gravatar Nathan Harmata2015-09-16
| | | | | | | the documentation for AQV#work to reflect the semantics of critical errors. -- MOS_MIGRATED_REVID=103140100
* Fix very minor concurrency issue in AQV. 'unhandled' doesn't have memory ↵Gravatar Nathan Harmata2015-09-16
| | | | | | | visibility from other threads, so we may end up storing the non-first unhandled exception and/or decline to not run new tasks because we don't realize there already is an unhandled exception. -- MOS_MIGRATED_REVID=103127733
* Get rid of transient errors during preprocessing and throw IOExceptions ↵Gravatar Janak Ramakrishnan2015-09-16
| | | | | | | instead. Transient errors were only detected on IOExceptions, but preprocessing doesn't actually throw IOExceptions except if it fails before it even opens the main file, so there's no sense in trying to construct a package in that case. -- MOS_MIGRATED_REVID=103119445
* Clean up J2ObjC support in Bazel, removing an unused dependency and linting ↵Gravatar Michael Thvedt2015-09-15
| | | | | | | the relevant files. -- MOS_MIGRATED_REVID=103100493
* Removed attribute 'generator_location' from rules created by Skylark macros.Gravatar Florian Weikert2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103090380
* Only collect source files from attributes that don't have instrumentation data.Gravatar Ulf Adams2015-09-15
| | | | | | | | This fixes a recent regression in coverage; it's currently collecting too many files for instrumentation for non-compiled languages. -- MOS_MIGRATED_REVID=103089788
* Support java_test and java_binary in AndroidStudioInfoAspect.Gravatar Dmitry Lomov2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103089400
* Parse the label syntax "@//a:b" so that eventually we can make that the ↵Gravatar Lukacs Berki2015-09-15
| | | | | | | | | syntax that means "refer to the main repository". There isn't an overarching plan for what we are going to do with the cmdline package, which seems to be separated from the .syntax one in all sorts of awkward ways. -- MOS_MIGRATED_REVID=103088960
* Add self-time relative to total time in HTML profiling output, enables ↵Gravatar Klaas Boesche2015-09-15
| | | | | | | finding optimizable functions faster. -- MOS_MIGRATED_REVID=103081207
* Add a paragraph to the Build Encyclopedia that tells how to use the ↵Gravatar Lukacs Berki2015-09-15
| | | | | | | appcompat library. -- MOS_MIGRATED_REVID=103080967
* Introduce CommandEnvironment and pass it instead of BlazeRuntime.Gravatar Ulf Adams2015-09-15
| | | | | | | | The very long term plan is to make BlazeRuntime immutable, so that we can run multiple commands in the same server. -- MOS_MIGRATED_REVID=103080946
* Support java_import in AndroidStudioIdeInfoAspectGravatar Dmitry Lomov2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103079877
* refactor usage of ProfilePhaseStatistics, no need to hand it around via ChartGravatar Klaas Boesche2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103079475
* Parses the correct values of SDK, Platform and XCode version numbers when ↵Gravatar Anastasios Kakalis2015-09-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | generating the environment's plist. The script no longer parses the values from the Platform's Info.plist, which contained the values used to compile the Platform's library *itself*, rather than the values of the actual running environment. Also the BuildMachineOSBuild is being read from the sw_version, rather than the Xcode's plist, and the DTSDKBuild is determined by the plist under sdk-path. An example environment.plist: { BuildMachineOSBuild = 14F27; DTCompiler = "com.apple.compilers.llvm.clang.1_0"; DTPlatformBuild = 12H141; DTPlatformVersion = "8.4"; DTSDKBuild = 12H141; DTXCodeBuild = 6E35b; DTXcode = 0640; } -- MOS_MIGRATED_REVID=103079006
* Generate module maps for each objc_* target with compilation support.Gravatar Googler2015-09-15
| | | | | | | | | This uses CppModuleMap and CppModuleMapAction to generate clang module maps for the target and its transitive dependencies. To enable this feature, you must pass -experimental_objc_enable_module_maps to bazel. For objc_* targets that need to use the "modules" language features (@import, Swift interop, etc), set the "enable_modules" attribute to 1. -- MOS_MIGRATED_REVID=103045673
* Fail fast on a crash in an InvalidatingNodeVisitor worker thread, just like ↵Gravatar Nathan Harmata2015-09-15
| | | | | | | we do in ParallelEvaluator. -- MOS_MIGRATED_REVID=103031770
* Hack serialization of Environment$Extension so that it deserializes, ↵Gravatar Janak Ramakrishnan2015-09-15
| | | | | | | although not correctly. Attempts to use it will still most likely fail, but won't crash. -- MOS_MIGRATED_REVID=103029603
* Have clang output .d dependency files during ObjcCompile.Gravatar Googler2015-09-15
| | | | | | | | | These are not currently used by anything. The next step is for bazel to read these files and use them to check the declared dependencies for correctness. RELNOTES: -- MOS_MIGRATED_REVID=103023531
* Support multiarchitecture objc libraries for both simulator and device ↵Gravatar Chris Parsons2015-09-15
| | | | | | | architectures in a single build, refining the multiarchitecture device restriction only to rules which require bundling. -- MOS_MIGRATED_REVID=103016981
* Use the BUILD file location instead of location inside the macro.Gravatar Laurent Le Brun2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103004059
* Fix and test SyntaxTreeVisitorGravatar Laurent Le Brun2015-09-15
| | | | | -- MOS_MIGRATED_REVID=103003770
* Package that is dependency of genquery cannot be null when genquery is being ↵Gravatar Janak Ramakrishnan2015-09-15
| | | | | | | analyzed. -- MOS_MIGRATED_REVID=103003180
* When generating Xcode projects, remove -I options from copts and instead add ↵Gravatar Rumou Duan2015-09-14
| | | | | | | the -I include paths as non-propagated header search paths. If the paths are relative, prepend $(WORKSPACE_ROOT) to them. -- MOS_MIGRATED_REVID=102994196
* Fix typos in "Packages" description and MethodLibrary docGravatar Mark Schaller2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102991839
* Prevented catching/wrapping of InterruptedExceptions, especially in ↵Gravatar Florian Weikert2015-09-14
| | | | | | | BaseFunction. -- MOS_MIGRATED_REVID=102988766
* Remove dead code, set private visibilityGravatar Laurent Le Brun2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102986851
* Skylark doc: clarify that new_file takes argument is relative to packageGravatar Laurent Le Brun2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102984840
* workers: A multitude of bug fixes and improved logging.Gravatar Philipp Wollermann2015-09-14
| | | | | | | | | | | | | | | | | | | | | | | I know this should have been split up, but I was a bit on fire today and did it all in one go ^^; Fixes spurious "Stream closed: Stream closed" errors, by noticing dead workers and retrying with a fresh one. (Configurable with the --worker_max_retries flag.) Fixes an "IllegalArgumentException" when a non-worker compatible Spawn is given to the strategy. We fall back to StandaloneSpawnStrategy now. Redirect the stderr of worker processes to separate log files in a common sub-directory and print a message that tells you about the location on worker start-up for easier debugging. The log can be found in <output_base>/worker-logs/*.log. Adds the mnemonic of the Spawn to log messages and the log filename. Adds verbose messages on worker start-up and shutdown. (Enable it with --worker_verbose!) Shuts down the worker pool after a build finished by default, until we sort out one last remaining correctness issue. This also conserves resources, though makes incremental builds a bit slower. Want the maximum performance anyway? Try --experimental_workers_keep_running. Adds stack traces to errors that are caused by buggy workers to aid development. Fixes weird dupli..tripli..quadruple error messages ("Compiling failed: Stream closed: Stream closed: Stream closed: Stream closed."). -- MOS_MIGRATED_REVID=102983853
* Fix genrule documentation, outputs may be in different directories.Gravatar Laurent Le Brun2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102977296
* Add unit tests for AndroidStudioInfoAspect and implement dependency collection.Gravatar Dmitry Lomov2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102976551
* Skip the constraints check for :run_under.Gravatar Ulf Adams2015-09-14
| | | | | | | | It's an implementation artifact that we declare this as a late bound dependency, and having checks here doesn't make a lot of sense. -- MOS_MIGRATED_REVID=102976439
* Fix a bug, when we have dependency from one aspect to another ↵Gravatar Marian Lobur2015-09-14
| | | | | | | aspect1->aspect2 and aspect2 fails then aspect1 throws IllegalStateException. -- MOS_MIGRATED_REVID=102976139
* Rollforward of [], which was rolled back in []. Cleans up support for ↵Gravatar Michael Thvedt2015-09-14
| | | | | | | objc_proto_library with native proto_library. -- MOS_MIGRATED_REVID=102962083
* Use the file size from FileValue instead of wastefully stat'ing the file ↵Gravatar Nathan Harmata2015-09-14
| | | | | | | again in order to get the file size in ParserInputSource#create (used multiple times for each BUILD file and Skylark .bzl file). -- MOS_MIGRATED_REVID=102930870
* Clarify Skylark doc for ctx.files and ctx.fileGravatar Laurent Le Brun2015-09-14
| | | | | -- MOS_MIGRATED_REVID=102921160
* Add Jsonnet rules to Bazel.Gravatar David Chen2015-09-14
| | | | | | | RELNOTES: Add Jsonnet rules to Bazel -- MOS_MIGRATED_REVID=102895524
* Make StdRedirect.dylib as a dependency of all ios_test and ↵Gravatar Googler2015-09-14
| | | | | | | | | experimental_ios_test, and pass in its path instead of using the one wrapped in the _deploy.jar file. Now we're still using iossim to launch the app when we invoke "blaze run", will change it in another CL. -- MOS_MIGRATED_REVID=102886514
* Minor simple optimization in FileFunction: don't bother getting a ↵Gravatar Nathan Harmata2015-09-14
| | | | | | | FileStateValue for a path realpath 'parent/child' if 'parent' is known to not exist. This saves a stat for each ancestor path. -- MOS_MIGRATED_REVID=102881929
* Stop trying to process NoSuchPackageExceptions that are never thrown. We ↵Gravatar Janak Ramakrishnan2015-09-11
| | | | | | | know they are never thrown because all implementations of the method being called already try to extract the package if they can. So if we ever reached this catch block, we would already have been crashing. -- MOS_MIGRATED_REVID=102873244
* Fix rbuildfiles query operation for broken packages. We use to assume that ↵Gravatar Miguel Alcon Pinto2015-09-11
| | | | | | | all the packages referenced by subinclude files should be in the graph. But this is not the case when the package is in error (The package is in the graph but as an error value, not as a package value). This produced the crash seen in [1] for a simple query like rbuildfiles(broken/BUILD). -- MOS_MIGRATED_REVID=102869135
* Don't expose includeGlobs in PackageSerializer public interfaceGravatar Michajlo Matijkiw2015-09-11
| | | | | | | | We always set this false when calling from outside PackageSerializer. Hide it away since we don't need it and so that we don't get tempted. -- MOS_MIGRATED_REVID=102864146
* Fix spelling mistake.Gravatar Janak Ramakrishnan2015-09-11
| | | | | | | I'll never get the last half hour of my life back, but at least nobody else will suffer. -- MOS_MIGRATED_REVID=102863680
* Allows objc_* rules to depend on cc_inc_library.Gravatar Peter Schmitt2015-09-11
| | | | | -- MOS_MIGRATED_REVID=102862462
* Allow tuples inside square brackets (for list/dict indexing).Gravatar Laurent Le Brun2015-09-11
| | | | | -- MOS_MIGRATED_REVID=102841541
* Fixed Skylark stack trace:Gravatar Florian Weikert2015-09-11
| | | | | | | | | - Moved registration mechanism from BaseFunction into ASTNode / Statement / Expression - Added more details about statements/expressions to the output trace (including if's) - Fixed wrong locations -- MOS_MIGRATED_REVID=102841164
* Fix Bazel breakageGravatar Damien Martin-Guillerez2015-09-11
| | | | | -- MOS_MIGRATED_REVID=102835622
* Fix BUILD_SCM_* being looked for in the stable status file and test it.Gravatar Brian Silverman2015-09-11
| | | | | | | | | | | | They're actually in the volatile status file, which is where it seems like they belong. Fixes #216. -- Change-Id: Ibec7737538ff5c1003b61d1bd3396948c61886de Reviewed-on: https://bazel-review.googlesource.com/1950 MOS_MIGRATED_REVID=102791996
* Strictly enforce reverse deps removals.Gravatar Janak Ramakrishnan2015-09-11
| | | | | | | Now that we don't clean the graph during catastrophes, we should be crashing hard in these cases. -- MOS_MIGRATED_REVID=102785226
* Refactor Skylark Environment-sGravatar Francois-Rene Rideau2015-09-11
| | | | | | | | | | | | | | | | | | | | Make Environment-s freezable: Introduce a class Mutability as a revokable capability to mutate objects in an Environment. For now, only Environment-s carry this capability. Make sure that every Mutability is revoked in the same function that create... This reinstates a change that previously rolled-back because it broke the serializability of SkylarkLookupValue. Bad news: serializing it succeeds for the wrong reason, because a SkylarkEnvironment was stored as a result (now an Environment.Extension) that was Serializable but inherited its bindings from an Environment (now an Environment.BaseExtension) which wasn't Serializable. Apparently, Java doesn't try to serialize the bindings then (or at least doesn't error out when it fails), because these bindings map variable names to pretty arbitrary objects, and a lot of those we find in practice aren't Serializable. Thus the current code passes the same tests as the previous code, but obviously the serialization is just as ineffective as it used to be. -- MOS_MIGRATED_REVID=102776694
* Propagate includes and defines attributes from cc_library to dependent ↵Gravatar Peter Schmitt2015-09-11
| | | | | | | objc_libraries. -- MOS_MIGRATED_REVID=102775222