@@ -2898,6 +2898,14 @@ linux-x64-contributor-workflow: &linux-x64-contributor-workflow
2898
2898
- build :
2899
2899
requires :
2900
2900
- node_modules_install
2901
+
2902
+ # In subsequent jobs, we use some contexts that are restricted to members of the Cypress organization.
2903
+ # This job will allow for a Cypress member to approve and run the rest of the restricted jobs in the pipeline after the contributor code has been reviewed.
2904
+ - contributor-pr :
2905
+ type : approval
2906
+ requires :
2907
+ - build
2908
+
2901
2909
- check-ts :
2902
2910
requires :
2903
2911
- build
@@ -2909,22 +2917,22 @@ linux-x64-contributor-workflow: &linux-x64-contributor-workflow
2909
2917
context : [test-runner:poll-circle-workflow, test-runner:percy]
2910
2918
required_env_var : PERCY_TOKEN # skips job if not defined (external PR)
2911
2919
requires :
2912
- - build
2920
+ - contributor-pr
2913
2921
- lint-types :
2914
2922
requires :
2915
2923
- build
2916
2924
# unit, integration and e2e tests
2917
2925
- cli-visual-tests :
2918
2926
context : test-runner:percy
2919
2927
requires :
2920
- - build
2928
+ - contributor-pr
2921
2929
- unit-tests :
2922
2930
requires :
2923
2931
- build
2924
2932
- verify-release-readiness :
2925
2933
context : test-runner:npm-release
2926
2934
requires :
2927
- - build
2935
+ - contributor-pr
2928
2936
- server-unit-tests :
2929
2937
requires :
2930
2938
- build
@@ -2937,7 +2945,7 @@ linux-x64-contributor-workflow: &linux-x64-contributor-workflow
2937
2945
- system-tests-node-modules-install :
2938
2946
context : test-runner:performance-tracking
2939
2947
requires :
2940
- - build
2948
+ - contributor-pr
2941
2949
- system-tests-chrome :
2942
2950
context : test-runner:performance-tracking
2943
2951
requires :
@@ -2962,46 +2970,46 @@ linux-x64-contributor-workflow: &linux-x64-contributor-workflow
2962
2970
- driver-integration-tests-chrome :
2963
2971
context : test-runner:cypress-record-key
2964
2972
requires :
2965
- - build
2973
+ - contributor-pr
2966
2974
- driver-integration-tests-chrome-beta :
2967
2975
context : test-runner:cypress-record-key
2968
2976
requires :
2969
- - build
2977
+ - contributor-pr
2970
2978
- driver-integration-tests-firefox :
2971
2979
context : test-runner:cypress-record-key
2972
2980
requires :
2973
- - build
2981
+ - contributor-pr
2974
2982
- driver-integration-tests-electron :
2975
2983
context : test-runner:cypress-record-key
2976
2984
requires :
2977
- - build
2985
+ - contributor-pr
2978
2986
- driver-integration-tests-webkit :
2979
2987
context : test-runner:cypress-record-key
2980
2988
requires :
2981
- - build
2989
+ - contributor-pr
2982
2990
- driver-integration-memory-tests :
2983
2991
requires :
2984
2992
- build
2985
2993
- run-frontend-shared-component-tests-chrome :
2986
2994
context : [test-runner:cypress-record-key, test-runner:launchpad-tests, test-runner:percy]
2987
2995
percy : true
2988
2996
requires :
2989
- - build
2997
+ - contributor-pr
2990
2998
- run-launchpad-integration-tests-chrome :
2991
2999
context : [test-runner:cypress-record-key, test-runner:launchpad-tests, test-runner:percy]
2992
3000
percy : true
2993
3001
requires :
2994
- - build
3002
+ - contributor-pr
2995
3003
- run-launchpad-component-tests-chrome :
2996
3004
context : [test-runner:cypress-record-key, test-runner:launchpad-tests, test-runner:percy]
2997
3005
percy : true
2998
3006
requires :
2999
- - build
3007
+ - contributor-pr
3000
3008
- run-app-integration-tests-chrome :
3001
3009
context : [test-runner:cypress-record-key, test-runner:launchpad-tests, test-runner:percy]
3002
3010
percy : true
3003
3011
requires :
3004
- - build
3012
+ - contributor-pr
3005
3013
- run-webpack-dev-server-integration-tests :
3006
3014
context : [test-runner:cypress-record-key, test-runner:percy]
3007
3015
requires :
@@ -3014,16 +3022,16 @@ linux-x64-contributor-workflow: &linux-x64-contributor-workflow
3014
3022
context : [test-runner:cypress-record-key, test-runner:launchpad-tests, test-runner:percy]
3015
3023
percy : true
3016
3024
requires :
3017
- - build
3025
+ - contributor-pr
3018
3026
- run-reporter-component-tests-chrome :
3019
3027
context : [test-runner:cypress-record-key, test-runner:percy]
3020
3028
percy : true
3021
3029
requires :
3022
- - build
3030
+ - contributor-pr
3023
3031
- reporter-integration-tests :
3024
3032
context : [test-runner:cypress-record-key, test-runner:percy]
3025
3033
requires :
3026
- - build
3034
+ - contributor-pr
3027
3035
- npm-webpack-dev-server :
3028
3036
requires :
3029
3037
- system-tests-node-modules-install
@@ -3167,28 +3175,16 @@ linux-x64-contributor-workflow: &linux-x64-contributor-workflow
3167
3175
- run-vite-dev-server-integration-tests
3168
3176
- v8-integration-tests
3169
3177
3170
- # This approval job will block the building of the binary on contributor jobs
3171
- # If a member of the Cypress team manually approves this job, then it will run with the required contexts
3172
- - approve-binary-build :
3173
- type : approval
3174
- requires :
3175
- - build
3176
-
3177
3178
- create-and-trigger-packaging-artifacts :
3178
- context :
3179
- - test-runner:upload
3180
- - test-runner:build-binary
3181
- - publish-binary
3179
+ context : [test-runner:upload, test-runner:build-binary, publish-binary]
3182
3180
requires :
3183
- - approve-binary-build
3181
+ - contributor-pr
3184
3182
- wait-for-binary-publish :
3185
3183
type : approval
3186
3184
requires :
3187
3185
- create-and-trigger-packaging-artifacts
3188
3186
- get-published-artifacts :
3189
- context :
3190
- - publish-binary
3191
- - test-runner:commit-status-checks
3187
+ context : [publish-binary, test-runner:commit-status-checks]
3192
3188
requires :
3193
3189
- wait-for-binary-publish
3194
3190
# various testing scenarios, like building full binary
@@ -3287,11 +3283,7 @@ linux-arm64-workflow: &linux-arm64-workflow
3287
3283
3288
3284
- create-and-trigger-packaging-artifacts :
3289
3285
name : linux-arm64-create-and-trigger-packaging-artifacts
3290
- context :
3291
- - test-runner:upload
3292
- - test-runner:commit-status-checks
3293
- - test-runner:build-binary
3294
- - publish-binary
3286
+ context : [test-runner:upload, test-runner:commit-status-checks, test-runner:build-binary, publish-binary]
3295
3287
executor : linux-arm64
3296
3288
resource_class : arm.medium
3297
3289
requires :
@@ -3305,9 +3297,7 @@ linux-arm64-workflow: &linux-arm64-workflow
3305
3297
3306
3298
- get-published-artifacts :
3307
3299
name : linux-arm64-get-published-artifacts
3308
- context :
3309
- - publish-binary
3310
- - test-runner:commit-status-checks
3300
+ context : [publish-binary, test-runner:commit-status-checks]
3311
3301
executor : linux-arm64
3312
3302
resource_class : arm.medium
3313
3303
requires :
@@ -3529,4 +3519,4 @@ workflows:
3529
3519
<< : *darwin-workflow-filters
3530
3520
windows :
3531
3521
<< : *windows-workflow
3532
- << : *windows-workflow-filters
3522
+ << : *windows-workflow-filters
0 commit comments