Home | History | Annotate | Download | only in test
      1 # Copyright 2017 The TensorFlow Authors. All Rights Reserved.
      2 #
      3 # Licensed under the Apache License, Version 2.0 (the "License");
      4 # you may not use this file except in compliance with the License.
      5 # You may obtain a copy of the License at
      6 #
      7 #     http://www.apache.org/licenses/LICENSE-2.0
      8 #
      9 # Unless required by applicable law or agreed to in writing, software
     10 # distributed under the License is distributed on an "AS IS" BASIS,
     11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12 # See the License for the specific language governing permissions and
     13 # limitations under the License.
     14 # ==============================================================================
     15 
     16 # Note: This file is given a descriptive name in the source tree.  However, for
     17 # some reason, the command to create/update datastore indexes requires it to be
     18 # named "index.yaml" even though the filename is given on the command line.  So
     19 # make a copy of it into a temporary "index.yaml" file and issue this command:
     20 # % gcloud datastore create-indexes index.yaml
     21 
     22 # Index to access a specific (test, start) Entity, and also to be able to only
     23 # fetch a range of start times of some test without fetching the "info" blob.
     24 indexes:
     25 - kind: Test
     26   ancestor: no
     27   properties:
     28   - name: test
     29   - name: start
     30     direction: desc
     31 
     32 # Index to access a specific (test, entry, start) Entity, and also to be able to
     33 # fetch a range of (start, timing) graph values for a given (test, entry) pair
     34 # without fetching the "info" blob.
     35 - kind: Entry
     36   ancestor: no
     37   properties:
     38   - name: test
     39   - name: entry
     40   - name: start
     41     direction: asc
     42   - name: timing
     43