-
Notifications
You must be signed in to change notification settings - Fork 783
MAINT fix failing tests and unify schedules #1993
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,16 +1,12 @@ | ||
|
|
||
| # Builds the pyrit environment and runs integration tests | ||
|
|
||
| trigger: | ||
| branches: | ||
| include: | ||
| - main | ||
|
|
||
| # There are additional PR triggers for this that are configurable in ADO. | ||
|
|
||
| jobs: | ||
| - template: test-job-template.yml | ||
| extends: | ||
| template: scheduled-test-pipeline-template.yml | ||
| parameters: | ||
| scheduleDisplayName: Integration Tests Every 4 Hours | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need it run every 4 hours ? they are already run whenever a PR is merged to main which is happening more and more frequently now (looking at the PR graph from the last couple months) |
||
| scheduleCron: "0 */4 * * *" | ||
| triggerOnChange: true | ||
| jobName: IntegrationTests | ||
| jobDisplayName: "Builds the pyrit environment and runs integration tests" | ||
| testAzureSubscription: 'integration-test-service-connection' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,11 @@ | ||
| # Builds the pyrit environment and runs partner integration tests. Partner integration tests are to ensure that we | ||
| # are not breaking any contract between PyRIT and its partners. | ||
| trigger: none # Disable automatic CI triggers | ||
|
|
||
| schedules: | ||
| - cron: "0 6 * * *" # 6 AM UTC = 10 PM PST (UTC-8) / 11PM PDT (UTC-6) | ||
| displayName: Nightly Partner Integration Tests at 10 PM PST | ||
| branches: | ||
| include: | ||
| - main | ||
| always: true # Run even if there are no code changes | ||
|
|
||
| jobs: | ||
| - template: test-job-template.yml | ||
| extends: | ||
| template: scheduled-test-pipeline-template.yml | ||
| parameters: | ||
| scheduleDisplayName: Partner Integration Tests Daily at 15:00 UTC (7:00 AM PST) | ||
| scheduleCron: "0 6 * * *" # 6 AM UTC = 10 PM PST (UTC-8) - intentionally run at night to reduce throttling | ||
|
Comment on lines
+6
to
+7
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why does the display name say 7 am pst ? |
||
| triggerOnChange: false | ||
| jobName: PartnerIntegrationTests | ||
| jobDisplayName: "Builds the pyrit environment and runs partner integration tests" | ||
| testAzureSubscription: 'integration-test-service-connection' | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| parameters: | ||
| - name: scheduleDisplayName | ||
| type: string | ||
| - name: scheduleCron | ||
| type: string | ||
| - name: triggerOnChange | ||
| type: boolean | ||
| default: false | ||
| - name: jobName | ||
| type: string | ||
| - name: jobDisplayName | ||
| type: string | ||
| - name: testAzureSubscription | ||
| type: string | ||
| - name: newDir | ||
| type: string | ||
| - name: testsFolder | ||
| type: string | ||
| - name: makeTarget | ||
| type: string | ||
|
|
||
| ${{ if eq(parameters.triggerOnChange, true) }}: | ||
| trigger: | ||
| branches: | ||
| include: | ||
| - main | ||
|
|
||
| ${{ if ne(parameters.triggerOnChange, true) }}: | ||
| trigger: none # Disable automatic CI triggers | ||
|
|
||
| schedules: | ||
| - cron: ${{ parameters.scheduleCron }} | ||
| displayName: ${{ parameters.scheduleDisplayName }} | ||
| branches: | ||
| include: | ||
| - main | ||
| always: true # Run even if there are no code changes | ||
|
|
||
| jobs: | ||
| - template: test-job-template.yml | ||
| parameters: | ||
| jobName: ${{ parameters.jobName }} | ||
| jobDisplayName: ${{ parameters.jobDisplayName }} | ||
| testAzureSubscription: ${{ parameters.testAzureSubscription }} | ||
| newDir: ${{ parameters.newDir }} | ||
| testsFolder: ${{ parameters.testsFolder }} | ||
| makeTarget: ${{ parameters.makeTarget }} |
Uh oh!
There was an error while loading. Please reload this page.