Skip to content

Commit c95cd76

Browse files
authored
ci: Do not run profiling node jobs on develop (#13531)
This takes a lot of resources, and is only very rarely needed. Now, it only always runs profiling node compilation on release branches, and on dedicated profiling-node changes.
1 parent bb45dd2 commit c95cd76

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,10 @@ jobs:
500500
job_profiling_node_unit_tests:
501501
name: Node Profiling Unit Tests
502502
needs: [job_get_metadata, job_build]
503-
if: needs.job_build.outputs.changed_node == 'true' || needs.job_get_metadata.outputs.changed_profiling_node == 'true' || github.event_name != 'pull_request'
503+
if: |
504+
needs.job_build.outputs.changed_node == 'true' ||
505+
needs.job_get_metadata.outputs.changed_profiling_node == 'true' ||
506+
github.event_name != 'pull_request'
504507
runs-on: ubuntu-latest
505508
timeout-minutes: 10
506509
steps:
@@ -1125,8 +1128,7 @@ jobs:
11251128
(github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) &&
11261129
(
11271130
(needs.job_get_metadata.outputs.changed_profiling_node == 'true') ||
1128-
(needs.job_get_metadata.outputs.is_release == 'true') ||
1129-
(github.event_name != 'pull_request')
1131+
(needs.job_get_metadata.outputs.is_release == 'true')
11301132
)
11311133
needs: [job_get_metadata, job_build, job_e2e_prepare]
11321134
runs-on: ubuntu-20.04
@@ -1290,8 +1292,7 @@ jobs:
12901292
# Skip precompile unless we are on a release branch as precompile slows down CI times.
12911293
if: |
12921294
(needs.job_get_metadata.outputs.changed_profiling_node == 'true') ||
1293-
(needs.job_get_metadata.outputs.is_release == 'true') ||
1294-
(github.event_name != 'pull_request')
1295+
(needs.job_get_metadata.outputs.is_release == 'true')
12951296
runs-on: ${{ matrix.os }}
12961297
container: ${{ matrix.container }}
12971298
timeout-minutes: 30

0 commit comments

Comments
 (0)