-
Notifications
You must be signed in to change notification settings - Fork 13
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
Attempt to support new manifest format and fetch-bmo.py #8
Conversation
We probably have to update https://github.com/mozilla-releng/adhoc-signing/blob/master/taskcluster/adhoc_taskgraph/signing_manifest.py#L38-L52 . If you can also add |
taskcluster/run-task/fetch-bmo.py
Outdated
@@ -0,0 +1,253 @@ | |||
#!/usr/bin/python3 -u |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file should either live in taskcluster/docker/fetch
or taskcluster/script/fetch
.
taskcluster/docker/fetch/Dockerfile
Outdated
@@ -24,6 +24,9 @@ RUN apt-get update && \ | |||
|
|||
# %include-run-task | |||
|
|||
# %include taskcluster/run-task/fetch-bmo.py | |||
ADD topsrcdir/taskcluster/run-task/fetch-bmo.py /builds/worker/bin/fetch-bmo.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be inclined to use /usr/local/bin/fetch-bmo
.
cmd = [ | ||
'bash', | ||
'-c', | ||
'cd {} && ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of setting the current directory, you should pass the full path to the destination here.
'bash', | ||
'-c', | ||
'cd {} && ' | ||
'/usr/bin/python3 {} {}'.format( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would be inclined to defer to the shebang, rather than explicitly calling python. This will require chmod +x
in the dockerfile.
1778f4b
to
72f1eda
Compare
fetch['type'] = manifest["fetch"].get('type', 'static-url') | ||
if fetch['type'] == 'static-url': | ||
fetch["url"] = manifest["fetch"]["url"] | ||
if manifest.get('gpg-signature'): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we put gpg-signature
into the fetch
block directly, rather than look for it elsewhere in the manifest and put it in the fetch block?
f5af14e
to
9160e56
Compare
No description provided.