-
Notifications
You must be signed in to change notification settings - Fork 36
bug 1597598 - use taskgraph #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
cc6790f
181f03b
a2e6876
6a8f6fb
d87c28c
cd9b912
ca84d5d
8b762c8
fef184b
043b93e
32e55a0
846eab3
bf2a458
e5fbab1
fad9aed
8a1d21e
379a31e
4a2d89e
4c67bec
dfdd56b
71ae5e9
8b0f04c
0d85a84
a69a77c
21d07e2
fae0314
fcfbafe
da91408
e9eaf62
82815d3
e094802
aaa9d7e
bb29494
f5dbbe7
28c093e
babf19b
3a9c6eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| #/bin/sh | ||
| set -e | ||
|
|
||
| test $GIT_HEAD_REV | ||
| test $HEAD_REV | ||
| test $TASK_ID | ||
| test $TASKCLUSTER_ROOT_URL | ||
| test $REPO_URL | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/bin/bash | ||
| set -o errexit -o pipefail | ||
|
|
||
| apt-get update | ||
| apt-get install -y default-jdk | ||
| apt-get clean |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| #!/bin/bash | ||
| set -o errexit -o pipefail | ||
|
|
||
| apt-get update | ||
| apt-get install -y gir1.2-ostree-1.0 libgirepository1.0-dev | ||
| apt-get clean |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| #!/bin/bash | ||
| set -o errexit -o pipefail | ||
|
|
||
| PKGS="${@:-libsodium-dev}" | ||
|
|
||
| apt-get update | ||
| for pkg in $PKGS; do | ||
| apt-get install -y $pkg | ||
| done | ||
| apt-get clean | ||
| # XXX Avoid snapcraft from loading useless libs when running on Ubuntu | ||
| truncate -s 0 /etc/os-release |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| trust-domain: scriptworker | ||
|
|
||
| task-priority: high | ||
|
|
||
| taskgraph: | ||
| register: scriptworker_taskgraph:register | ||
| decision-parameters: 'scriptworker_taskgraph.parameters:get_decision_parameters' | ||
| repositories: | ||
| scriptworker: | ||
| name: "Scriptworker-scripts" | ||
| project-regex: scriptworker-scripts$ | ||
escapewindow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| default-repository: https://github.com/mozilla-releng/scriptworker-scripts | ||
| default-ref: master | ||
| type: git | ||
escapewindow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| workers: | ||
| aliases: | ||
| b-linux: | ||
| provisioner: scriptworker-{level} | ||
escapewindow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| implementation: docker-worker | ||
| os: linux | ||
| worker-type: 'b-linux' | ||
| images: | ||
| provisioner: scriptworker-{level} | ||
| implementation: docker-worker | ||
| os: linux | ||
| worker-type: 'images' | ||
|
|
||
| docker: | ||
| email: "[email protected]" | ||
| user: mozillarelengservices | ||
|
|
||
| notify: | ||
| email: | ||
| - [email protected] | ||
| prefix: "[scriptworker-scripts]" | ||
|
|
||
| release-promotion: | ||
| flavors: | ||
| promote: | ||
| target-tasks-method: promote_scriptworker | ||
|
|
||
| private-artifact-prefix: releng/scriptworker | ||
|
|
||
| scriptworker: | ||
| scope-prefix: project:scriptworker:releng | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| # This Source Code Form is subject to the terms of the Mozilla Public | ||
| # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| # file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| --- | ||
|
|
||
| loader: taskgraph.loader.transform:loader | ||
|
|
||
| transforms: | ||
| - taskgraph.transforms.docker_image:transforms | ||
| - taskgraph.transforms.cached_tasks:transforms | ||
| - taskgraph.transforms.task:transforms | ||
|
|
||
| jobs: | ||
| k8s-image: | ||
| definition: k8s-image | ||
| python38: | ||
| definition: python | ||
| args: | ||
| PYTHON_VERSION: "3.8" | ||
| python37: | ||
| definition: python | ||
| args: | ||
| PYTHON_VERSION: "3.7" | ||
| pushapkscript-python38: | ||
| definition: pushapkscript | ||
| parent: python38 | ||
| pushapkscript-python37: | ||
| definition: pushapkscript | ||
| parent: python37 | ||
| pushsnapscript-python38: | ||
| definition: pushsnapscript | ||
| parent: python38 | ||
| pushsnapscript-python37: | ||
| definition: pushsnapscript | ||
| parent: python37 | ||
| pushflatpakscript-python38: | ||
| definition: pushflatpakscript | ||
| parent: python38 | ||
| pushflatpakscript-python37: | ||
| definition: pushflatpakscript | ||
| parent: python37 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # This Source Code Form is subject to the terms of the Mozilla Public | ||
| # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| # file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| --- | ||
| loader: taskgraph.loader.transform:loader | ||
|
|
||
| kind-dependencies: | ||
| - tox | ||
|
|
||
| transforms: | ||
| - scriptworker_taskgraph.transforms.python_version:transforms | ||
| - scriptworker_taskgraph.transforms.k8s_image:transforms | ||
| - scriptworker_taskgraph.transforms.cached:transforms | ||
| - taskgraph.transforms.cached_tasks:transforms | ||
| - taskgraph.transforms.task:transforms | ||
|
|
||
| job-defaults: | ||
| description: "{name} k8s image builder py{python_version}" | ||
| name: "{name}-python{python_version}" | ||
| run-on-tasks-for: ["action", "github-pull-request", "github-push"] | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Question: I've never used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We're probably going to use a different filter for actions, so it's possible this is extraneous. I originally used it as a way to filter for relpro, but we can also specifically filter for relpro elsewhere. |
||
| attributes: | ||
| code-review: true | ||
| worker-type: images | ||
| worker: | ||
| docker-image: {in-tree: 'k8s-image'} | ||
| max-run-time: 3600 | ||
| docker-in-docker: true | ||
| taskcluster-proxy: true | ||
| chain-of-trust: true | ||
| artifacts: | ||
| - type: directory | ||
| name: public/ | ||
| path: /builds/worker/artifacts/ | ||
| command: | ||
| - sh | ||
| - -lxce | ||
| - >- | ||
| sh /usr/local/bin/build_and_push.sh | ||
| python-versions: | ||
| - 38 | ||
| deploy-secret-url: http://taskcluster/secrets/v1/secret/project/releng/scriptworker-scripts/deploy | ||
| docker-repo: mozilla/releng-{name} | ||
| # TODO copy image to artifacts | ||
|
|
||
| jobs: | ||
| addonscript: {} | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Followup: I wonder if we should create a dedicated loader to avoid repeating each subproject here. For instance, there are more than a hundred subprojects all defined in this file. This loader reads that file, generates the right jobs and applies the default configuration before passing jobs to transforms. I see we repeat the list of project here and in another kind so maybe we want a dedicated loader too. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sure, possibly. We could add configuration as to whether we want tox, which versions of python, and whether we want a k8s image (and which versions of python). I think the current breakdown works too. |
||
| balrogscript: {} | ||
| beetmoverscript: {} | ||
| bouncerscript: {} | ||
| pushapkscript: {} | ||
| pushflatpakscript: {} | ||
| pushsnapscript: {} | ||
| shipitscript: {} | ||
| signingscript: {} | ||
| treescript: {} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| # This Source Code Form is subject to the terms of the Mozilla Public | ||
| # License, v. 2.0. If a copy of the MPL was not distributed with this | ||
| # file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
| --- | ||
| loader: taskgraph.loader.transform:loader | ||
|
|
||
| kind-dependencies: | ||
| - tox | ||
| - k8s-image | ||
escapewindow marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| transforms: | ||
| - taskgraph.transforms.code_review:transforms | ||
| - taskgraph.transforms.task:transforms | ||
|
|
||
| jobs: | ||
| complete: | ||
| description: PR Summary Task | ||
| run-on-tasks-for: [github-pull-request] | ||
| worker-type: succeed | ||
Uh oh!
There was an error while loading. Please reload this page.