-
Notifications
You must be signed in to change notification settings - Fork 4
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
Azure-compatibility #610
Open
violetbrina
wants to merge
11
commits into
main
Choose a base branch
from
azure-compatibility
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Azure-compatibility #610
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c87f4b8
START: modified main.py, added gcp/azure deploy configs and modified …
violetbrina 3cf6863
ADD: --cloud command line argument for setting whether to run on gcp …
violetbrina 22501b1
ADD: --cloud command line argument for setting whether to run on gcp …
violetbrina 133bc66
TESTS: add a test script for the analysis runner
violetbrina 1e16b40
TESTS: move to examples/batch, add local option for analysis runner s…
violetbrina adf9663
TESTS: bug fixes for testing
violetbrina d5ebf93
IN PROGRESS: azure bucket access to analysis runner
violetbrina 350d1d1
WORKFLOW: add push of driver image to azure
violetbrina 9af914e
FIX: write_config output hail-az:// path
violetbrina ac4effb
DEBUGGING
violetbrina 9d78ebc
DEBUGGING
violetbrina File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -131,3 +131,4 @@ dmypy.json | |
.idea/ | ||
.DS_Store | ||
.vscode/ | ||
.*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -78,4 +78,4 @@ def main_from_args(args=None): | |
|
||
|
||
if __name__ == '__main__': | ||
main_from_args() | ||
main_from_args(args=sys.argv[1:]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/usr/bin/env python3 | ||
|
||
""" | ||
Simple script to test whether the CPG infrastructure and permissions are | ||
configured appropriately to permit running AIP. | ||
""" | ||
|
||
import click | ||
|
||
from cpg_utils.config import get_config | ||
from cpg_utils.hail_batch import remote_tmpdir | ||
import hailtop.batch as hb | ||
|
||
|
||
@click.command() | ||
def main(): | ||
""" | ||
main | ||
""" | ||
|
||
service_backend = hb.ServiceBackend( | ||
billing_project=get_config()['hail']['billing_project'], | ||
remote_tmpdir=remote_tmpdir(), | ||
) | ||
batch = hb.Batch( | ||
name='Test CPG Infra', | ||
backend=service_backend, | ||
cancel_after_n_failures=1, | ||
default_timeout=6000, | ||
default_memory='highmem', | ||
) | ||
|
||
j = batch.new_job(name='Write the file') | ||
j.command(f'echo "Hello World." > {j.ofile}') | ||
|
||
k = batch.new_job(name='Read the file') | ||
k.command(f'cat {j.ofile}') | ||
|
||
batch.run(wait=False) | ||
|
||
|
||
if __name__ == '__main__': | ||
main() # pylint: disable=E1120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[buckets] | ||
web_suffix = "web" | ||
tmp_suffix = "tmp" | ||
analysis_suffix = "analysis" | ||
|
||
[workflow] | ||
dataset = "thousand-genomes" | ||
access_level = "test" | ||
dataset_path = "cpgthousandgenomes/test" | ||
output_prefix = "output" | ||
path_scheme = "az" | ||
image_registry_prefix = "cpgcommonimages.azurecr.io" | ||
|
||
[hail] | ||
billing_project = "fewgenomes" | ||
bucket = "az://cpgthousandgenomes/test" | ||
|
||
[images] | ||
hail = "hailgenetics/hail:0.2.93" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
analysis-runner \ | ||
--dataset thousand-genomes \ | ||
--description 'Test script for batch on Azure' \ | ||
--output-dir test \ | ||
--cloud azure \ | ||
--access-level test \ | ||
--config examples/batch/hail_batch_job.toml \ | ||
--image cpg_workflows:latest \ | ||
examples/batch/test_cpg_infra.py \ | ||
test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"location": "external", | ||
"default_namespace": "default", | ||
"domain": "azhail.populationgenomics.org.au" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"location": "external", | ||
"default_namespace": "default", | ||
"domain": "hail.populationgenomics.org.au" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 omit instead of provide a default? Which lets the analysis-runner decide the default