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

Support /test-whole-conformance and daily job #826

Merged
merged 1 commit into from
Jun 18, 2020

Conversation

lzhecheng
Copy link
Contributor

@lzhecheng lzhecheng commented Jun 11, 2020

Fixed issue #819

  • Support /test-whole-conformance to trigger a whole conformance test
  • Support daily whole conformance test
  • If whole conformance test fails, Jenkins will send an email to projectantrea-dev@googlegroups.com

The timeout for whole conformance test is 2 hr.

@antrea-bot
Copy link
Collaborator

Thanks for your PR.
Unit tests and code linters are run automatically every time the PR is updated.
E2e, conformance and network policy tests can only be triggered by a member of the vmware-tanzu organization. Regular contributors to the project should join the org.

The following commands are available:

  • /test-e2e: to trigger e2e tests.
  • /skip-e2e: to skip e2e tests.
  • /test-conformance: to trigger conformance tests.
  • /skip-conformance: to skip conformance tests.
  • /test-networkpolicy: to trigger networkpolicy tests.
  • /skip-networkpolicy: to skip networkpolicy tests.
  • /test-windows-conformance: to trigger windows conformance tests.
  • /skip-windows-conformance: to skip windows conformance tests.
  • /test-all: to trigger all tests.
  • /skip-all: to skip all tests.

These commands can only be run by members of the vmware-tanzu organization.

@@ -171,7 +171,7 @@

rm -f COMMENT_EXIST
rm -f body.json
echo "{{\"body\": \"Thanks for your PR.\\\nUnit tests and code linters are run automatically every time the PR is updated.\\\nE2e, conformance and network policy tests can only be triggered by a member of the vmware-tanzu organization. Regular contributors to the project should join the org.\\\n\\\nThe following commands are available:\\\n* \`/test-e2e\`: to trigger e2e tests.\\\n* \`/skip-e2e\`: to skip e2e tests.\\\n* \`/test-conformance\`: to trigger conformance tests.\\\n* \`/skip-conformance\`: to skip conformance tests.\\\n* \`/test-networkpolicy\`: to trigger networkpolicy tests.\\\n* \`/skip-networkpolicy\`: to skip networkpolicy tests.\\\n* \`/test-windows-conformance\`: to trigger windows conformance tests.\\\n* \`/skip-windows-conformance\`: to skip windows conformance tests.\\\n* \`/test-all\`: to trigger all tests.\\\n* \`/skip-all\`: to skip all tests.\\\n\\\nThese commands can only be run by members of the vmware-tanzu organization.\"}}" > body.json
echo "{{\"body\": \"Thanks for your PR.\\\nUnit tests and code linters are run automatically every time the PR is updated.\\\nE2e, conformance and network policy tests can only be triggered by a member of the vmware-tanzu organization. Regular contributors to the project should join the org.\\\n\\\nThe following commands are available:\\\n* \`/test-e2e\`: to trigger e2e tests.\\\n* \`/skip-e2e\`: to skip e2e tests.\\\n* \`/test-conformance\`: to trigger conformance tests.\\\n* \`/skip-conformance\`: to skip conformance tests.\\\n* \`/test-conformance\`: to trigger all conformance tests on linux.\\\n* \`/test-networkpolicy\`: to trigger networkpolicy tests.\\\n* \`/skip-networkpolicy\`: to skip networkpolicy tests.\\\n* \`/test-windows-conformance\`: to trigger windows conformance tests.\\\n* \`/skip-windows-conformance\`: to skip windows conformance tests.\\\n* \`/test-all\`: to trigger all tests.\\\n* \`/skip-all\`: to skip all tests.\\\n\\\nThese commands can only be run by members of the vmware-tanzu organization.\"}}" > body.json
Copy link
Contributor

Choose a reason for hiding this comment

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

this says that both commands are named the same (/test-conformance)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for reminding. Updated.

only_trigger_phrase: false
trigger_permit_all: true
status_context: jenkins-whole-conformance
status_url: --none--
Copy link
Contributor

Choose a reason for hiding this comment

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

what's the difference between --none-- and null?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

null applies to e2e, conformance.. so Jenkins will automatically put a link to the build.

--none-- means there's no link.

Comment on lines 273 to 275
success_status: Pending test. Mark as failure. Add comment /test-whole-conformance to trigger.
failure_status: Pending test. Mark as failure. Add comment /test-whole-conformance to trigger.
error_status: Pending test. Mark as failure. Add comment /test-whole-conformance to trigger.
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 we should make it clear that running these tests is not required for the PR to be merged?

Copy link
Contributor Author

@lzhecheng lzhecheng Jun 16, 2020

Choose a reason for hiding this comment

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

It makes sense. Updated.

@lzhecheng
Copy link
Contributor Author

/test-windows-conformance

2 similar comments
@lzhecheng
Copy link
Contributor Author

/test-windows-conformance

@lzhecheng
Copy link
Contributor Author

/test-windows-conformance

Comment on lines 273 to 275
success_status: Pending test. Mark as failure. Check not required. Add comment /test-whole-conformance to trigger.
failure_status: Pending test. Mark as failure. Check not required. Add comment /test-whole-conformance to trigger.
error_status: Pending test. Mark as failure. Check not required. Add comment /test-whole-conformance to trigger.
Copy link
Contributor

Choose a reason for hiding this comment

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

maybe replace "Check not required" with "Not required for merging"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated.

Comment on lines 302 to 303
failure_status: Failed. Check not required. Add comment /test-whole-conformance to re-trigger.
error_status: Failed. Check not required. Add comment /test-whole-conformance to re-trigger.
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 we can remove the explicit "Check not required" here. If someone decided to run the test and it failed, then it probably needs to be addressed, even if we do not actually block the PR.

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, it makes sense. Updated.

@lzhecheng lzhecheng force-pushed the daily-job branch 3 times, most recently from a0794e7 to ac08358 Compare June 17, 2020 06:43
@lzhecheng lzhecheng changed the title [WIP] Support /test-whole-conformance and daily job Support /test-whole-conformance and daily job Jun 17, 2020
@edwardbadboy
Copy link
Contributor

Looks good to me.

edwardbadboy
edwardbadboy previously approved these changes Jun 17, 2020
@edwardbadboy
Copy link
Contributor

By the way, did you test that it can successfully send out email?

@lzhecheng
Copy link
Contributor Author

By the way, did you test that it can successfully send out email?

I tried it on a test job and it worked.

antoninbas
antoninbas previously approved these changes Jun 17, 2020
Copy link
Contributor

@antoninbas antoninbas left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@Dyanngg Dyanngg left a comment

Choose a reason for hiding this comment

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

LGTM

@lzhecheng lzhecheng dismissed stale reviews from antoninbas and edwardbadboy via 66fdb47 June 18, 2020 02:19
* Support /test-whole-conformance to trigger a whole conformance test
* Support daily whole conformance test
* If whole conformance test fails, Jenkins will send an email to projectantrea-dev@googlegroups.com
Fixed issue antrea-io#819
@edwardbadboy
Copy link
Contributor

Looks OK to me.

@lzhecheng
Copy link
Contributor Author

/skip-all

@lzhecheng lzhecheng merged commit 542e445 into antrea-io:master Jun 18, 2020
@lzhecheng lzhecheng deleted the daily-job branch June 18, 2020 04:02
GraysonWu pushed a commit to GraysonWu/antrea that referenced this pull request Sep 22, 2020
* Support /test-whole-conformance to trigger a whole conformance test
* Support daily whole conformance test
* If whole conformance test fails, Jenkins will send an email to projectantrea-dev@googlegroups.com
Fixed issue antrea-io#819
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.

6 participants