Skip to content

{CI} enable pytest group worker in module test and full test#22047

Merged
wangzelin007 merged 6 commits intoAzure:devfrom
wangzelin007:split_automation_full_test1
Apr 17, 2022
Merged

{CI} enable pytest group worker in module test and full test#22047
wangzelin007 merged 6 commits intoAzure:devfrom
wangzelin007:split_automation_full_test1

Conversation

@wangzelin007
Copy link
Copy Markdown
Member

@wangzelin007 wangzelin007 commented Apr 13, 2022

Description

  • Add --pytest-args "--durations=0" to record the time spent on each test.
  • For module test and full test:
    Every module not in serial_modules, enable group worker in pytest, pytest will spawn a number of workers processes equal to the number of available CPUs, and distribute the tests randomly across them.
  • For incremental test:
    Remain the same
  • serial_modules: ['appservice', 'botservice', 'cloud', 'network', 'azure-cli-core', 'azure-cli-telemetry']

image

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change
[Component Name 2] az command b: Add some customer-facing feature


This checklist is used to make sure that common guidelines for a pull request are followed.

@ghost ghost added Auto-Assign Auto assign by bot CI CI labels Apr 13, 2022
@ghost ghost requested review from jiasli, kairu-ms and yonzhan April 13, 2022 07:20
@ghost ghost assigned wangzelin007 Apr 13, 2022
@ghost ghost added this to the Apr 2022 (2022-04-26) milestone Apr 13, 2022
@yonzhan
Copy link
Copy Markdown
Collaborator

yonzhan commented Apr 13, 2022

CI

@wangzelin007 wangzelin007 marked this pull request as ready for review April 13, 2022 08:13
@wangzelin007 wangzelin007 requested a review from calvinhzy as a code owner April 13, 2022 08:13
@wangzelin007 wangzelin007 requested a review from jsntcy April 13, 2022 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot CI CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants