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

fix conditions for PR tests #14

Merged

Conversation

aaronmarkham
Copy link
Collaborator

Description

This PR streamlines the PR validation process. It will skip stashing of the artifacts when the branch is not master or "new_*".
I also removed the remnants of the S3 publishing since there's not a good solution for it yet anyway.
The later is so we can test it.

@ThomasDelteil ThomasDelteil merged commit 2946a3d into new_website_pipeline_2 Sep 12, 2019
@@ -1418,7 +1420,9 @@ def docs_python() {
timeout(time: max_time, unit: 'MINUTES') {
utils.unpack_and_init('libmxnet', mx_lib, false)
utils.docker_run('ubuntu_cpu_python', 'build_python_docs', false)
utils.pack_lib('python-artifacts', 'docs/_build/python-artifacts.tgz', false)
if (env.BRANCH_NAME == "master" || env.BRANCH_NAME.startsWith("new_")) {

Choose a reason for hiding this comment

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

branch_name starting with new_, are you sure this wont trigger other branches not related to website ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nope, but all it'll do is slow down the validation on a PR named "new_*" because of the stash... and that PR would have to have this latest code...
We can remove it after the PR is done testing (before or just after merge)... but I had to have a way to be able to trigger it outside of master.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Stashing add several minutes per docs package... so... it's just optimization...

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