aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2018-10-06 15:42:59 +0200
committerSimon Sapin <simon.sapin@exyr.org>2018-10-09 14:00:23 +0200
commit95150280bf6aecf1f68523453b93ce3c875e17ba (patch)
tree41ac687abdc216a4ecec53d8aee823d5b8e4b60b
parent545d54704a6f273dffa83a4191653dbe1a1e5d5f (diff)
downloadservo-95150280bf6aecf1f68523453b93ce3c875e17ba.tar.gz
servo-95150280bf6aecf1f68523453b93ce3c875e17ba.zip
Rename decision-task.py to make it importable
-rw-r--r--.taskcluster.yml2
-rw-r--r--etc/taskcluster/README.md8
-rw-r--r--etc/taskcluster/decision_task.py (renamed from etc/taskcluster/decision-task.py)0
-rw-r--r--servo-tidy.toml2
4 files changed, 6 insertions, 6 deletions
diff --git a/.taskcluster.yml b/.taskcluster.yml
index 2749d11ada0..69b8ef41446 100644
--- a/.taskcluster.yml
+++ b/.taskcluster.yml
@@ -53,4 +53,4 @@ tasks:
cd repo &&
git fetch --depth 1 "$GIT_URL" "$GIT_REF" &&
git reset --hard "$GIT_SHA" &&
- python3 etc/taskcluster/decision-task.py
+ python3 etc/taskcluster/decision_task.py
diff --git a/etc/taskcluster/README.md b/etc/taskcluster/README.md
index d423020a54f..e89b10a4cd1 100644
--- a/etc/taskcluster/README.md
+++ b/etc/taskcluster/README.md
@@ -40,7 +40,7 @@ to build an arbitrary [task graph].
## Servo’s decision task
This repository’s [`.taskcluster.yml`][tc.yml] schedules a single task
-that runs the Python 3 script [`etc/taskcluster/decision-task.py`](decision-task.py).
+that runs the Python 3 script [`etc/taskcluster/decision_task.py`](decision_task.py).
It is called a *decision task* as it is responsible for deciding what other tasks to schedule.
The Docker image that runs the decision task
@@ -101,7 +101,7 @@ together with multiple testing tasks that each depend on the build task
(wait until it successfully finishes before they can start)
and start by downloading the artifact that was saved earlier.
-The logic for all this is in [`decision-task.py`](decision-task.py)
+The logic for all this is in [`decision_task.py`](decision_task.py)
and can be modified in any pull request.
[web-platform-tests]: https://github.com/web-platform-tests/wpt
@@ -162,7 +162,7 @@ to edit that role in the web UI and grant more scopes to these tasks
The [`project-servo/daily`] hook in Taskcluster’s [Hooks service]
is used to run some tasks automatically ever 24 hours.
In this case as well we use a decision task.
-The `decision-task.py` script can differenciate this from a GitHub push
+The `decision_task.py` script can differenciate this from a GitHub push
based on the `$TASK_FOR` environment variable.
Daily tasks can also be triggered manually.
@@ -221,7 +221,7 @@ To modify those, submit a pull request.
* The [`.taskcluster.yml`][tc.yml] file,
for starting decision tasks in reaction to GitHub events
-* The [`etc/ci/decision-task.py`](decision-task.py) file,
+* The [`etc/ci/decision_task.py`](decision_task.py) file,
defining what other tasks to schedule
However some configuration needs to be handled separately.
diff --git a/etc/taskcluster/decision-task.py b/etc/taskcluster/decision_task.py
index de44401eb38..de44401eb38 100644
--- a/etc/taskcluster/decision-task.py
+++ b/etc/taskcluster/decision_task.py
diff --git a/servo-tidy.toml b/servo-tidy.toml
index 471bb629dcd..1777f195d50 100644
--- a/servo-tidy.toml
+++ b/servo-tidy.toml
@@ -69,7 +69,7 @@ files = [
"./tests/wpt/mozilla/tests/css/pre_with_tab.html",
"./tests/wpt/mozilla/tests/mozilla/textarea_placeholder.html",
# Python 3 syntax causes "E901 SyntaxError" when flake8 runs in Python 2
- "./etc/taskcluster/decision-task.py",
+ "./etc/taskcluster/decision_task.py",
"./etc/taskcluster/decisionlib.py",
]
# Directories that are ignored for the non-WPT tidy check.