From 9c1be138546bba63b6908f07eced461ca3daadc9 Mon Sep 17 00:00:00 2001 From: Brian Silverman Date: Mon, 2 Nov 2015 18:57:09 +0000 Subject: Changes from [] that were left out of the previous commit Document and test how rules can run without the sandbox. The only documentation about usable tags values was in a weird place, along with duplicated information about flaky tests. -- Change-Id: Ib98a0a5c582890512161ecf9f5d89c8e78d9ad68 Reviewed-on: https://bazel-review.googlesource.com/#/c/2220 MOS_MIGRATED_REVID=106858070 --- .../docgen/templates/attributes/common/tags.html | 53 ++++++++++++++++++---- 1 file changed, 43 insertions(+), 10 deletions(-) (limited to 'src/main/java') diff --git a/src/main/java/com/google/devtools/build/docgen/templates/attributes/common/tags.html b/src/main/java/com/google/devtools/build/docgen/templates/attributes/common/tags.html index a004ece376..82cb9bd5e3 100644 --- a/src/main/java/com/google/devtools/build/docgen/templates/attributes/common/tags.html +++ b/src/main/java/com/google/devtools/build/docgen/templates/attributes/common/tags.html @@ -1,22 +1,55 @@ +

List of arbitrary text tags. Tags may be any valid string; default is the empty list.

-Tags can be used on any rule; but tags are most useful -on test and test_suite rules. Tags on non-test rules -are only useful to humans and/or external programs. -Tags are generally used to annotate a test's role in your debug +Tags can be used on any rule. Tags on test and +test_suite rules are useful for categorizing the tests. Tags +on non-test rules are used to control sandboxed execution of +genrules and [Skylark](/docs/skylark/index.html) actions, and for +parsing by humans and/or external tools. +

+

+Bazel modifies the behavior of its sandboxing code if it finds the following +keywords in the tags attribute of any test rule or +genrule, or the keys of execution_requirements for +any Skylark action. +

+ +

+Tags on tests are generally used to annotate a test's role in your debug and release process. Typically, tags are most useful for C++ and Python tests, which lack any runtime annotation ability. The use of tags and size elements gives flexibility in assembling suites of tests based around codebase check-in policy.

-

-A few tags have special meaning to the build tool, such as -indicating that a particular test cannot be run remotely, for -example. Consult -the Bazel -documentation for details. + Bazel modifies test running behavior if it finds the following keywords in the + tags attribute of the test rule:

+ -- cgit v1.2.3