Skip to content

Commit 74ea55b

Browse files
Update dev and master v2 workflows (#1432)
The `master` and `dev` branch builds are used for two purposes: - As a canary to surface potential issues introduced into the demos via changes to the underlying dependencies - In the [qml-diff-checker workflow](https://github.com/PennyLaneAI/qml-diff-checker) to compare the two builds priori to a new release of PennyLane. This PR adjusts the build frequency of these pipelines, as well as the retention period of the resulting build artifacts: - Two build were occurring over the weekend, which is redundant as the odds of a material change between Saturday and Sunday is low, and no one is likely to action it anyway during that time. The new cron frequency builds these pipelines Monday morning, Wednesday morning, and Friday morning at 12am so any changes are apparent at the start of the work day. - The retention period of the consolidated artifacts is bumped from 1 day (default) to 3 days for these pipelines, so that there is always a fresh artifact associated with a successful run of these pipelines. This is required for the [qml-diff-checker workflow](https://github.com/PennyLaneAI/qml-diff-checker).
1 parent cac523d commit 74ea55b

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.github/workflows/v2-build-branch-dev.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: V2 Build QML Branch - Dev
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '0 0 * * 0,2,4,6' # At 00:00 on Sunday, Tuesday, Thursday, and Saturday.
5+
- cron: '0 0 * * 1,3,5' # At 00:00 on Sunday (Monday am), Tuesday (Wednesday am), Thursday (Friday am).
66

77
concurrency:
88
group: v2-build-qml-demo-branch-dev
@@ -16,6 +16,7 @@ jobs:
1616
dev: true
1717
save-artifact: true
1818
artifact-name: build-branch-dev
19+
artifact-retention: 3
1920
keep-going: false
2021
quiet: false
2122
batch_size: 10

.github/workflows/v2-build-branch-master.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: V2 Build QML Branch - Master
22
on:
33
workflow_dispatch:
44
schedule:
5-
- cron: '0 0 * * 0,2,4,6' # At 00:00 on Sunday, Tuesday, Thursday, and Saturday.
5+
- cron: '0 0 * * 1,3,5' # At 00:00 on Sunday (Monday am), Tuesday (Wednesday am), Thursday (Friday am).
66

77
concurrency:
88
group: v2-build-qml-demo-branch-master
@@ -16,6 +16,7 @@ jobs:
1616
dev: false
1717
save-artifact: true
1818
artifact-name: build-branch-master
19+
artifact-retention: 3
1920
keep-going: false
2021
quiet: false
2122
batch_size: 10

.github/workflows/v2-build-demos.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ on:
2626
type: boolean
2727
default: true
2828
artifact-name:
29-
description: Name of the artifact containing the built demos (defaults to demo-build-{ref})
29+
description: Name of the artifact containing the built demos (defaults to demo-build-{ref}).
3030
required: false
3131
type: string
3232
default: ''
33+
artifact-retention:
34+
description: The number of days to persist the consolidated artifacts.
35+
required: false
36+
type: number
37+
default: 1
3338
keep-going:
3439
description: Keep going if a demo fails to build.
3540
required: false
@@ -76,6 +81,11 @@ on:
7681
required: false
7782
type: string
7883
default: ''
84+
artifact-retention:
85+
description: The number of days to persist the consolidated artifacts.
86+
required: false
87+
type: number
88+
default: 1
7989
keep-going:
8090
description: Keep going if a demo fails to build.
8191
required: false
@@ -87,8 +97,7 @@ on:
8797
type: boolean
8898
default: false
8999
batch_size:
90-
description: |
91-
Number of demos to build per job
100+
description: Number of demos to build per job.
92101
type: number
93102
default: 10
94103

@@ -208,7 +217,7 @@ jobs:
208217
with:
209218
name: ${{ needs.generate-build-variables.outputs.artifact-name }}
210219
path: _build/pack/*.zip
211-
retention-days: 1
220+
retention-days: ${{ inputs.artifact-retention }}
212221
overwrite: true
213222

214223
- name: Delete partial artifacts

0 commit comments

Comments
 (0)