mirror of
https://github.com/servo/servo.git
synced 2025-07-06 15:03:40 +01:00
Declare dependencies
This commit is contained in:
parent
5a950d1924
commit
df997a3e39
1 changed files with 22 additions and 23 deletions
|
@ -52,10 +52,6 @@ def main():
|
||||||
"scopes": cache_scopes,
|
"scopes": cache_scopes,
|
||||||
"cache": build_caches,
|
"cache": build_caches,
|
||||||
}
|
}
|
||||||
run_kwargs = {
|
|
||||||
"max_run_time_minutes": 60,
|
|
||||||
"dockerfile": "run-x86_64-linux.dockerfile",
|
|
||||||
}
|
|
||||||
|
|
||||||
create_task(
|
create_task(
|
||||||
task_name="Linux x86_64: tidy + dev build + unit tests",
|
task_name="Linux x86_64: tidy + dev build + unit tests",
|
||||||
|
@ -85,22 +81,31 @@ def main():
|
||||||
**build_kwargs
|
**build_kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
fetch_build = """
|
def create_run_task(*, script, env=None, **kwargs):
|
||||||
mkdir -p target/release
|
fetch_build = """
|
||||||
curl \
|
mkdir -p target/release
|
||||||
"https://queue.taskcluster.net/v1/task/${BUILD_TASK_ID}/artifacts/public/servo.gz" \
|
curl \
|
||||||
--retry 5 \
|
"https://queue.taskcluster.net/v1/task/${BUILD_TASK_ID}/artifacts/public/servo.gz" \
|
||||||
--connect-timeout 10 \
|
--retry 5 \
|
||||||
--location \
|
--connect-timeout 10 \
|
||||||
| gunzip > target/release/servo
|
--location \
|
||||||
"""
|
| gunzip > target/release/servo
|
||||||
|
"""
|
||||||
|
create_task(
|
||||||
|
script=fetch_build + script,
|
||||||
|
env=dict(**env or {}, BUILD_TASK_ID=release_build_task),
|
||||||
|
dependencies=[release_build_task],
|
||||||
|
max_run_time_minutes=60,
|
||||||
|
dockerfile="run-x86_64-linux.dockerfile",
|
||||||
|
**kwargs
|
||||||
|
)
|
||||||
|
|
||||||
total_chunks = 4
|
total_chunks = 4
|
||||||
for i in range(total_chunks):
|
for i in range(total_chunks):
|
||||||
chunk = i + 1
|
chunk = i + 1
|
||||||
create_task(
|
create_run_task(
|
||||||
task_name="Linux x86_64: WPT chunk %s / %s" % (chunk, total_chunks),
|
task_name="Linux x86_64: WPT chunk %s / %s" % (chunk, total_chunks),
|
||||||
script=fetch_build + """
|
script="""
|
||||||
mkdir -p target/release
|
mkdir -p target/release
|
||||||
curl \
|
curl \
|
||||||
"https://queue.taskcluster.net/v1/task/${BUILD_TASK_ID}/artifacts/public/servo.gz" \
|
"https://queue.taskcluster.net/v1/task/${BUILD_TASK_ID}/artifacts/public/servo.gz" \
|
||||||
|
@ -128,24 +133,18 @@ def main():
|
||||||
env={
|
env={
|
||||||
"TOTAL_CHUNKS": total_chunks,
|
"TOTAL_CHUNKS": total_chunks,
|
||||||
"THIS_CHUNK": chunk,
|
"THIS_CHUNK": chunk,
|
||||||
"BUILD_TASK_ID": release_build_task,
|
|
||||||
},
|
},
|
||||||
**run_kwargs
|
|
||||||
)
|
)
|
||||||
|
|
||||||
create_task(
|
create_run_task(
|
||||||
task_name="Linux x86_64: WPT extra",
|
task_name="Linux x86_64: WPT extra",
|
||||||
script=fetch_build + """
|
script="""
|
||||||
./mach test-wpt-failure
|
./mach test-wpt-failure
|
||||||
./mach test-wpt --release --binary-arg=--multiprocess --processes 24 \
|
./mach test-wpt --release --binary-arg=--multiprocess --processes 24 \
|
||||||
--log-raw test-wpt-mp.log \
|
--log-raw test-wpt-mp.log \
|
||||||
--log-errorsummary wpt-mp-errorsummary.log \
|
--log-errorsummary wpt-mp-errorsummary.log \
|
||||||
eventsource
|
eventsource
|
||||||
""",
|
""",
|
||||||
env={
|
|
||||||
"BUILD_TASK_ID": release_build_task,
|
|
||||||
},
|
|
||||||
**run_kwargs
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue