Skip to content
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

best-practices devops: add nightly_gpu_tests pipeline #823

Merged
merged 5 commits into from
Jun 12, 2019

Conversation

bethz
Copy link
Collaborator

@bethz bethz commented Jun 7, 2019

Description

This pipeline adds nightly_gpu_tests to the best-practices devops instance.

Related Issues

This is new work.

Checklist:

  • I have followed the contribution guidelines and code style for this project.
  • I have added tests covering my contributions. This is a PR to add tests.
  • I have updated the documentation accordingly.

test: 'tests/ci/run_pytest.py'
maxnodes : 4
reponame : 'Recommenders'
branch : 'azure-pipelines-bz'
Copy link
Collaborator

Choose a reason for hiding this comment

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

this should be in staging (or master, when it is computed in master), right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Currently, it's only a string that is tagged in an AML experiment for correlation. Eventually, adding code to use the actual pipeline would be useful.

I changed it so something more generic for now.


trigger: none

pr:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nightly tests should be triggered every day, not when some does a PR (as opposite to unit tests)

Copy link
Collaborator Author

@bethz bethz Jun 10, 2019

Choose a reason for hiding this comment

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

pr trigger removed from yml.
The nightly trigger will be set in the devops pipeline trigger setting after the PR is in staging.

@@ -0,0 +1,108 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
Copy link
Collaborator

Choose a reason for hiding this comment

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

do you think you will have to change the name to not get a conflict?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

the pipeline name is the conflict not the yml.
When the PR is included in staging, then the pipeline name is changed to bp-nightly_gpu and the yml file remains the same.

- template: env-setup.yml # template reference

- script:
python scripts/generate_conda_file.py --gpu --name reco
Copy link
Collaborator

Choose a reason for hiding this comment

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

there is no need to reinstall the libraries again. The smoke and integration tests in the pipeline that we have in devops use the same environment

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Smoke and integration are currently set up as separate jobs for devops which means if there is a bug in one of the integration tests, this set up makes it easy to rerun just the integration tests without needing to run smoke. Smoke tests take about 22m and integration takes just under 1.5 hours. The lib install is about 1.5 min.

I'm currently testing a version where I remove those from the integration tests. I'll update the pr once it runs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The integration test and smoke test are in separate jobs in the same pipeline. The smoke test must run successfully before the integration job will run but the integration job does not share setup with the smoke test as they are in separate jobs. I removed the installs in the integration test and ran the integration test after the smoke test. The integration test failed when the env-setup.yml was not run. I tested this once. The az login was also required.

Copy link
Collaborator

@miguelgfierro miguelgfierro left a comment

Choose a reason for hiding this comment

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

LGTM

@gramhagen gramhagen merged commit 6f16754 into staging Jun 12, 2019
@gramhagen gramhagen deleted the bezeran-addnightlyGPUonly branch June 12, 2019 13:31
@gramhagen
Copy link
Collaborator

merging now, test failure is not related

yueguoguo pushed a commit that referenced this pull request Sep 9, 2019
best-practices devops: add nightly_gpu_tests pipeline
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