Skip to content

Conversation

@driazati
Copy link
Member

@driazati driazati commented Sep 29, 2022

This is a copy of #12940 to get it running in CI. The original description is copied below:

This PR separates the files in the ci/scripts directory into ci/scripts/jenkins and ci/scripts/github. This is done because the github scripts should not be protected in the CI. #12604

@driazati driazati marked this pull request as ready for review September 29, 2022 17:14
@gigiblender
Copy link
Contributor

Thank you @driazati! Cc @areusch for review.

@driazati driazati requested a review from areusch October 3, 2022 20:35
Copy link
Contributor

@areusch areusch left a comment

Choose a reason for hiding this comment

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

thanks @driazati , left a couple comments

script: """
set -eux
. ci/scripts/retry.sh
. ci/scripts/jenkins/retry.sh
Copy link
Contributor

Choose a reason for hiding this comment

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

shall we make the jenkins script dir a var?

from pathlib import Path
from typing import Dict, Tuple, Any, Optional, List, Union

# Hackery to enable importing of utils from ci/scripts/jenkins
Copy link
Contributor

Choose a reason for hiding this comment

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

i think at some point we were going to make this a Python package, right? is the idea that this hack bridges the gap til that happens?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think that's needed until we create the proper package structure.



REPO_ROOT = Path(__file__).resolve().parent.parent.parent
REPO_ROOT = Path(__file__).resolve().parent.parent.parent.parent
Copy link
Contributor

Choose a reason for hiding this comment

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

could also

assert (REPO_ROOT / "Jenkinsfile").exists

for stability

Test that reviewers are added from 'cc @someone' messages in PRs
"""
reviewers_script = REPO_ROOT / "ci" / "scripts" / "github_cc_reviewers.py"
reviewers_script = REPO_ROOT / "ci" / "scripts" / "github" / "github_cc_reviewers.py"
Copy link
Contributor

Choose a reason for hiding this comment

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

do we think this pattern is common enough to make GITHUB_SCRIPT_ROOT and JENKINS_SCRIPT_ROOT?

Copy link
Contributor

Choose a reason for hiding this comment

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

thanks @driazati , left a couple comments

Thank you @areusch. I'm addressing the comments in a4b0489 but do not have permission to push to this branch. cc @driazati

@areusch areusch added needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it and removed needs-triage PRs or issues that need to be investigated by maintainers to find the right assignees to address it labels Oct 19, 2022
driazati pushed a commit that referenced this pull request Nov 14, 2022
This PR is a duplicate of #12940 and #12941. For some reason, I am unable to reopen #12940.
@driazati driazati closed this Nov 15, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
@tqchen tqchen deleted the separate-scripts branch January 10, 2023 04:30
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