Bug 1530038 - [tryselect] Use target_task_set instead of target_task_graph, r=tomprince

The graph contains some extra things like toolchains, fetches and packaging
tasks that people will almost never want to run on their own. This change gets
them out of the default fuzzy selection interface, and makes it so --full is
needed to schedule them.

Differential Revision: https://phabricator.services.mozilla.com/D24187

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew Halberstadt 2019-03-20 19:16:38 +00:00
Родитель da7628c7e8
Коммит 20deb1451e
2 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -64,10 +64,10 @@ def generate_tasks(params, full, root):
cache_dir = os.path.join(get_state_dir(), 'cache', root_hash, 'taskgraph')
# Cleanup old cache files
for path in glob.glob(os.path.join(cache_dir, '*_set')):
for path in glob.glob(os.path.join(cache_dir, '*_graph')):
os.remove(path)
attr = 'full_task_graph' if full else 'target_task_graph'
attr = 'full_task_set' if full else 'target_task_set'
cache = os.path.join(cache_dir, attr)
invalidate(cache, root)

Просмотреть файл

@ -14,7 +14,7 @@ roothash=$(python -c "$calculate_hash" "$topsrcdir")
cachedir=$MOZBUILD_STATE_PATH/cache/$roothash/taskgraph
mkdir -p $cachedir
cat > $cachedir/target_task_graph << EOF
cat > $cachedir/target_task_set << EOF
{
"test/foo-opt": {
"kind": "test",
@ -43,7 +43,7 @@ cat > $cachedir/target_task_graph << EOF
}
EOF
cat > $cachedir/full_task_graph << EOF
cat > $cachedir/full_task_set << EOF
{
"test/foo-opt": {
"kind": "test",