-
Notifications
You must be signed in to change notification settings - Fork 21
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
🌱 Add dev-env-integration tests to prow #678
🌱 Add dev-env-integration tests to prow #678
Conversation
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.
/approve
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.
We should also add checkout logic for PR tests like this.
if [[ -n "${PR_ID:-}" ]]; then
git fetch origin "pull/${PR_ID}/head:${UPDATED_BRANCH}-branch" || true
fi
Lets discuss it with @mboukhalfa.
UPDATED_BRANCH = "${ghprbActualCommit}" | ||
REPO_ORG = "${env.REPO_OWNER}" | ||
REPO_NAME = "${env.REPO_NAME}" | ||
REPO_BRANCH = "${env.PULL_BASE_REF}" |
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.
This varibale needed to run for PR tests. Please add it here and jjb PR as well
PR_ID = "${env.PULL_NUMBER}"
@@ -12,6 +12,8 @@ CI_DIR="$(dirname "$(readlink -f "${0}")")" | |||
export IMAGE_OS="${IMAGE_OS:-ubuntu}" | |||
export REPO_ORG="${REPO_ORG:-metal3-io}" | |||
export REPO_NAME="${REPO_NAME:-metal3-dev-env}" | |||
export REPO_BRANCH="${REPO_BRANCH:-main}" | |||
export PR_ID="${PR_ID:-0}" |
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.
export PR_ID="${PR_ID:-0}" | |
export PR_ID="${PR_ID:-}" |
@@ -1334,6 +1400,39 @@ presubmits: | |||
agent: jenkins | |||
always_run: false | |||
optional: true | |||
# name: {job_prefix}-{image_os}-dev-env-integration-test-{capm3_target_branch} |
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.
same here, lets not add tests for community repo as well
@@ -1843,6 +1975,39 @@ presubmits: | |||
agent: jenkins | |||
always_run: false | |||
optional: true | |||
# name: {job_prefix}-{image_os}-dev-env-integration-test-{capm3_target_branch} |
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.
Lets not add tests for metal3-io/metal3-docs repo and
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.
I think the preview cuts the code in a poorly informative way. The test are actually under metal3-io/baremetal-operater, metal3-io/cluster-api-provider-metal3, metal3-io/meta3-dev-env, metal3-io/project-infra and metal3-io/ip-address-manager.
I checked that these are the projects where integration tests are run. Are these all correct and/or am I missing some still?
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.
thanks
ed0e92e
to
9299ed2
Compare
9299ed2
to
66cd96f
Compare
66cd96f
to
7b97d14
Compare
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.
/lgtm
/hold
lets wait tojjb PR merge and we can test it here
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.
lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: smoshiur1237, tuminoid The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
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.
In case we run the test on PR open on metal3-io org from nordix branch:
in line 52 when we clone the repo https://github.com/${REPO_ORG}/${REPO_NAME}.git
this should clone the metal3-io repo how do we merge the nordix branch changes that we want to test
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.
any suggestions?
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.
refspec is added to solve the issue
/test dev-env-integration-test-ubuntu-main |
@Sunnatillo: The specified target(s) for
The following commands are available to trigger optional jobs:
Use
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Peppi-Lotta <peppi-lotta.saari@est.tech>
7b97d14
to
cd95990
Compare
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.
/lgtm
/override test-ubuntu-integration-main |
@Sunnatillo: Sunnatillo unauthorized: /override is restricted to Repo administrators, approvers in top level OWNERS file. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I will unhold this PR since it is not possible to test new test before merging this PR, and this test needed to tests new cloud. |
/unhold |
/override test-ubuntu-integration-main |
@tuminoid: Overrode contexts on behalf of tuminoid: test-ubuntu-integration-main In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@peppi-lotta: Updated the
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
part of #705 |
Added some tests to be run from PRs in BMO, CAPM3, metal-dev-env, project-infra and, IPAM. Also changed some values to work with Prow.