aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test
Commit message (Collapse)AuthorAge
...
* Bazel: really fix strict deps error in Jenkins project.Gravatar Laszlo Csomor2015-10-19
| | | | | | | | Previously I added the missing strict dependency to the wrong target... /o\ -- MOS_MIGRATED_REVID=105732927
* Trying again with checking for the presence of the "resources" attribute.Gravatar Googler2015-10-19
| | | | | | | | | | | | | | | Change the resource dependency handling to separate between the transitive and direct resources from libraries. This slightly increases the complexity of resource propagation. The initial algorithm was to simply merge all transitive ResourceContainers together with any new ResourceContainer and propagate them via the AndroidResourcesProvider. The new algorithm is encapsulated inside a new ResourceDependencies class which works as follows: 1. Collect resources from the deps into transitive and direct NestedSets 2. If a rule provides a ResourceContainer, merge the transitive and direct into a new transitive set 3. Export the provider This results having a rule without resources "forward" the merged sets of transitive and direct resources to the next rule. -- MOS_MIGRATED_REVID=105631635
* ci.bazel.io: fix breakage in //src/main/java:skyframe-baseGravatar Laszlo Csomor2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105604075
* []Rollback of commit 65425810207c9fd6892abfaa95da65e25db5e515.Gravatar Googler2015-10-16
| | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Breaks []. *** Original change description *** Change the resource dependency handling to separate between the transitive and direct resources from libraries. This slightly increases the complexity of resource propagation. The initial algorithm was to simply merge all transitive ResourceContainers together with any new ResourceContainer and propagate them via the AndroidResourcesProvider. The new algorithm is encapsulated inside a new ResourceDependencies class which works as follows: 1. Collect resources from the deps into transitive and... *** -- MOS_MIGRATED_REVID=105598448
* Reinstate tests for cmdline/Gravatar Han-Wen Nienhuys2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105597820
* Implement aspect(...) Skylark function.Gravatar Dmitry Lomov2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105596479
* Enable Skylark tests in Bazel and opensource SkylarkIntegrationTest.Gravatar Dmitry Lomov2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105592691
* Fixed wrong error message when using class definitions in Skylark / BUILD files.Gravatar Florian Weikert2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105585492
* Move to using "well-known" SkyFunctionNames in tests exercising graphGravatar Michajlo Matijkiw2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105539869
* Change the resource dependency handling to separate between the transitive ↵Gravatar Googler2015-10-16
| | | | | | | | | | | | | | | and direct resources from libraries. This slightly increases the complexity of resource propagation. The initial algorithm was to simply merge all transitive ResourceContainers together with any new ResourceContainer and propagate them via the AndroidResourcesProvider. The new algorithm is encapsulated inside a new ResourceDependencies class which works as follows: 1. Collect resources from the deps into transitive and direct NestedSets 2. If a rule provides a ResourceContainer, merge the transitive and direct into a new transitive set 3. Export the provider This results having a rule without resources "forward" the merged sets of transitive and direct resources to the next rule. -- MOS_MIGRATED_REVID=105515074
* RELNOTES: Allow dots in package names.Gravatar Han-Wen Nienhuys2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105512492
* Roll back [] that makes Bazel not require a tools/defaults/BUILD file ↵Gravatar Lukacs Berki2015-10-16
| | | | | | | because it breaks some internal tests. -- MOS_MIGRATED_REVID=105511798
* Separate BUILD file for options and docgen.Gravatar Han-Wen Nienhuys2015-10-16
| | | | | -- MOS_MIGRATED_REVID=105511114
* Skylark: Add lstrip and rstrip functions.Gravatar Laurent Le Brun2015-10-15
| | | | | -- MOS_MIGRATED_REVID=105498175
* Make recursive package wildcards work in remote repositories.Gravatar Lukacs Berki2015-10-15
| | | | | | | Ideally, PrepareDepsOfPatternFunction and maybe even RecursivePkgFunction would also be changed to take a PackageIdentifier instead of RootedPath because the less places we store the set of roots, the better, but I've done enough refactoring in the past weeks to not be thrilled by the idea of doing more. -- MOS_MIGRATED_REVID=105486561
* Remove command_helper, use resolve_command insteadGravatar Francois-Rene Rideau2015-10-15
| | | | | | | Eliminate side-effect in command_line_srcs and hide the internal class. -- MOS_MIGRATED_REVID=105480701
* Fix changing the build_file for new_* rulesGravatar Brian Silverman2015-10-15
| | | | | | | | | | | It used to not change the symlink to point to the new one. The failure modes were different when the old file existed vs not, so there are tests for both. -- Change-Id: I6328c56a90254c5da78ccf827d377900bde06e90 Reviewed-on: https://bazel-review.googlesource.com/#/c/2131/ MOS_MIGRATED_REVID=105432042
* Reimplement target pattern parsing in Skyframe.Gravatar Ulf Adams2015-10-14
| | | | | | | | This is currently not hooked up, and we're passing (potentially) massive numbers of targets around. -- MOS_MIGRATED_REVID=105395404
* Allow other ExecutorService implementations in AbstractQueueVisitorGravatar Mark Schaller2015-10-13
| | | | | | | Previously, only ThreadPoolExecutor implementations were allowed. -- MOS_MIGRATED_REVID=105340237
* Rollback of unknown previous commit.Gravatar Googler2015-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | *** Reason for rollback *** Broke bazel build. *** Original change description *** Update iossim for Xcode 7 support. As of Xcode 7, supportedDeviceTypesByName was replaced by supportedDeviceTypesByAlias. This is from latest chromium build. Downstream hash is 9dd179a339c0457f8754069e0774b38f69c258a8. The latest merge was to upstream ef05b7da00844c0d500c4a7f20d4095dab56e7fe *** Also includes the following changes: Size the Lexer tokenization to minimize internal resizing. This value is chosen empirically. -- Fixes toolchain selection in the generated Android NDK crosstools by making each target_cpu and compiler field unique. Note that there are some problems with the clang compilers (e.g. can't find ld), which I'll fix in a subsequent change. -- Update iossim for Xcode 7 support. As of Xcode 7, supportedDeviceTypesByName was replaced by supportedDeviceTypesByAlias. This is from latest chromium build. Downstream hash is 9dd179a339c0457f8754069e0774b38f69c258a8. The latest merge was to upstream ef05b7da00844c0d500c4a7f20d4095dab56e7fe -- MOS_MIGRATED_REVID=105337154
* Improves the error message for invalid cpu (--cpu or --fat_apk_cpu).Gravatar Alex Humesky2015-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | Before: ERROR: No toolchain found for cpu 'x84'. After: ERROR: No toolchain found for cpu 'x84'. Valid cpus are: [ armeabi, armeabi-v7a, armeabi-v7a-hard, armeabi-thumb, armeabi-v7a-thumb, armeabi-v7a-hard-thumb, arm64-v8a, mips, mips64, x86, x86_64, ]. -- MOS_MIGRATED_REVID=105324190
* Make ParallelEvaluatorTest#unrecoverableError failure messages more informative.Gravatar Janak Ramakrishnan2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105312124
* Split off 2 BUILD files.Gravatar Han-Wen Nienhuys2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105301167
* Test concurrent get and createIfAbsent. Also remove unnecessary locking in ↵Gravatar Janak Ramakrishnan2015-10-13
| | | | | | | #testAddingInflightNodes, which also gives some concurrency coverage. -- MOS_MIGRATED_REVID=105238900
* Determine ios sdk version (and pass it to bazel) as part of test setupGravatar Chris Parsons2015-10-13
| | | | | -- MOS_MIGRATED_REVID=105235919
* Add timing info for tests and correct caching vs. run ratioGravatar Kristina Chodorow2015-10-13
| | | | | | | | | | | | | | | Now prints: //foo:bar (cached) PASSED in 0.1s instead of: //foo:bar (1/0 cached) PASSED Fixes #218. -- MOS_MIGRATED_REVID=105210302
* Make Bazel use tools that are embedded in its binary.Gravatar Lukacs Berki2015-10-12
| | | | | | | This requires changing all "//tools/language:target" implicit dependencies to "@tools//tools/language:target". -- MOS_MIGRATED_REVID=105193805
* Don't iterate over children when building events if events won't be stored ↵Gravatar Janak Ramakrishnan2015-10-12
| | | | | | | anyway. Also batch retrievals of children when building events. -- MOS_MIGRATED_REVID=105174435
* Add isSource to Android aspect ArtifactLocation.Gravatar Googler2015-10-12
| | | | | | | | This supersedes bin/gen files on Android SDK. The fields are removed entirely since the proto isn't public yet. -- MOS_MIGRATED_REVID=105130701
* Delay additions as well as removals of reverse deps. Now that removals are ↵Gravatar Janak Ramakrishnan2015-10-12
| | | | | | | | | | | not all done during invalidation, repeated adding/removing means that we are consolidating more often, negating the benefit of delayed removals. To work around this, delay adds as well until we consolidate and verify the integrity of our data. Since there is no well-defined point that a consolidation should trigger for a done node, we delay until our pending list is as large as the done list. We can tweak this if necessary for a memory/performance tradeoff. The alternative to this that I could think of is giving up our strong integrity checks, which I'm not a fan of. -- MOS_MIGRATED_REVID=105095886
* Fix test_user_switched_to_root by only checking uid and gid are 0, theGravatar Ming Zhao2015-10-09
| | | | | | | | | groups part of id command varies from Linux distribution. -- Change-Id: Ia8dbc0a645afe1a4b1558877e56d8b44fde7c386 Reviewed-on: https://bazel-review.googlesource.com/#/c/2111/ MOS_MIGRATED_REVID=105068270
* Rename protobuf targets to xxx_proto.Gravatar Han-Wen Nienhuys2015-10-09
| | | | | -- MOS_MIGRATED_REVID=105054615
* Make it possible to load the tools/defaults package without a BUILD file ↵Gravatar Lukacs Berki2015-10-09
| | | | | | | | | present. This is nice because this removes the last thing Bazel needs to be able to function without a tools/ directory that is not already embedded into the binary. -- MOS_MIGRATED_REVID=105054134
* Add support for filesets in LinuxSandboxedStrategy.Gravatar Philipp Wollermann2015-10-09
| | | | | -- MOS_MIGRATED_REVID=105052078
* Description redacted.Gravatar Nathan Harmata2015-10-09
| | | | | -- MOS_MIGRATED_REVID=105050723
* For standalone spawn strategy (local execution), bootstrap ios SDKROOT ↵Gravatar Chris Parsons2015-10-09
| | | | | | | (determined from xcrun) for applicable actions -- MOS_MIGRATED_REVID=105000617
* Be more specific about InMemoryNodeEntry.getGroupedDirectDepsGravatar Mark Schaller2015-10-09
| | | | | -- MOS_MIGRATED_REVID=104983790
* Add executable option to http_fileGravatar Kristina Chodorow2015-10-09
| | | | | | | | | | | | | This also simplifies the decompressor code a bit and actually adds lib/bazel/repository tests to a test rule. Fixes #497. RELNOTES[NEW]: http_file can specify "executable" to make the downloaded file runnable. -- MOS_MIGRATED_REVID=104975488
* Slight tweakings to process-wrapper_test.sh on my quest to find the cause of ↵Gravatar Philipp Wollermann2015-10-09
| | | | | | | its flakyness. -- MOS_MIGRATED_REVID=104955920
* Increase visibility of an InMemoryNodeEntry methodGravatar Mark Schaller2015-10-08
| | | | | | | | | | For use in alternate graph implementations. Also adds some user-friendly methods to StringValue, a SkyValue implementation used in tests. -- MOS_MIGRATED_REVID=104899226
* Introduce two new options to Linux sandbox wrapper:Gravatar Ming Zhao2015-10-08
| | | | | | | | | | | * -n: Create a new network namespace with only loopback interface. * -r: set the uid/gid inside the sandbox to be root (instead of nobody) so that setuid programs like ping can still run when needed. -- Change-Id: I8ab434e47e0f6933ee9de02e135c8daec39fe73f Reviewed-on: https://bazel-review.googlesource.com/#/c/2101/ MOS_MIGRATED_REVID=104858163
* Pass in a set of SkyFunctions in AnalysisMock.Gravatar Lukacs Berki2015-10-08
| | | | | | | | | This is required because Bazel will get tools from an external repository, and thus tests will need to support external repositories. This code is currently unused and was lopped off of a git branch I maintain locally that contains a Bazel version that gets tools from an external repository. -- MOS_MIGRATED_REVID=104851767
* Add a custom converter to --crosstool_top so that select() works.Gravatar Lukacs Berki2015-10-08
| | | | | -- MOS_MIGRATED_REVID=104845397
* Make Skyframe tests resilient to root causes not being stored.Gravatar Janak Ramakrishnan2015-10-07
| | | | | -- MOS_MIGRATED_REVID=104791799
* Fix new_http_archive's strip_prefix for zipsGravatar Kamal Marhubi2015-10-07
| | | | | | | | | | | | | | | | The removal of the prefix was incorrectly applied to the zip entry instead of the destination. Fixes https://github.com/bazelbuild/bazel/issues/221 Tested: - Added a copy of the existing integration test with zip archive - bash compile.sh all -- Change-Id: I5d5f75f66a17eb6f146afafb1f347a781490e616 Reviewed-on: https://bazel-review.googlesource.com/#/c/2084/ MOS_MIGRATED_REVID=104774296
* sandbox: Improve MountMap to always return entries sorted by path depth and ↵Gravatar Philipp Wollermann2015-10-06
| | | | | | | lexicographical order. This prevents certain edge cases in the sandbox, where a mounted child directory could be hidden by a later mount of a parent directory over its parent. -- MOS_MIGRATED_REVID=104749937
* Ensure that the LinuxSandboxedStrategy tests actually test the correct strategy.Gravatar Philipp Wollermann2015-10-06
| | | | | -- MOS_MIGRATED_REVID=104749361
* Implement the prefix stripping for Java resources.Gravatar Lukacs Berki2015-10-06
| | | | | | | | | This CL sure works, but it leaves a few call sites for JavaSemantics#getJavaResourcePath() which make me uncomfortable. RELNOTES: Java rules now support a resource_strip_prefix attribute that allows the removal of path prefixes from Java resources. -- MOS_MIGRATED_REVID=104748537
* Adds support for selecting the different STL implementations in the Android NDK.Gravatar Alex Humesky2015-10-06
| | | | | | | The android_ndk_repository rule will default to the gnu-libstdcpp toolchain. Other STL impls can be selected with, for example, --android_crosstool_top=@androidndk//:toolchain-libcpp or --android_crosstool_top=@androidndk//:toolchain-stlport. -- MOS_MIGRATED_REVID=104685576
* Add prerequisite dependencies to make ios_test work build on bazel.Gravatar Chris Parsons2015-10-06
| | | | | -- MOS_MIGRATED_REVID=104673050