| OLD | NEW |
| 1 # Copyright 2008 Google Inc. | 1 # Copyright 2008 Google Inc. |
| 2 # | 2 # |
| 3 # Licensed under the Apache License, Version 2.0 (the "License"); | 3 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 # you may not use this file except in compliance with 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 | 5 # You may obtain a copy of the License at |
| 6 # | 6 # |
| 7 # http://www.apache.org/licenses/LICENSE-2.0 | 7 # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 # | 8 # |
| 9 # Unless required by applicable law or agreed to in writing, software | 9 # Unless required by applicable law or agreed to in writing, software |
| 10 # distributed under the License is distributed on an "AS IS" BASIS, | 10 # distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 for builder in parsed_json: | 192 for builder in parsed_json: |
| 193 # Exclude triggered bots: they are not to be triggered directly but | 193 # Exclude triggered bots: they are not to be triggered directly but |
| 194 # by another bot. | 194 # by another bot. |
| 195 if 'triggered' in builder: | 195 if 'triggered' in builder: |
| 196 continue | 196 continue |
| 197 | 197 |
| 198 # Skip bisect bots to declutter the UI. | 198 # Skip bisect bots to declutter the UI. |
| 199 if 'bisect' in builder: | 199 if 'bisect' in builder: |
| 200 continue | 200 continue |
| 201 | 201 |
| 202 # Skip Findit try bots. |
| 203 if 'variable' in builder: |
| 204 continue |
| 205 |
| 202 category = parsed_json[builder].get('category', 'None') | 206 category = parsed_json[builder].get('category', 'None') |
| 203 new_json_contents.setdefault(tryserver, {}).setdefault( | 207 new_json_contents.setdefault(tryserver, {}).setdefault( |
| 204 category, []).append(builder) | 208 category, []).append(builder) |
| 205 | 209 |
| 206 instance = cls.get_instance() | 210 instance = cls.get_instance() |
| 207 instance.json_contents = json.dumps(new_json_contents) | 211 instance.json_contents = json.dumps(new_json_contents) |
| 208 instance.put() | 212 instance.put() |
| 209 cls._prepare_and_cache_curated_tryservers(new_json_contents) | 213 cls._prepare_and_cache_curated_tryservers(new_json_contents) |
| OLD | NEW |