Skip to content

Conversation

@allieychen
Copy link
Contributor

User can use docker run command to run the tool.
Update the integration tests to be based on the new image.

Tested: integration tests.

User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
@coveralls
Copy link

coveralls commented Apr 3, 2019

Pull Request Test Coverage Report for Build 1662

  • 6 of 26 (23.08%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.06%) to 89.072%

Changes Missing Coverage Covered Lines Changed/Added Lines %
gcp_variant_transforms/testing/integration/run_bq_to_vcf_tests.py 1 2 50.0%
gcp_variant_transforms/testing/integration/run_preprocessor_tests.py 1 2 50.0%
gcp_variant_transforms/testing/integration/run_vcf_to_bq_tests.py 1 2 50.0%
gcp_variant_transforms/testing/integration/run_tests_common.py 3 20 15.0%
Totals Coverage Status
Change from base Build 1658: 0.06%
Covered Lines: 7124
Relevant Lines: 7998

💛 - Coveralls

@allieychen allieychen requested a review from kemp-google April 4, 2019 18:28
args:
- 'build'
- '--build-arg'
- 'IMAGE_TAG=${COMMIT_SHA}'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The downside of this is that even our released versions will not use the release tag, they will still use the commit SHA1.

I'm not sure there is a better option, though.

# The only reason that we use the built image in the 'name' argument is
# convenience, i.e., to avoid installing python, virtualenv, etc. on the
# image.
# Run the test script from the very image we built and pushed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know that this comment adds any value?

- '--run_all_tests'
- '--test_name_prefix cloud-ci-'
id: 'test-gcp-variant-transforms-docker'
entrypoint: './deploy_and_run_tests.sh'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ./ gives me pause. I'd usually expect to see either the bare script (to allow exec to do PATH lookup) or a full path.

It's not clear to me why this works (eg, this suggests the working directory inside the container contains the script)

FROM google/cloud-sdk

ARG IMAGE_TAG
ENV image_tag=${IMAGE_TAG}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, given that it's the COMMIT_SHA we should call it that. Otherwise users that run

docker run gcr.io/gcp-variant-transforms/gcp-variant-transforms:1.0 echo $image_tag

will see a commit SHA1 instead of the tag they actually pulled...

_PIPELINE_NAME = 'gcp-variant-transforms-bq-to-vcf-integration-test'
_TEST_FOLDER = 'gcp_variant_transforms/testing/integration/bq_to_vcf_tests'
_SCRIPT_PATH = '/opt/gcp_variant_transforms/bin/bq_to_vcf'
_SCRIPT_PATH = 'bq_to_vcf'

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_TOOL_NAME?

@allieychen allieychen merged commit 56fbb50 into googlegenomics:master Apr 5, 2019
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
allieychen added a commit to allieychen/gcp-variant-transforms that referenced this pull request Apr 9, 2019
* Update docker file:
User can use docker run command to run the tool.
Update the integration tests to be based on the new image.
@allieychen allieychen deleted the test2 branch May 31, 2019 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants