Skip to content
This repository has been archived by the owner on Mar 1, 2022. It is now read-only.

Add pr test jobs #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DanielXiao
Copy link
Contributor

Add jenkins jobs for vic and vic-product PR testing. These
jobs are aimed to verify scenario test code.

Start selenium nodes according to parallel executor number
to avoid creating idle nodes.

@DanielXiao DanielXiao requested a review from a team as a code owner August 29, 2018 07:02
@DanielXiao DanielXiao requested review from wjun and renmaosheng August 29, 2018 07:03
Add jenkins jobs for vic and vic-product PR testing. These
jobs are aimed to verify scenario test code.

Start selenium nodes according to parallel executor number
to avoid creating idle nodes.

Keep secret keywords for troubleshooting.
@DanielXiao DanielXiao requested review from hickeng and zjs September 3, 2018 09:22
@DanielXiao DanielXiao self-assigned this Sep 6, 2018
- git:
url: 'https://github.com/vmware/vic-tools'
branches:
- 'master'
basedir: 'vic-tools'
- git:
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the significance of this reordering?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Environment variable GIT_COMMIT will be set the the commit id of the last repo. Commit id of vic-tools and vic-internal is useless.

description: 'This is a parameterized build for verifying your test code in a PR'
node: '{node}'
parameters:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any way to deduplicate these parameters with the other jobs? It seems like we'd want to keep most of them consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. We can improve this later.

- requester
subject: 'vmware/{repo} PR Testing - ${{TEST_BRANCH}}'
body: |
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this message include more information about the test run? If you're running a few tests at the same time, it seems like figuring out which one an email is talking about might require actually opening Jenkins

Copy link
Contributor Author

Choose a reason for hiding this comment

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

TEST_BRANCH is PR number, what other information do you think is better to have in the email?

defaults: 'pr-tests'
builders:
- shell: |
Copy link
Contributor

Choose a reason for hiding this comment

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

Is there any way to deduplicate this with other jobs?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't know how to deduplicate this with other jobs.

@@ -125,7 +125,7 @@ pushd vic
echo "Tarball extraction passed, Running nightlies test.."
fi

pabot --processes ${PARALLEL_JOBS} --removekeywords TAG:secret ${excludes} --variable ESX_VERSION:"${ESX_BUILD}" --variable VC_VERSION:"${VC_BUILD}" -d report "${testcases[@]}"
pabot --processes ${PARALLEL_JOBS} ${excludes} --variable ESX_VERSION:"${ESX_BUILD}" --variable VC_VERSION:"${VC_BUILD}" -d report "${testcases[@]}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we want to make this change; removing secret information from logs is important.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

OK. I will revert it back, but it is really difficulty for troubleshooting without logging them.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants