зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
da7628c7e8
Коммит
20deb1451e
|
@ -64,10 +64,10 @@ def generate_tasks(params, full, root):
|
||||||
cache_dir = os.path.join(get_state_dir(), 'cache', root_hash, 'taskgraph')
|
cache_dir = os.path.join(get_state_dir(), 'cache', root_hash, 'taskgraph')
|
||||||
|
|
||||||
# Cleanup old cache files
|
# 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)
|
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)
|
cache = os.path.join(cache_dir, attr)
|
||||||
|
|
||||||
invalidate(cache, root)
|
invalidate(cache, root)
|
||||||
|
|
|
@ -14,7 +14,7 @@ roothash=$(python -c "$calculate_hash" "$topsrcdir")
|
||||||
cachedir=$MOZBUILD_STATE_PATH/cache/$roothash/taskgraph
|
cachedir=$MOZBUILD_STATE_PATH/cache/$roothash/taskgraph
|
||||||
mkdir -p $cachedir
|
mkdir -p $cachedir
|
||||||
|
|
||||||
cat > $cachedir/target_task_graph << EOF
|
cat > $cachedir/target_task_set << EOF
|
||||||
{
|
{
|
||||||
"test/foo-opt": {
|
"test/foo-opt": {
|
||||||
"kind": "test",
|
"kind": "test",
|
||||||
|
@ -43,7 +43,7 @@ cat > $cachedir/target_task_graph << EOF
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > $cachedir/full_task_graph << EOF
|
cat > $cachedir/full_task_set << EOF
|
||||||
{
|
{
|
||||||
"test/foo-opt": {
|
"test/foo-opt": {
|
||||||
"kind": "test",
|
"kind": "test",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче