aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com
Commit message (Collapse)AuthorAge
* Clean up SkyFunction interface method docsGravatar Mark Schaller2015-04-06
| | | | | | | Specifies function return values. Replaces old "builder" terminology. Removes bad advice. -- MOS_MIGRATED_REVID=90417023
* Split FileAndMetadataCache into two classes, since most of the shared ↵Gravatar Janak Ramakrishnan2015-04-06
| | | | | | | functionality is gone. -- MOS_MIGRATED_REVID=90289916
* Create the extra action info in a separate FileWriteAction instead of in the ↵Gravatar Janak Ramakrishnan2015-04-06
| | | | | | | | | ExtraAction itself. This makes ExtraAction simpler to understand (IMO). It's also a prerequisite for some simplifications we're making in core. -- MOS_MIGRATED_REVID=90288551
* Introduce KeyedLocker#lockBatch, which does what it sounds like it does.Gravatar Nathan Harmata2015-04-06
| | | | | -- MOS_MIGRATED_REVID=90282858
* Some minor improvements to KeyedLocker:Gravatar Nathan Harmata2015-04-03
| | | | | | | | | | | (i) Change the semantics of KeyedLocker.AutoUnlocker#close such that it can be called at most once per AutoUnlocker instance. (ii) Change KeyedLocker.AutoUnlocker#close to throw a IllegalUnlockException (RuntimeException) on error, rather than leave the behavior intentionally underspecified. (iii) explicitly mention in AutoLocker#lock that a thread can call lock(k) multiple times before unlocking. Combined with (i), this implies that KeyedLocker#lock implementations will want to return fresh AutoUnlocker instances. These semantics are bit nicer to use anyway, but I also want them because I will soon be introducing KeyedLocker#lockBatch, and it's much easier to specify that given the above. -- MOS_MIGRATED_REVID=90259645
* Skylark: Implicit outputs can refer to labels.Gravatar Laurent Le Brun2015-04-03
| | | | | | | Fixes #91. -- MOS_MIGRATED_REVID=90185784
* Automated [] rollback of [].Gravatar Han-Wen Nienhuys2015-04-03
| | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks bazel for /usr/bin/gcc. It needs -B to find ld, because we don't supply a $PATH. *** Original change description *** Remove unnecessary -B flag from linker command line. This should fix working with GCC cross compilers installed into /usr/bin/ next to the host ld. -- MOS_MIGRATED_REVID=90173200
* Remove unnecessary -B flag from linker command line.Gravatar Han-Wen Nienhuys2015-04-03
| | | | | | | | This should fix working with GCC cross compilers installed into /usr/bin/ next to the host ld. -- MOS_MIGRATED_REVID=90167821
* Skylark: Remove superfluous error message.Gravatar Laurent Le Brun2015-04-03
| | | | | -- MOS_MIGRATED_REVID=90157406
* Description redacted.Gravatar Googler2015-04-03
| | | | | -- MOS_MIGRATED_REVID=90157149
* Skylark: Remove obsolete function ctx.var().Gravatar Laurent Le Brun2015-04-03
| | | | | | | Use ctx.var dict instead. -- MOS_MIGRATED_REVID=90155461
* Make rule.getLabels deterministic.Gravatar Laurent Le Brun2015-04-02
| | | | | | | HashMultimap provides no guarantee on the iteration order. -- MOS_MIGRATED_REVID=90153110
* Skylark: Add function 'int'Gravatar Laurent Le Brun2015-04-02
| | | | | -- MOS_MIGRATED_REVID=90151316
* Parser: Make error recovery more conservative.Gravatar Laurent Le Brun2015-04-02
| | | | | | | | Reduce the number of error message after a parse error. Recover only when we have confidence we are in good state. -- MOS_MIGRATED_REVID=90147322
* Remove direct store of Target from NoSuchTargetException. Instead, just note ↵Gravatar Eric Fellheimer2015-04-02
| | | | | | | the fact that a valid Target exists, and instead request it directly from its Package. -- MOS_MIGRATED_REVID=90107670
* Thread-safety annotations for the various skyframe graph interfaces.Gravatar Nathan Harmata2015-04-02
| | | | | -- MOS_MIGRATED_REVID=90103351
* Add maven repository metadata jar to third_partyGravatar Kristina Chodorow2015-04-02
| | | | | | | See https://github.com/google/bazel/issues/88. -- MOS_MIGRATED_REVID=90089965
* Clean up an unnecessary field in NoSuchTargetException.Gravatar Eric Fellheimer2015-04-02
| | | | | -- MOS_MIGRATED_REVID=90081310
* --instrumentation_filter now works with Objective C.Gravatar Googler2015-04-01
| | | | | | | | | | | | Added "-Tests$" to the default instrumentation_filter, this is the typical pattern for Objective C. All sources are included in ObjcCommon.SOURCE. Sources from targets which match the current instrumentation_filter are included in ObjcCommon.INSTRUMENTED_SOURCE. GCNOs are added to ObjcCommon.GCNO iff the source they originate from is included in from a target which matches the instrumentation_filter. RELNOTES: --instrumentation_filter now works with Objective C coverage. -- MOS_MIGRATED_REVID=90076465
* Skylark parser: Improve error messages, never display "$error$".Gravatar Laurent Le Brun2015-04-01
| | | | | -- MOS_MIGRATED_REVID=90075856
* Skylark: Mark command_helper as experimental.Gravatar Laurent Le Brun2015-04-01
| | | | | | | | This class is poorly documented and the API is not well thought. We cannot remove it now (because it is used) though. -- MOS_MIGRATED_REVID=90070889
* Skylark: Improve documentation for configuration transitions.Gravatar Laurent Le Brun2015-04-01
| | | | | -- MOS_MIGRATED_REVID=90061800
* Skylark: Mark ctx.target(s) as deprecated (use ctx.attr instead).Gravatar Laurent Le Brun2015-04-01
| | | | | -- MOS_MIGRATED_REVID=90061261
* Skylark: Make ctx.attr.<attr_name> return Targets instead of Labels.Gravatar Laurent Le Brun2015-04-01
| | | | | | | | | Careful, this is a breaking change. To get the Label value as before, use ctx.attr.<labelattr>.label. The goal is to remove ctx.targets and simplify access to label attributes. -- MOS_MIGRATED_REVID=90056829
* optionally error on files outside of known rootsGravatar Michajlo Matijkiw2015-04-01
| | | | | | | | | | | | The goal of this change is to provide a means for disallowing files outside of declared, known locations in order to better enforce the hermeticy and in turn reproducability of builds. Previously when encountering these files (typically via external symlinks) we would add a dependency on build_id, now we can optionally fail the build. -- MOS_MIGRATED_REVID=90015665
* Debug BuiltinFunctionGravatar Francois-Rene Rideau2015-04-01
| | | | | -- MOS_MIGRATED_REVID=90004683
* Reorder arguments to BuiltinFunction-sGravatar Francois-Rene Rideau2015-03-31
| | | | | | | | | | By popular demand from other implementers, reorder BuiltinFunction arguments so that mandatory named-only arguments come befor optional named-only arguments rather than after. This will make Skylark internals slightly clearer and less surprising, at the cost of eschewing a tiny optimization. -- MOS_MIGRATED_REVID=89978554
* Skylark: 'in' works on sets.Gravatar Laurent Le Brun2015-03-31
| | | | | -- MOS_MIGRATED_REVID=89977206
* Supply the correct command name to ProjectFileSupport.Gravatar Googler2015-03-31
| | | | | -- MOS_MIGRATED_REVID=89973895
* Always define OS_IOS in iOS builds.Gravatar Peter Schmitt2015-03-31
| | | | | | | RELNOTES: Always define OS_IOS in iOS builds. -- MOS_MIGRATED_REVID=89969990
* Unconditionally include gcc's stdc-predef.h if it is available.Gravatar Janak Ramakrishnan2015-03-31
| | | | | -- MOS_MIGRATED_REVID=89964638
* Skylark: Add dictionary.getGravatar Laurent Le Brun2015-03-31
| | | | | -- MOS_MIGRATED_REVID=89962232
* Skylark: Kill FileType.matchesGravatar Laurent Le Brun2015-03-31
| | | | | | | It's unused and not useful. -- MOS_MIGRATED_REVID=89959127
* Kill command_line in ctx.actionGravatar Laurent Le Brun2015-03-31
| | | | | | | | It appears to be unused, undocumented and untested. We can reintroduce the feature later if needed (probably with a different design). -- MOS_MIGRATED_REVID=89958970
* Skylark: Improve documentationGravatar Laurent Le Brun2015-03-31
| | | | | -- MOS_MIGRATED_REVID=89957248
* Add PrepareDepsOfPatternsFunction, use before queryGravatar Mark Schaller2015-03-31
| | | | | | | | | | | | | This introduces a single SkyFunction that has the desired side effect of loading matching targets and their transitive dependencies in the graph. It replaces the two calls to buildDriver.evaluate that made sure the graph loaded the necessary values before query evaluation with just one call. -- MOS_MIGRATED_REVID=89864338
* Description redacted.Gravatar Googler2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89740455
* Catch action conflicts in the same target during configured target analysis, ↵Gravatar Janak Ramakrishnan2015-03-30
| | | | | | | and fail hard in other cases. -- MOS_MIGRATED_REVID=89720528
* Resolve inputs that were stored in action cache ahead of time so metadata ↵Gravatar Janak Ramakrishnan2015-03-30
| | | | | | | | | | | for them can be retrieved with other inputs, avoiding a restart. This also allows us to delete the UndeclaredInputsHandler, since we eagerly cache metadata before entering any ActionCacheChecker methods. This should also allow us to split FileAndMetadataCache into two separate classes, as well as asserting that SingleBuildFileCache only sees non-artifact ActionInputs. To be done in follow-ups. -- MOS_MIGRATED_REVID=89718712
* Fix WORKSPACE file lookup to look at all package pathsGravatar Kristina Chodorow2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89713328
* Clarify what "fancy" means.Gravatar Nathan Harmata2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89710872
* Introduce QueryableGraph#getBatch, a batched variant of QueryableGraph#get ↵Gravatar Nathan Harmata2015-03-30
| | | | | | | and use it in the underlying implementation of SkyFunction.Environment#getValues. It's reasonable for an alternative graph implementation to have a more efficient implementation of getBatch than the naive serial implementation. -- MOS_MIGRATED_REVID=89708027
* remove unused method/vars/doc in ConfiguredTargetFunctionGravatar Michajlo Matijkiw2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89704303
* Move action-cache updating to inside ActionExecutionFunction, in preparation ↵Gravatar Janak Ramakrishnan2015-03-30
| | | | | | | | | for allowing it to be restarted in case of missing deps. Note that this means that action-cache writing is no longer part of the ACTION_COMPLETE profiling unit. -- MOS_MIGRATED_REVID=89702039
* Actually force loading of optional objc labelsGravatar Daniel Wagner-Hall2015-03-30
| | | | | -- MOS_MIGRATED_REVID=89697088
* Make Python rules in Bazel actually work.Gravatar Lukacs Berki2015-03-30
| | | | | | | In particular: add a BazelPythonSemantics implementation and the respective RuleConfiguredTarget factories, rule class definitions and hook them up with BazelRuleClassProvider. Add implicit dependencies (2to3 is just a stub script for now that always fails) and a tiny exampe. -- MOS_MIGRATED_REVID=89691827
* Bazel: move sources around to prepare accepting GitHub pull requests.Gravatar Laszlo Csomor2015-03-30
| | | | | | | This change moves the workspace rules and adjusts BUILD files as necessary. -- MOS_MIGRATED_REVID=89689632
* PackageSerializer: include attributes with null values.Gravatar Greg Estren2015-03-26
| | | | | | | | | | | | PackageDeserializer: handle null-value attributes (single-value attributes with no value setting) without crashing. Without this change, attributes with computed defaults can crash on serialization because RawAttributeMapper.isNotNull isn't smart enough to check *indirect* configurable attributes that the computed attribute depends on. -- MOS_MIGRATED_REVID=89599145
* Sign bundles for device if ios_multi_cpu contains device cpus.Gravatar Peter Schmitt2015-03-26
| | | | | | | Introduces a restriction that prohibits using both simulator and device architectures for ios_multi_cpus in the same build. -- MOS_MIGRATED_REVID=89597247
* Bazel docs: fix broken links in BE.Gravatar Laszlo Csomor2015-03-26
| | | | | -- MOS_MIGRATED_REVID=89592165